Step 5: Adding rules to the Miniloan ruleflow

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.
The Miniloan 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

  1. Open the mainflow ruleflow.
  2. Create a rule task and transitions for MLZScoring_1_Call. Transitions define the sequence of rule execution:
    1. Drag and drop MLZScoring_1_Call from the Rule Explorer view into the ruleflow editor.
    2. Remove the condition that is between eligibility and the end node.
    3. Create a transition from the eligibility to MLZScoring_1_Call.
      You select the transition button Transition button. to create transitions.
    4. Create a transition from MLZScoring_1_Call to the end node.
      You transition to the end node button End node button. to complete the transitions for MLZScoring_1_Call.
  3. Create a rule task and transitions for MLZScoring_2_Decision:
    1. Drag and drop MLZScoring_2_Decision from the Rule Explorer view to the ruleflow editor.
    2. Create a transition from the MLZScoring_1_Call to MLZScoring_2_Decision.
    3. Create a transition from the MLZScoring_2_Decision to the end node.
  4. Adjust the ruleflow diagram layout by clicking Layout All Nodes button (Layout All Nodes).
    The ruleflow reorganizes in a more orderly way.
  5. Save your work.

Results

Your ruleflow now has conditions for detecting and reacting to borrower churn: A ruleflow containing borrower churn predictions.

What to do next

Next, you redeploy the Miniloan rule project.