Task 6: Publishing to Decision Center

You publish your decision service to Decision Center in the portal, where you view your files in the Business console.

About this task

You now make your decision service available in Decision Center, a cloud environment where users view, create, and modify rules. You publish your decision service from Rule Designer to Decision Center, and can periodically synchronize the work of the business users with your Rule Designer copy.

This task is optional for learning how to make rules in Rule Designer. To do this task, you must have access to Decision Center in the cloud portal.

Important:

Before publishing your decision service, make sure the Decision Center Business console does not contain a decision service with the same name. If so, remove the other decision service from the console or change the name of your decision service in Rule Designer before you publish it.

To change the name of your decision service:
  1. Right-click your decision service.
  2. Click Refactor > Rename or Refactor > Update UUIDs.
  3. Enter a new name or modify the existing name.
  4. Click OK. Rule Designer refactors the decision service.

Step 1: Publishing the decision service to Decision Center

Ensure that you have user access to the cloud portal. You connect Rule Designer to Decision Center, and then publish your decision service to Decision Center.

Procedure

  1. In Rule Designer, click File > Configure CP4BAaaS connection.
  2. In the connection wizard, enter the URL for your tenant: https://<myhostname>automationcloud.ibm.com/.
  3. Click Connect, then Finish.
  4. In Rule Designer, right-click your decision service (my decision service or the renamed version), and then click Decision Center > Connect.
  5. In the connection wizard, enter the Decision Center URL for your tenant if it is not already predefined. Use the following format: https://odm-dev-<myhostname>.automationcloud.ibm.com/decisioncenter.
  6. Click Connect, and enter your user name and password for your cloud tenant.
    When the connection is established, the connection wizard shows the message "Connection with Decision Center established".
  7. Click Next, and then select the project and a branch you want to configure.
  8. Click Finish to publish the decision service to Decision Center.
    Tip: If the wizard shows that you are authenticated but you cannot click Finish, click Connect to reestablish your connection.
  9. Click OK to close the Synchronize Complete dialog.
  10. Click Yes in the a dialog to change to the Team Synchronizing perspective.

    An empty Synchronize view opens. It shows that there are no changes in the project. Your rules are now published to Decision Center.

Step 2: Exploring the rule project in Decision Center

You open the Decision Center Business console to see your rules in the web-based editing environment.

Procedure

  1. Sign in to the cloud portal, and open the Decision Center Business console.
  2. Click Library.
    The library opens on the decision services by default.
  3. Click your decision service (my decision service or the renamed version).
    The decision service shows tabs for releases and branches.
  4. Click Branches > main > Decision Artifacts to view your rule files.
  5. Click All Project, select All Types, and click Apply to display all the decision artifacts.
  6. Click miniloan to see the ruleflow:
    Image shows the ruleflow.
  7. In the validation package, click maximum amount to see the contents of the rule:
    Image shows the contents of the maximum amount rule.
  8. In the eligibility package, click repayment and score to see the contents of the decision table:
    Image shows the repayment and score decision table.

    The warning icons indicate empty cells. These cells fill gaps in the table, and they are ignored at run time.

Results

You have completed the tutorial. Your business rules are now available in Decision Center, and can be maintained by business users.

Deleting your decision service

If you no longer need the decision service, remove it from Decision Center. Removing your project prevents it from conflicting with other tutorial projects. To delete the decision service, see Preparing and removing the tutorial project.