In this task, you use a ruleflow to specify the order in which rules are executed.
A ruleflow is a way to organize the sequence in which rules are processed by the rule engine. In Rule Designer you orchestrate rule execution using a ruleflow.
This task should take you about 15 to 25 minutes to complete.
The Miniloan application first validates the data about the loan and the borrower, and, if the data is valid, assesses whether the borrower is eligible for the loan.
When defining the flow of execution, you organize your rules into packages that contain related rules. In this case, you have a package of rules related to validation, and another related to eligibility. You then treat these rule packages as tasks in the ruleflow.
To create a rule package:
Your rule project now contains two packages for storing your rules:
To define the high level flow of execution of business rules, you create a ruleflow. A ruleflow consists of rule tasks and logical links between these tasks. You need two tasks in the ruleflow: one for validation and one for eligibility.
To create a ruleflow:
To define the ruleflow, you select the rule packages to include, and then create the transitions between them.
To define the rule tasks:
You can define conditions on transitions in the ruleflow. In this ruleflow, you set a transition condition so that rules in the eligibility package are run only when data is validated.
To define the main transition:
You can also define a final action to display a message at the end of the execution.
To define the final action:
You have now defined the flow of execution. In the next task, you will write an action.