In this task, you learn how to search for rules, modify a decision table, and create an action rule in the Business console.
Business experts develop and deploy decision services in Decision Center. Distributed business teams can collaborate through the web-based environment to create and maintain decision logic. They can modify rules to meet changes in policies without changing the applications that call the rules. They can apply business decisions immediately without developers having to recode production applications.
Typically, developers working in Rule Designer can develop a new version of a decision service in response to changing application infrastructure and core business requirements, and business experts can work in Decision Center on new decisions that are delivered in response to an evolving market or a changing regulatory environment. With this separation, decisions and application architecture can be managed asynchronously.
In this task, you make the following changes for the loan company in the Miniloan project:
- The length of a loan cannot be shorter than 6 months. You apply this policy to all incoming requests.
- The company wants to increase the minimum credit score from 200 to 300 for all new loan requests.
You do a search to find the rules in the decision service that handle the credit score.
Procedure
- Log in to the Business console as business user.
- Open the Library tab.
- Hover over the Miniloan Service box, and click anywhere except the name to expand it. Then click main under Recently updated branches to open the main branch.
- In the Search for rules field, type "score" and press Enter. The results show all the action rules and decision tables in which the word score occurs. You look at all the rules, and conclude that you must edit the repayment and score decision table.
You start by checking the history of changes to the decision table, and then you edit the rule. You make a mistake and correct it.
Procedure
- Click repayment and score to display the decision table.
- Click the Timeline button in the upper right corner of the window. The history of changes for the decision table shows no recent changes.
- Click Exit Timeline.
- Click the Edit button .
Note Before editing the decision table, a dialog box pops up to change the row order. Leave the default value to Automatic and click OK.
- Double-click the number
200
in row 1 of the credit score column and enter the value 300. Do not change this value in row 2 yet. - Click the Details button and change the status to Defined. You can use the rule properties for different purposes in Decision Center, such as the organization and workflow, permissions, testing, and deployment.
- Close the property window.
- Click the Save button .
- Type the comment "Changed credit score to 300" and click Create New Version. The decision table now displays v1.1. Decision Center creates a new version with the changes. The major version number 1 is assigned to the main branch. Any new branch, including the branches of the governance framework, take the next available number. The minor version number corresponds to the number of changes made in the branch.
You check the decision table and find an error. You correct the error, save your work, and leave a comment about the error correction.
Procedure
- Hover over one of the fields with a golden triangle in the decision table. It shows an overlap error:
- Click Edit to reopen the table.
- Double-click the credit score condition for row 2, change the value 200 to 300, and press Enter. This change eliminates the overlap in rows 1 and 2.
- Click Save.
- In the Create New Version window, type the comment "Fix for gap error" and click Create New Version.
You implement the policy that shortens the minimum length of a loan to 6 months.
Procedure
- Click main in the breadcrumbs below the top banner to return to the contents of the branch.
- Open the validation folder, which contains the rules for validating loan data.
- Click the Add button , and then click New Rule.
- Type the name check duration, and click Create.
- Copy and paste the following rule into the rule editor, or build the rule with the completion menu.
if
the duration of 'the loan' is less than 6
then
add "The duration of the loan is too short" to the messages of 'the loan';
reject 'the loan';
- Click Save.
- Type "Added for Summer policy" and click Create New Version.
- Log out of the Business console. You've finished the updates.
In the next task, you test and deploy the decision service.