StartSoftlinksFromProcessVariablesHandler
Description
This handler starts softlinks and fills it with variables from the main process.
Thereby, the handler acts in accordance with the following schema:
It searches for all variables containing the
mainSuffixparameter.Afterward, it searches for all variables containing the
softLinkSuffixparameter, whereupon it counts up from 0 to less than thesoftLinkCountparameter.After every increment, a softlink instance of the given definition is started. In the softlink instances, the
softLinkSuffixparameter is removed in order to make the representation in the form easier.
Starter Rules
The following rules apply to process start behavior when using starter expressions:
Processes that contain only the starter expression user(sys.engine) are not displayed in any list of startable processes.
Processes that contain additional starter expressions besides user(sys.engine) are be displayed to the corresponding identities according to the defined permissions.
Softlink instances can be started without additional permissions if their starter expression is user(sys.engine).
Class
com.dooris.bpm.actionhandler.StartSoftlinksFromProcessVariablesHandlerParameter
Parameter name | Default value | Description | Valid examples |
|---|---|---|---|
|
| Specifies from which process definition softlinks are to be started. |
|
|
| Specifies which process variables of the main process are to be included in all softlinks. Example: if the suffix is set to '_data', all process variables ending in '_data' will be taken (firstname_data, lastname_data, email_data,…) Mandatory field. If not required, please enter an ending that is not in existence, i.e. _end |
|
|
| Specifies how many softlinks are to be started. |
|
|
| Specifies which variables are to be assigned to the individual softlinks. This is where the parameter softLinkCount is used. The handler counts to “i”, counting up from 0 to i < softLinkCount and thereby collects all variables that are built based on the following schema: variablesname_softLinkSuffix[i]After each run, it starts an instance of the softlink definition and passes all variables found by the mainSuffix and the softLinkSuffix to it. In the newly started softlink instances, the softLinkSuffix is removed to ensure a uniform representation in the form. At least one variable with the appropriate ending must be found, otherwise a sub-process will not be started. |
|
|
| Indicates whether the softlink instances should be archived when the main process instance is archived. Possible values:
|
|
|
| To handle a big number of started softlink processes this parameter must be set to true. |
|
Example
Example 1
Variable in the process:
user_email_sl[0]=john@doe.com
user_email_sl[1]=maria@doe.com
user_email_sl[2]=charles@doe.com
user_name_sl[0]=John
user_name_sl[1]=Maria
user_name_sl[2]=Charles
user_lastname_sl[0]=Doe
user_lastname_sl[1]=Doe
user_lastname_sl[2]=DoesoftLinkSuffix=_sl
softLinkCount=3⇒ 3 Sub-processes with variables:
1.
user_email=john@doe.com
user_name=John
user_lastname=Doe
2.
user_email=Maria …
Example 2
date_start_hp=01.01.2014
starter_hp=pmrequesters_hp=user123 username=Doe
useremail_sl[0]=john@doe.com
userfirstname=JohnmainSuffix=_hp
softLinkSuffix=_sl
softLinkCount=1⇒Sub-process with the following variables:
date_start=01.01.2014
starter=pm
requesters=user123