Adding a rule task node

A rule task contains a set of rules to be executed at that point in the ruleflow.

Procedure

  1. Add a rule task node to the ruleflow in one of the following ways:
    • Hover over the node or the transition after which you want to add the rule task node and click the Add rule task Add rule task icon icon in the toolbar.
    • Click the Add rule task Add rule task icon icon in the ruleflow toolbar and connect the node to the ruleflow.
  2. (Optional) Click the default name of the node to edit it.
  3. Configure the execution details of the rule task in the Details tab:
    Execution mode
    The execution mode determines in which order rules are executed. The three following execution modes are available:
    • Fastpath: Rules are executed in the order shown in the Logic tab with some optimization at compile time. This is the default execution mode.
    • Sequential: Rules are executed in the order shown in the Logic tab.
    • RetePlus: Rules are executed in an order determined by the rule engine.
    Exit criteria
    The rule task exit criteria specifies whether all rules or one rule instance executes before moving to the next node. You can select one of the following values:
    • Execute all rules: All the instances of all applicable rules execute.
    • Execute only one rule instance: Only the first instance of the first applicable rule executes.
    (Optional) Initial and final actions
    Initial actions apply before the rule task is processed and final actions apply after the rule task is processed. You define initial and final actions in the same way as you define actions for an action task.
  4. Open the Logic tab to select the artifacts the rule task must include:
    1. Click Select artifacts.
    2. Select the artifacts to add to the rule task in the left pane. These artifacts can be rules, decision tables, or folders containing several rules and tables.
    3. In the right pane, use the up and down arrows next to each artifact to change the run order.
    4. Click Done.
    5. (Optional) You can define a runtime rule selection filter to control which rules are evaluated in the rule task at run time.
      You write the selection filter like a condition in a rule. You can specify it with the rule language or the advanced rule language.