Versions Compared

Key

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

Business Rules are Boolean expressions you write and apply to the lines that connect activities to one another at points where the process can flow in different directions depending on the conditions encountered by the activities. When you apply a Business Rule to an activity line, you are setting the conditions that determine whether the process can flow through that line or not.

To add business rules to workflows

  1. Right-click anywhere on the white space of the workflow open in the Workflow Designer and

    select 

    select Workflow Business Rules

     from

     from the context menu.

    Image Removed


    Image Added




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

    the 

    the Add

     button

     button.

    Image Removed


    Image Added




  3. Double-click the new rule to create an event handler for it.

    Image Removed


    Image Added



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

    Image Removed


    Image Added


Apply the rule to activity lines 

  1. Right-click one of the lines proceeding from an activity where more than one outcome is possible and

    choose 

    choose Select Line Rule

     from

     from the context menu.

    Image Removed


    Image Added




  2. In the Select Rule window that appears, from

    the 

    the Rule

     drop

     drop-down list, select the rule. To have the process flow through the line when

    a 

    false

     condition

     condition is met, select the If Rule Not True option. Otherwise leave the option cleared.

    Image Modified



  3. Click 

    Click OK

     to

     to close the Select Rule window.

  4. Repeat the process for the second line proceeding from the same activity, this time setting

    the 

    the If Rule Not True

     option

     option to the opposite as that set for the first line.

  5. The lines change color after the Business Rules are applied.

    Image RemovedImage Added


icon
Info
falsetitle

Key

Orange lines indicate that the attached business rule evaluates to false.

Blue lines indicate that the attached business rule evaluates to true.

Black lines indicate that there is no business rule applied.


topicTOC
Div
class
stylefloat:left; position:fixed; padding: 5px;
idtocarticleNav

IN THIS ARTICLE

Table of Contents
div
Table of Contents
maxLevel
maxLevel
stylefont-size: 1rem; margin-bottom: -65px; margin-left: 40px;text-transform: uppercase;

On this page

4
minLevel2
stylenone
printablefalse