Configuring ruleflow properties
To display the Properties view below the editor, you must select a ruleflow element in the diagram. The Properties view opens, with a list of tabs where you set the properties for your ruleflow elements. When you add a node or a task to your ruleflow, you must set their properties.
To set the properties for the whole ruleflow, select an empty area in the diagram to open the Properties view.
Common properties for ruleflow elements
Some properties, or tabs, can be found in the Properties view for ruleflows, start nodes, end nodes, rule tasks, action tasks, subflows, branches, fork nodes, join nodes, and transitions.
| Property | Purpose |
|---|---|
|
ID |
An ID is the technical name for a ruleflow element. All ruleflow elements have an ID that identifies them in an XML schema. In Rule Designer Java™ code, the ID of a ruleflow element generates the IRL code that runs at run time. To view this code, click the IRL tab under the Ruleflow Editor. If you duplicate a ruleflow element in a ruleflow, it has a unique ID. IDs are not locale-dependent. When you specify an ID, it is good practice to use only characters
( |
|
Label |
You can specify a label for the ruleflow element that is shown in the Diagram page. A label has no impact on the IRL that is generated. Labels are locale-dependent. You can specify different labels in a new locale and recover the labels in the original locale for elements that do not change. For example, if you change the ID of a ruleflow element, you lose the labels defined for this element in all other locales except the original. When you specify a label, it is good practice to use only characters
( |
| Property | Purpose |
|---|---|
|
Initial action |
The action that launches before the task starts. Select Use BAL for action to define the action in BAL, or enter IRL code. |
| Property | Purpose |
|---|---|
|
Final action |
The action that launches after the task ends. Select Use BAL for action to define the action in BAL, or enter IRL code. |
| Property | Purpose |
|---|---|
|
Documentation |
This property displays optional information about the start node. Use this property to provide notes, comments, and other useful information that open as a tooltip. |
Ruleflow properties
| Property | Purpose |
|---|---|
|
locale |
This property indicates the language setting of the ruleflow. The default setting is
|
|
name |
The name of the ruleflow. |
|
tags |
Use this property to view and edit the values used for the import tags. Click a field and Important:
Tags are supported for compatibility purposes. Leave the tags empty. |
| Property | Purpose |
|---|---|
|
Category Filter |
Use this property to edit the rule category filter for the selected ruleflow. Click Edit to open the Category Filter dialog. |
| Property | Purpose |
|---|---|
|
View the imports used for BOM classes |
This property displays the imports for BOM classes. You edit this list to manually add or delete imports. The imported BOM or Java classes required by the IRL code in a ruleflow can be viewed and edited in the ruleflow Properties view. The list is populated automatically when you type in IRL code with Content Assist. Edit the list to remove unused imports, that is, the imports that were not removed automatically, or manually add classes if you have entered IRL code without Content Assist. If a ruleflow in a rule package contains IRL code that references variables of the default
package, you must import these variables with the |
Rule task properties
| Property | Purpose | ||||
|---|---|---|---|---|---|
|
Algorithm |
Use this section to specify the processing algorithm for the rule task:
|
||||
|
Exit Criteria |
Use this section to specify whether all the rules, one rule, or one rule instance run:
|
||||
|
Ordering |
Use this section to specify the order of rule execution in a rule task as follows:
|
||||
|
Advanced properties |
The following table summarizes some features you can set by using advanced properties.
|
| Property | Purpose |
|---|---|
|
List the rules and rule packages in the rule task |
Use this property to list the rules and rule packages that are considered when the rule task is run. To edit this list and reorder it, use the Up and Down buttons. |
|
Dynamic BAL |
Use this property to specify runtime rule selection by using a dynamic statement BAL. The property runs each time you call the task. |
|
Static BAL |
Use this property to specify runtime rule selection by using static statement in BAL. The property runs the first time that you call the task. |
|
IRL |
Use this property to specify runtime rule selection by using IRL. Define a rule filter in IRL with |
Action task properties
| Property | Purpose |
|---|---|
|
Rule Execution |
You can select the algorithm, exit criteria, and ordering for running the rule task. |
| Property | Purpose |
|---|---|
|
Edit |
You list the rules and rule package that are used in the rule task. |
|
Choose runtime rule selection |
You select the runtime language for the rule: Dynamic BAL, Static BAL, or IRL. |
Subflow properties
| Property | Purpose |
|---|---|
|
Select a ruleflow |
Click Edit to open the Select a ruleflow dialog. |
Transition properties
| Property | Purpose |
|---|---|
|
Conditions |
In the Conditions tab, you must first select the rule language you use to
write the transition: BAL or IRL. In the rule language
you chose, you write an expression whose return value must be
If you have several transitions originating from a task, there must be one (and only one)
transition with no conditions, which is considered as the default transition, also called
With several transitions, you must make sure that transitions do not overlap, which means that no
more than one transition condition must return " If there is only one transition that links two tasks, you must not specify any conditions. |