The Miniloan ruleflow controls the execution of an ensemble of rules that assess borrower
eligibility. In this task, you add the borrower churn predictions to the ruleflow.
About this task
The Miniloan ruleflow called "mainflow" orchestrates the rule
execution (the order in which rules are executed) that assesses whether a borrower is eligible for a
loan. Upon submission of a loan request, the rule engine tests the borrower eligibility against the
ensemble of rules defined in the rule packages, validation and
eligibility. The borrower is eligible for a loan if the test returns true and
ineligible if the test returns false.Figure 1. The mainflow
ruleflow.
In the following procedure, you create churn
prediction rule packages by adding the rules you previously wrote to the ruleflow. Then, you create
the transitions necessary to implement your new business logic.
Procedure
Open the mainflow ruleflow.
Create a rule task and transitions for MLZScoring_1_Call.
Transitions define the sequence of rule execution:
Drag and drop MLZScoring_1_Call from the Rule
Explorer view into the ruleflow editor.
Remove the condition that is between eligibility and the end
node.
Create a transition from the eligibility to
MLZScoring_1_Call.
You select the transition button to create
transitions.
Create a transition from MLZScoring_1_Call to the end
node.
You transition to the end node button to complete the transitions for
MLZScoring_1_Call.
Create a rule task and transitions for
MLZScoring_2_Decision:
Drag and drop MLZScoring_2_Decision from the Rule
Explorer view to the ruleflow editor.
Create a transition from the MLZScoring_1_Call to
MLZScoring_2_Decision.
Create a transition from the MLZScoring_2_Decision to the end
node.
Adjust the ruleflow diagram layout by clicking (Layout All Nodes).
The ruleflow reorganizes in a more
orderly way.
Save your work.
Results
Your ruleflow now has conditions for detecting and reacting to borrower churn: