...
Mapping Routes to Plugins
- By clicking on a Route in the Process Mapper, it will open up the Map Routes to Plugins.
In Map Routes to Plugins, you can map routes defined in the process to plugins. Select the Simple Rules Decision plugin.
To handle routing (for example approval conditions), use Routes in combination with workflow variables. To create a workflow variable, double click on the process name in the Navigator to bring up the process dialog. Click on the first small icon under the Workflow variable heading, and key in the ID of the variable e.g. status.
Info title Routes Learn more about Process Routes .
- Once a workflow variable has been defined, hover over on a transition and click on the edit icon to open the transition dialog.
- In the transition dialog, select type Condition, select the variable status in Variable and key in Approved into the Value field*.* This means that this transition will occur if the value of status is "Approved".
- By clicking on a Route in the Process Mapper, it will open up the Map Routes to Plugins.
- In Map Routes to Plugins, you can map routes defined in the process to plugins. Select the Simple Rules Decision plugin.
- In the plugin configuration,click on Add Rule and then click Add Condition. Set the Variable field to status and set the Value field to Approved. The variable status is referring to the workflow variable.
- In the THEN rule, click on Add Action and set Type to Transition and set Transition to transition3 (Send Approved Email). This means that this transition will occur if the value of status is "Approved".
- In the ELSE THEN rule, Set the Type to Transition and set Transition to transition4 (Send Rejected Email) to transition type to Otherwise to indicate that it is the default path to take when other conditions are not met. The Otherwise transition is shown in orange. An example of a simple routing process is as shown below:
Test Driving the Process
...








