Task 2: Touring the decision service
About this task
Companies set policies for their operations. These policies can address such matters as pricing, eligibility, and product configuration. You use business rules to express these policies in rule applications. The rules state the conditions for applying the policies, and the resulting actions. Client applications then call the rules to implement the policies.
In this task, you look at some of the artifacts in your branch of the Miniloan Service decision service.
Step 1: Opening your branch
You open your branch and display its decision artifacts.
Procedure
Step 2: Exploring the ruleflow
You open the ruleflow to determine how it works.
About this task
A decision service keeps its decision points in projects and folders. The Miniloan Service decision service contains one project, and two folders for different decision points. The rule in the validation folder determines whether incoming loan data is valid, and the rules in the eligibility folder apply various conditions for eligibility.
The ruleflow states the sequence for applying the rules:

The ruleflow starts by running the rule in the validation folder. If the data from a loan request passes the rule, the ruleflow directs the data to the eligibility rules. However, if the validation decision point does not approve the data, the ruleflow skips the eligibility decision point, and the decision service stops processing the loan request. For more information, see Editing ruleflows.
Procedure
- Hover over miniloan in the list of decision artifacts.
- Click the ruleflow to open it in the preview window.
Step 3: Exploring an action rule
You open an action rule to determine how it works.
About this task
- Action rules: An action rule states a policy in a natural language. It uses conditions and actions to check the data and apply a response.
- Decision tables: A decision table holds several action rules that share the same policy statement but use different variables. The variables are listed in condition and action columns, and each row of the table forms a complete action rule.
You start by looking at an action rule.
Procedure
Step 4: Exploring a decision table
You open a decision table to determine how it works.
Procedure
Step 5: Running a test suite
You add a test suite and run it to verify that the decision service works correctly before changes are made.
Procedure
- Click to open the subtab.
-
Click the New Test Suite button
.
The dialog for creating a new test suite opens. -
Click Choose, and navigate to
<InstallDir>/odm-cloud-getting-started-master/Miniloan Service.
InstallDir is your directory for the extracted files from the GitHub repository, as shown in task1, step2.
- Select miniloan-test.xlsx, and then click Open.
- Make sure that the selected server is Testing And Simulation Runtime, which is the default server for running tests and simulations.
-
Click the Save and Run button
.
-
Enter the information that is shown in the following image:

-
Click Create New Version, and then click OK in
the Run Test Suite dialog.
The console runs the test and switches to the Reports tab. A new report indicates a successful test by displaying a check mark in the Status column:

-
Click the name of the report.
The report opens, and displays details that include the following summary:

- Close the report.
What to do next
In the next task, you search for the decision table, update it, and create an action rule.

