You use the Ruleflow Editor to create and edit ruleflows for sequencing rule execution.
To open the Ruleflow Editor:
Double-click an existing ruleflow in Rule Explorer.
To create a new ruleflow, click the rule project or rule package you want to create the ruleflow in and select:
File menu.
from thefrom the pop-up menu.
New Ruleflow from the New rule project item toolbar.
The following illustration describes the main parts of the Ruleflow Editor:
Toolbar
Palette
Diagram
Tabs
You can select element in different ways depending on the number of elements:
A single element: Click the element in the ruleflow diagram or in Rule Explorer.
This action displays the Properties view for the element.
A number of elements: Ctrl+click each of the elements if the elements are of the same type.
All elements: Right-click anywhere in the ruleflow editing area and choose Select All.
The selected ruleflow element changes color.
Some basic editing aids are available:
To move a ruleflow element, hold the mouse button on it while repositioning.
To deselect a selected element, click another element, click the ruleflow background, or use Esc.
Right-click a ruleflow or element to provide a pop-up menu which you can use to:
Cut, copy, paste, and delete elements in the ruleflow
Undo or redo the last action
Group and align ruleflow elements
You can use standard keyboard shortcuts to cut, copy, paste and delete elements.
You define the ruleflow structure by adding ruleflow nodes and transitions, which are available from the Ruleflow palette.
To create a ruleflow element:
Click the Diagram tab of the Ruleflow Editor.
Click the element you want to add in the palette.
Click in the Diagram page of the Ruleflow Editor.
Command | Description |
---|---|
Create a start node | Use this icon to insert a start node in the ruleflow. To edit the Initial action, select the start node in the Diagram page and use the Properties view. |
Create an end node | Use this icon to insert an end node in a ruleflow. To edit the action, select the end node in the Diagram page and use the Properties view. |
Create a rule task | Use this icon to insert a rule task in the ruleflow. To edit the rule task, select it in the Diagram page and use the Properties view. |
Create an action task | Use this icon to insert an action task in the ruleflow. To edit the action task, select it in the Diagram page and use the Properties view. |
Create a subflow task | Use this icon to insert a subflow task. To edit the subflow task, select it in the Diagram page and use the Properties view. |
Create a branch node | Use this icon to insert a branch in the ruleflow. To edit the branch, select it in the Diagram page and use the Properties view. |
Create a fork node | Use this icon to create a fork in a ruleflow. To edit the fork, select it in the Diagram page and use the Properties view. |
Create a join node | Use this icon to insert a join in a ruleflow. To edit the join node, select it in the Diagram page and use the Properties view. |
Create a transition | Use this icon to create a transition in the ruleflow. To edit the transition, select it in the Diagram page and use the Properties view. |
For information about the Ruleflow Editor toolbar, see Ruleflow Editor toolbar.
You use the tabs at the bottom of the Ruleflow Editor to view and work with different aspects of the ruleflow:
This tab opens the Diagram page with a palette and toolbar. You use this view to create ruleflow nodes and work with the ruleflow as a whole.
This tab provides a translation of the ruleflow in the ILOG® Rule Language (IRL). This view is read-only.
This tab provides a view of the XML source of the artifact. This view is read-only.
You edit ruleflows and ruleflow nodes through a Properties view that contains specific information for the ruleflow itself and for each node in the ruleflow.
Task nodes have quick-reference icons to view details on initial actions, runtime rule selection and final actions.