< Previous | Next >

Task 1: Exploring a ruleflow

You create a branch to work in, display the ruleflow, and add a new eligibility rule.

About this task

You should design your decision service to separate its different 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 executed to provide the requested decision is established by the ruleflow, as shown here for Miniloan Service:

Image shows the ruleflow in the decision service.

Time This task takes about 10 minutes.

Step 1: Creating a branch

About this task

Create your own branch off the main so that you can carry out this tutorial without affecting the work of others.

Procedure

  1. Log in to the Decision Center Business console. You do not need additional rights, so log in with the username/password combination Bea/Bea.
  2. On the Library tab, click Miniloan Service. This decision service contains only one project, and the ruleflow sequences the execution of rules from different folders. In a decision service with many projects, the main ruleflow typically sequences the execution across the different projects and their folders.
  3. Click the Branches tab, and then click the New Branch button "The New Branch icon".
  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 of Miniloan Service. The Decision Artifacts tab contains the following artifacts:
    Image shows the contents of the Miniloan Service project.
    Note: Click Types and apply All Types if you see the folders only.
  5. Click the miniloan ruleflow to display it.

Step 2: Adding an eligibility rule

About this task

As a business user working on this decision service, you want to add a rule relating to the duration of the requested loan. You determine that this new rule should go in a subfolder of eligibility, because you know that there will be more of these rules in the future.

Procedure

  1. In the Decision Artifacts tab, hover over the eligibility folder and, in the drop down list, 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 "The + icon" and select New Rule.
  4. Enter max duration and score as the name of the rule, and click Create.
  5. Copy the following rule and paste it into the editor to replace its default content:
    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 execution of the eligibility rules.
< Previous | Next >