Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. To handle routing (for example approval conditions), use Routes in combination with workflow variables. To create a workflow variable, double click on Design Process to access the Process Builder. 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
    titleRoutes

    Learn more about  Process Routes .

    Image RemovedImage Added

  2. Once a workflow variable has been defined,  hover over on a transition and click on the edit icon to open the transition dialog.
  3. Image Removed
  4. 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".
    Image Removed
  5. By clicking on a Route in the Process Mapper, it get back to the Process Mapper. By clicking on a Route it will open up the Map Routes to Plugins.
     

  6. In Map Routes to Plugins, you can map routes defined in the process to plugins. Select the Simple Rules Decision plugin. 


  7. 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


  8. 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".
     
  9. In the ELSE THEN rule, Set the Type to Transition and set Transition to transition4 (Send Rejected Email) to indicate that it is the default path to take when other conditions are not met. An example of a simple routing process is as shown below:

...