Task 2: Orchestrating
You create a ruleflow to set the sequence in which the rules run.
About this task
The ruleflow provides a way to set the order in which the rule engine processes rules. In Rule Designer, you use a ruleflow to orchestrate rules.

Step 1: Creating rule packages
About this task
Before you define a ruleflow, you must organize your rules into packages that contain related rules. In this step, you create two rule packages, and then define the ruleflow for the packages.
Procedure
Results
Your rule project now contains two rule packages in which you can store rules.

Step 2: Creating the ruleflow diagram
About this task
You now design a ruleflow that creates a logical connection between the validation and eligibility rule packages. A ruleflow is a diagram that consists of several rule tasks that are connected by logical links. A ruleflow shows the sequence for running business rules.
Procedure
Step 3: Defining rule tasks
About this task
Now that you have the start and end nodes, you select the rule packages to include in the ruleflow diagram, and then you create the transitions between the packages.
Procedure
Step 4: Defining the main transition
About this task
You set a transition condition so that the rules in the eligibility package are run only when data is validated.
Procedure
Step 5: Defining the final action
About this task
You now have transitions between your rule packages. You can also define a final action to display a message in the console that indicates the status of the loan at the end of a rule run.
Procedure
Step 6: Binding the ruleflow
About this task
To use the ruleflow at run time, you must bind the ruleflow to the decision operation.
Procedure
- In the Operation Map view, click Bind ruleflow.
- In Decision Operation Overview, select Use main ruleflow in the Ruleflow section.
- Click <choose a ruleflow> and select my decision service/rules/miniloan.
- Click OK.
- Save your work and close the decision operation editor.
What to do next
You now have a ruleflow for your rule project. In the next task, you write an action rule.


