Task 3: Testing and deploying the decision service

In this task, you check Bea's changes and deploy the decision service.

About this task

As Paul, you check Bea's changes to the Miniloan Service decision service. You run a test and a simulation, and then deploy the decision service.

Step 1: Comparing changes to the initial state

In this step, you compare the decision service to a snapshot.

Procedure

  1. Log in to the Business console as Paul.
    Open the Recent Activities tab.
  2. Hover over one of the rules, and click main in the rule description to go directly to the main branch of the Miniloan Service decision service.
  3. Click the Snapshots tab.
  4. Click the Initial State snapshot.
    You see the original state of the main branch.
  5. Click Compare to open the interface for comparing snapshots.
    It shows the existing snapshots. Select Initial State and Current State of the Project.
  6. Click Compare. It shows the repayment and score decision table. Hover over the entry and click the Compare button at the end of the row. The decision table is displayed. You can see what has been changed. Now, close the comparison window.
  7. Click the version number in the current state column to see the rule. Now, close the rule window.
  8. Click Updated to see the updated rules.
    You can see the changes to the content and properties.
  9. Hover over the row for repayment and score, and click the Compare button in the row to see the differences between the two versions of the decision table.
    You see that 200 is now 300 in the table.
  10. Close the version comparison.
  11. Click main in the breadcrumbs to return to the branch.

Step 2: Running a test suite

In this step, you test the behavior of the decision service. The Business console can test sets of rules against usage scenarios in the form of test suites. The tests compare the expected results with the actual results that come from applying rules to your scenarios.

Procedure

  1. Click the Tests tab.
    This tab contains the existing test suites, and the reports from running test suites.
  2. Hover over the Miniloan test suite row, and click the Run this test suite button. A message appears with information about the test suite and progress monitoring.
  3. Click OK in the message box. Wait until the status shows a check mark, and click the name of the report.
    The report shows a 100% scenario success rate. The rules ran correctly with the test suite.
  4. Expand the Rejected loan test, and open the Details dialog for the last test. It shows the tested collection and the items to locate.
  5. Close the report.

Step 3: Running a simulation

In this step, you run a simulation that uses a database of representative data.

Procedure

  1. Click main in the breadcrumbs.
  2. Click the Simulations tab.
    This tab contains subtabs for the different components that are required to build simulations and reports.
  3. Click the Simulations subtab, which shows the existing simulations.
  4. Hover over File Simulation, and then click Run. A message opens with information about the simulation and monitoring progress.
  5. Click OK in the message. Wait until the status shows a check mark, and click the name of the report.
    The report shows the results of the simulation in a graph that displays the ratio of granted loans by amount.
  6. Close the report.

Step 4: Deploying the decision service

In this step, you complete the tutorial by deploying the decision service.

Procedure

  1. Click the Deployments tab to open it.
    The tab contains the existing deployment configurations, and the reports created during previous deployments.
  2. Click the Miniloan deployment configuration.
    Go through the tabs in the deployment configuration:
    • General: Provides an overview of the deployment configuration, including the name, type, and RuleApp name and base version number.
    • Operations: Lists the decision operations to deploy. Here, Miniloan ServiceOperation is selected for deployment. Decision operations define how the rules you are changing are used in specific rulesets for deployment. Hover over the decision operation name to see its content.
    • Targets: List servers where the rules can be deployed. It shows the Decision Service Execution server. You can see the definition of the server in Administration > Servers.
    • Ruleset Properties: Defines the versioning policy for each deployment.
    • Groups: Lets the administrator choose which groups can deploy decision services by using this deployment configuration. As an administrator, Paul can see all the deployment configurations.
    • Deployment Snapshot: Defines whether a snapshot is taken at the moment of deployment.
  3. Click the Deploy button "" in the upper right corner of the window. A dialog box opens with a summary of the deployment configuration. It gives you the option of deploying to a server or creating a RuleApp archive.
  4. Leave the server selected in the dialog, and click Deploy. A message opens with the status of the deployment.
  5. Click OK in the deployment status message.
    The Reports subtab opens in the Deployments tab. It contains a new report.
  6. Click the name of the new report.
    The report shows a summary of the deployment. It includes the target server, the configuration name, the ruleset, the deployment time, the version of the ruleset, and the deployment snapshot.
  7. Click the Close button "" in the upper right corner of the window to close the report.

Results

You have completed the tutorial. It showed you the Business console, and how to author, test, and deploy a decision service.