Skip Ribbon Commands
Skip to main content
SharePoint

Creating a Rule

Rules are similar to expressions but rules always return true or false as output.

To create a rule, complete the following steps:
  1. Check out the solution in which you want to create a rule.

  2. Click the Create tab. The Solution Items ribbon menu is displayed.

  3. Click New Rule. The Rule window is displayed.

  4. In the Rule Name field, type a name for the rule.

    Note:
    By default, the name of the rule will be displayed as Rule 1.


  5. In the Rule expression designer field, type the appropriate rule expression.

    Example 1:                       
    To create a rule that returns true if an Expense Report total is greater than $500, then you can create a rule like the following:
     
    Solution.DataItems.ExpenseReportTotal > 500
     
    This rule assumes you have a solution data item named ExpenseReportTotal.
    Example 2:
    To create a rule that returns true if an Expense Report total is greater than $500 and should be approved by another person if the employee's manager approved, then you can create a rule like the following:
     
    Solution.DataItems.ExpenseReportTotal > 500 And Solution.DataItems.ManagerApproved = "Yes"
     
    This rule assumes you have a solution data items named ExpenseReportTotal and ManagerApproved.
     
  6. Click the save button. You created a rule that can now be used by process links.

Related Topics
Understanding Rule Context
Common Expression Functions
Deleting a Rule
Linking Activities without Business Rules


Source
BPM Designer Topics > Overview of Solution Items and Solution Item Topics > Rules
Last modified at 7/31/2020 11:25 AM