You create ruleflows like other rule project items.
About this task
You can add a ruleflow to a project or any of its packages.
You can have multiple ruleflows in a project. If you have more than
one ruleflow in a project, you must define one of them as the main
ruleflow.
Procedure
To create a new ruleflow:
- In the Rule Explorer, click the name of the package or
project you want to add the ruleflow to, and then click New Ruleflow on
the New Rule Project Item toolbar.
The New Ruleflow
dialog opens. The Source folder field displays
the rule project name concatenated with the Java-type source folder.
For an Eclipse-style source folder, you normally do not need to change
this field.
- In the Package field of the New
Ruleflow dialog, type the name of the package to which
the ruleflow is to be added. No entry is needed for a ruleflow created
under the top package.
- In the Name field, type the name
of the ruleflow.
- Click Finish.
The
Ruleflow Editor opens.
- In the Ruleflow Editor palette, click Create a start node,
then click in the ruleflow diagram.
Note: A ruleflow
can have only one start node.
- In the Ruleflow Editor palette, click Create an end node,
then click in the ruleflow diagram.
Note: A ruleflow
must have at least one end node.
- Add ruleflow elements as required.
- To set the ruleflow as main:
- Open the main ruleflow.
- Click in an empty area of the ruleflow diagram, ensuring
that you do not select any of the ruleflow nodes.
- In the Properties view for the
ruleflow, click the Properties tab.
- Set the main flow task property
to true.
- Save the ruleflow (Ctrl+S).