Versions Compared

Key

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

...

...

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.

...


  1. Image Added


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

...


  1. Image Added


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

    Image Added

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

...


  1. Image Added

...


Apply the rule to activity lines 

  1. Right-click

...

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

...

  1. choose Select Line Rule from the context menu.

...


  1. Image Added


  2. In the Select Rule window that appears,

...

  1. from the Rule drop-down list

...

  1. , select the rule. To have the process flow through the line when a false condition is met

...

  1. , select the If Rule Not True option. Otherwise leave the option cleared.

    Image Added

  2. Click OK to close the Select Rule window.
  3. Repeat the process for the second line proceeding from the same activity, this time setting the 

...

  1. If Rule Not True option to the opposite as that set for the first line.

...

  1. The lines change color after the Business Rules

...

  1. are applied.

    Info
    iconfalse
    titleKey

    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.


    Image Added


Div
stylefloat: left; position: fixed; top: 105px; padding: 5px;
idtoc
classtopicTOC


Div
stylemargin-left: 40px; margin-bottom: 40px;

Live Search
spaceKeyE2D
placeholderSearch the documentation
typepage


Div
stylefont-size: 1rem; margin-bottom: -65px; margin-left: 40px;text-transform: uppercase;

On this page



Table of Contents
maxLevel2
stylenone