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 three following execution modes are available:
- Fastpath (default)
- Sequential
- RetePlus
- The Fastpath mode is the default execution mode. Advanced users who want to achieve optimal performance or choose the execution mode that is better adapted for the current rule task can select another execution mode.
- For more information about execution modes, see Choosing an execution mode.
- 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 individual business rules or decision tables, or folders containing several rules and tables. It is also possible to select a specific business rule or decision table inside a folder that is also selected.
When the artifacts for a rule task are selected at run time, the folders in the list of selected artifacts are expanded. The expansion starts at the top of the list. If a business rule or decision table is listed separately above its folder, it retains its execution position in the list. Each rule is selected only once.
For example, consider a folder that contains business rules R1, R2, and R3:- If you add R2 and then the folder, the expanded list is R2, R1, and R3.
- If you add the folder and then R2, the expanded list is R1, R3, and R2.
- In the right pane, use the up and down arrows next to each artifact to change the execution 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. For more information about writing selection filters with the advanced rule language, see ARL task model examples.