< Previous | Next >

Task 2: Finishing work on a change activity

In this task, Bea completes a change activity by modifying a business rule and a decision table, testing the results, and deploying the rules to a nonproduction environment for quality assessment.

About this task

Because the purpose of this tutorial is not rule editing, which is covered in other tutorials, Bea makes two simple rule changes in two of the projects in the decision service. She then tests and deploys the version of the rules that are contained in her change activity. After that, she changes her status to Finished, which will initiate actions by Paul within the governance framework.

Time This task takes about 10 minutes.

Step 1: Access the change activity and move to another project

About this task

The Spring release contains two change activities, one that is already completed, and the other that Bea must finish.

Procedure

  1. On the Activities tab of the Spring release, click Adjust Scoring. Notice, on the Change Activity panel, that Bea is the only author for this activity, and that Paul is the owner and approver. An activity can have many authors and approvers, but only one owner.

    Information on the Change Activity tab.

  2. Click the Snapshots tab. The Initial Snapshot was created automatically to capture the content at the time when the change activity was created. This initial content is the exact replica of the content of the Spring release at that time. The release content can change through other change activities that might have been completed since.
  3. Click the Decision Artifacts tab. You can see that Loan Validation Service contains five projects. The top-level project has the same name as the decision service, and the other projects are listed below it.
  4. Click the Loan Validation Scoring > computation folder to see the rules contained in this folder.

Step 2: Run a simulation

About this task

A simulation evaluates the performance of a set of rules by running them against a database of representative data. Before changing any rules, Bea runs a simulation to evaluate the current performance of the rules.

Procedure

To run the simulation:

  1. Click the Simulations tab, and then click the Simulations subtab. The simulation has been prepared for you.
  2. Click File Simulation in the list of simulations. Click Run, and then click OK in the pop-up window. Once the status column shows a check mark, click the report name. The report shows different graphs that correspond to key performance indicators, for example, the loan grade distribution.

    Image shows simulation report.

  3. Close the report.

Step 3: Update the rules

About this task

Bea changes a value in a decision table, and a condition in a business rule.

Procedure

To update the rules:

  1. Click the Decision Artifacts tab and select the Loan Validation Scoring > computation folder.
  2. Click the salary2score decision table. The decision table is displayed.
  3. Click the Edit icon just above the table, and accept the default setting.
  4. Double-click 300 in Row 8, change 300 to 400, and press Enter.
  5. Click Save and then Create New Version.
  6. Click Adjust Scoring in the breadcrumbs to return to the Decision Artifacts tab.
  7. Select the Loan Validation Check > validation > loan folder.
  8. Hover over the checkAmount rule. Notice that this rule currently has version 1.0.
  9. Click checkAmount and then click the Edit icon above the rule.
  10. Change maxAmount from 1,000,000 to 200,000.
  11. Click Save and then Create New Version.

    Notice how the version number is now 4.0. In Decision Center, each branch is assigned a major version number. Before editing, the version number 1.0 came from the original main branch. Branch 2 is the Initial Release, branch 3 is the Spring Release, and branch 4 is this change activity. Subsequent changes increase the minor version of the rule. When the change activity is completed and merged with the release, the major version number adopts the release version, and the minor version number reflects the sequence of change activity merges.

Step 4: Test the contents of the change activity

About this task

Now that Bea has finished changing the rules, she wants to make sure that the changes did not introduce unexpected behavior. The Business console provides capabilities to test sets of rules against usage scenarios, in the form of test suites. Test suites compare the results that you expect to have with the actual results obtained when applying rules on your scenarios.

Procedure

To run a test suite:

  1. Return to the change activity by clicking Adjust Scoring in the breadcrumbs.
  2. Click the Tests tab and then click Scoring test suite. This test suite has been prepared for you. Before you run the test suite, notice the following aspects:
    • The test suite runs on the version of the rules that are contained in the Adjust Scoring change activity, but not necessarily all of its rules. The decision operation, in this case loan validation with score and grade, further identifies which subset of rules from the decision service to test. Hover over the decision operation name to get more details on what it contains.
    • The scenarios are stored in the assessment.xlsx file, which is an Excel 2007 file that you generate and edit to contain the data that you need: a Scenarios tab for the input data, and an Expected Results tab where you enter what you expect to obtain for specific tests.
  3. Click Run and then click OK. Running a test suite generates a report. Once the status of the test shows a check mark, click the report name. The report shows that 100% of the scenarios are successful because they generate the expected results. The Results section of the report shows that a low risk loan request is accepted and a high risk loan request is rejected, as expected.

    Image shows the test report details.

  4. Close the report.

Step 5: Deploy the contents of the change activity

About this task

Now that Bea is satisfied with the results, she deploys the version of the rules that are contained in the change activity to a nonproduction server for quality assessment. From a change activity, Bea can deploy to nonproduction servers according to any deployment configuration that has been prepared for her. She cannot edit these deployment configurations, which require administrator privileges beyond just being the owner of a release or activity. The available deployment configurations are visible on the Deployments tab, but you see them more closely in Task 4.

Procedure

To deploy the rules of the change activity:

  1. In the top banner, click Deploy.
  2. Make sure that the sample server is the target of the deployment and click Deploy.
  3. Click OK.
  4. Once the status is complete, click on the report name to see the details of the deployment. You will see more details about the report in Task 4.
  5. Close the report.

Step 6: Change the working status

About this task

Now that Bea has tested and deployed the changes that she made, she can mark her work as done.

Procedure

To change the working status:

  1. On the Change Activity panel, change the status from Working to Finish working. Bea's working status becomes Finished. No other changes can be made to the change activity unless the owner reopens it.
  2. Log out.

Results

In the next task, Paul reviews and approves the changes that Bea made.
< Previous | Next >