Task 1: Exploring a ruleflow

In this task, you create a branch to work in, display the ruleflow, and create an eligibility rule.

About this task

You must make a decision service that separates its decision points within projects and folders. In Miniloan Service, which contains only one project, rules that determine whether the incoming data is valid are placed in the validation folder, and rules specific to eligibility conditions are placed in the eligibility folder. The sequence of how rules or groups of rules are run to provide the requested decision is established by the ruleflow, as shown here for Miniloan Service:
Image shows the ruleflow in the decision service.

Step 1: Creating a branch

In this step, you create a branch that is based on the main branch.

Procedure

  1. Log in to the Decision Center Business console. Use Bea as the user name and password.
  2. On the Library tab, click Miniloan Service.
    This decision service contains only one project: main. Its ruleflow sequences the running of rules from different folders. In a decision service with many projects, the main ruleflow typically sequences the run across the different projects and their folders.
  3. Click the Branches tab, and then click the New Branch button "".
  4. Give a name to your new branch, for example, Ruleflow Tutorial, select main as its parent branch, and click Create.
    The Business console displays your new branch.
  5. Click the X in the Types button to show all the decision artifacts.

Step 2: Adding an eligibility rule

In this step, you create a rule for the duration of the requested loan in a subfolder of the eligibility folder.

Procedure

  1. In the Decision Artifacts tab, open the drop-down menu next to the eligibility folder and select Create Folder.
  2. Name your folder duration, and click Create.
    Your new empty folder appears as a subfolder of eligibility.
  3. In the display area for the duration folder, click the Create button "" and select New Rule.
  4. Enter max duration and score as the name of the rule, and click Create.
  5. Copy the following rule to your new rule:
    
    if
       the duration of 'the loan' / 12 is more than the credit score of 'the borrower' / 30
    then
       reject 'the loan' ;
       add "Sorry, your credit score must be at least 30 times bigger than the loan duration" to the messages of 'the loan' ;
    
  6. Click Save, and click Create New Version to save the rule.

What to do next

In the next task, you create a new ruleflow that sequences the running of the eligibility rules.