CreateProcessInstanceFromFolderByXML

Description

This handler allows the user to start process instances from XML files. One instance is started per XML file, which is also attached to the instance. The information contained in the XML is saved as process variables.

The original file is not moved or deleted on the file system. Please use https://tim-doc.atlassian.net/wiki/spaces/eng/pages/227938510 for achieving this.

 


Class

com.dooris.bpm.actionhandler.CreateProcessInstanceFromFolderByXML

Please note that this handler can only be used in a timer - see Example

Parameter

Parameter

Default value

Description

Valid examples

Parameter

Default value

Description

Valid examples

Definition

 

The name of the definition from which the instance is to be started must be specified here.

 

Path

 

The path to the XML file must be specified here. This may be either a path directly to an XML file, in which case only the specified file is used. This may also be a path to a folder, in which case all XML files in the folder will be used.

The path must be given with “/” for Unix servers and with “\” for Windows

 

Pattern

 

Here the user can specify the name of the xml-element in which the instance name is located.

 

Root Name

 

Specifies the XML-element in which the variables are located

 

XML Format

 

only “normal” allowed

normal

 

ATTENTION! Handler class + Process name must be separated by comma and then always semicolon!

com.dooris.bpm.actionhandler.CreateProcessInstanceFromFolderByXML,xmltest;/usr/local/tim/wf_29_rc/standalone/instanzstart/;pattern;variables;normal

XML Example

<Variables> <variable> <key>variableName1</key> <value>Here is the variable content1</value> </variable> <variable> <key>variableName2</key> <value>Here is the variable content2</value> </variable> <instanceName>InstanceName</instanceName> </Variables>

 

 

Example

 

image-20241010-152927.png

com.dooris.bpm.actionhandler.CreateProcessInstanceFromFolderByXML,xmltest;/usr/local/tim/wf_29_rc/standalone/instanzstart/;pattern;Variables;normal

 

Dependencies

Timer: CreateProcessInstancesByHandler