...
It searches for all variables containing the
mainSuffix
parameter.Afterward, it searches for all variables containing the
softLinkSuffix
parameter, whereupon it counts up from 0 to less than thesoftLinkCount
parameter.After every increment, a softlink instance of the given definition is started. In the softlink instances, the
softLinkSuffix
parameter is removed in order to make the representation in the smartform form easier.
...
Class
Code Block |
---|
com.dooris.bpm.actionhandler.StartSoftlinksFromProcessVariablesHandler |
Parameter
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,…)
|
| |||
| 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:
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.
|
| ||
|
| 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 …
...