Unable to render embedded object: File (Emp18Notice.png) not found.

Skip to end of banner
Go to start of banner

Adding Business Rules to Workflows

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

To add business rules to workflows

  1. Right-click anywhere on the white space of the workflow open in the Workflow Designer and select Workflow Business Rules from the context menu.




  2. Enter a name for the Business Rule in the Workflow Business Rules window that opens and click on the Add button.




  3. Add code for the Business Rule in the C# Editor that opens.




    Now that the Business Rule has been added to the workflow, you can apply it to the activity lines by doing the following:

    1. Right-click on one of the lines proceeding from an activity where more than one outcome is possible and select Select Line Rule from the context menu.




    2. In the Select Rule window that appears, select the rule from the Rule drop-down list and check the If Rule Not True option if you want the process to flow through the line when a false condition is met. If you are adding the rule to a line in which you want the process to flow when the Business Rule evaluates true, then leave IF Rule Not True unchecked.




    3. Click OK to close the Select Rule window.
    4. Repeat the process for the second line proceeding from the same activity, this time setting the IF Rule Not True option to the opposite as that set for the first line.
    5. You will see the lines change color after the Business Rules have been applied to the lines. The default colors are Orange for a line where a Business Rule evaluates to false and Blue where a Business Rule evaluates to true. Black lines indicate that a Business Rule has not been applied to a line.



  • No labels