Creating ruleflows

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:

  1. In the Rule Explorer, click the name of the package or project you want to add the ruleflow to, and then click New Ruleflow button 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.

  2. 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.
  3. In the Name field, type the name of the ruleflow.
  4. Click Finish.

    The Ruleflow Editor opens.

  5. In the Ruleflow Editor palette, click Start node button Create a start node, then click in the ruleflow diagram.
    Note:

    A ruleflow can have only one start node.

  6. In the Ruleflow Editor palette, click End node button Create an end node, then click in the ruleflow diagram.
    Note:

    A ruleflow must have at least one end node.

  7. Add ruleflow elements as required.
  8. To set the ruleflow as main:
    1. Open the main ruleflow.
    2. Click in an empty area of the ruleflow diagram, ensuring that you do not select any of the ruleflow nodes.
    3. In the Properties view for the ruleflow, click the Properties tab.
    4. Set the main flow task property to true.
  9. Save the ruleflow (Ctrl+S).