Adding a rule task node
A rule task contains a set of rules to be executed at that point in the ruleflow.
Procedure
- 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
icon in the
toolbar. - Click the Add rule task
icon in the
ruleflow toolbar and connect the node to the ruleflow.
- Hover over the node or the transition after which you want to add the rule task node and click
the Add rule task
- (Optional) Click the default name of the node to edit it.
- 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.
- Open the Logic tab to select the artifacts the rule task must
include:
- Click Select artifacts.
- 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.
- In the right pane, use the up and down arrows next to each artifact to change the run order.
- Click Done.
- (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.