Preparing and removing the tutorial project

The Miniloan Service decision service is used in most of the tutorials. This topic provides information for setting up the project for a tutorial and removing it when it is no longer needed.

About this task

The sections in this topic cover different activities for preparing and removing the Miniloan Service project. You do not have to follow all the instructions in this topic with every tutorial. Follow the instructions pertinent to your tutorial.

Checking the availability of the decision service

You determine whether the Miniloan Service decision service is already in the cloud portal.

Procedure

  1. Sign in to the cloud portal.
  2. Launch the Decision Center Business console in the development environment.
    The console opens to its home page.
  3. Click LIBRARY to open the list of decision services that are currently in Decision Center.
  4. Enter Miniloan Service in the filter to look for the decision service.
    Image shows the filter results.

    If the Miniloan Service decision service is in the library, skip the next two tasks and do the task "Creating a branch."

Downloading the decision service

You download a compressed file, and extract its files to your computer.

Procedure

  1. Return to the cloud portal homepage.
  2. Click Downloads > Rule Designer.
  3. Click Miniloan Service project and Miniloan Server web application.
    A download dialog opens.
  4. Select Save File, and click OK.
  5. Select a directory for the download file, and click Save.
    A compressed file is downloaded to the directory: <InstallDir>\odm-cloud-getting-started-master.zip. InstallDir is your directory for the GitHub files.
  6. Click Close in the Rule Designer download dialog.
  7. Open the compressed file, <InstallDir>\odm-cloud-getting-started-master.zip.
  8. Extract the contents of the compressed file to the same directory.
    If you keep the original name, the new folder is odm-cloud-getting-started-master.

Importing the decision service into Decision Center

You import the decision service into the Business console.

Procedure

  1. Open the folder that you created in the previous step, odm-cloud-getting-started-master.
  2. Compress the Miniloan Service and miniloan-xom files into a .zip file named, for example, miniloan.zip.
  3. Open the LIBRARY tab in the Business console, and click the Import Decision Service button ""
  4. Click Choose, and navigate to the compressed file that you created, miniloan.zip.
  5. Select your compressed file, and click Open.
  6. Click Import.
    The decision service is added to the library.

Creating a branch

You create a branch to isolate your changes to the decision service.

About this task

The main branch in the decision service contains the rule artifacts in their original form. To update the decision service, you create a branch based on the main branch, and work in the new branch.

Procedure

  1. Click Miniloan Service to open the decision service.
  2. Open the Branches tab, and expand the main branch.
    Look at the names of the existing branches. When you name your branch, do not reuse the name of an existing branch.
  3. Click the New Branch button "".
  4. Enter a name for your branch, for example, My Tutorial.
    Remember not to reuse the name of an existing branch. For example, you can personalize your branch by using the initials of your name.
  5. Select main as the parent branch, and then click Create.
    The Business console duplicates the artifacts of the main branch in a new branch that you can modify.

Results

You can now work on the decision service in the tutorials.

Deleting your branch from Decision Center

About this task

When you no longer need your branch in the Miniloan Service decision service, you can delete it from Decision Center.

Procedure

  1. Open LIBRARY in the Business console
  2. Open the Miniloan Service decision service, and open the Branches tab.
  3. Expand the main branch to see your branch.
  4. Hover over the name of your branch, click the down arrow to open the command menu, and click Delete:
    Image shows the delete command.
  5. Click Yes in the Delete Branch dialog.

Results

Your branch is deleted from Decision Center, and is no longer displayed in the Business console.

Deleting the decision service from Decision Center

You can remove the Miniloan Service decision service from the Decision Center database.

Procedure

  1. Open the Library tab in the Business console.
  2. Hover over the Miniloan Service box, open the drop-down menu and click Delete:
    Image shows the drop-down menu
    A warning message opens. It shows the decision service that you selected.
  3. Click Delete. The decision service is removed from Decision Center.

Removing a ruleset from Rule Execution Server

About this task

You can remove a ruleset that you deployed to Rule Execution Server.

Procedure

  1. Return to the cloud portal.
  2. Launch the Rule Execution Server console.
  3. Click Explorer to open the tab.
  4. Open the RuleApp for your decision service, for example, RuleApps/Miniloan/1.0.
  5. Select the ruleset for your decision service in the RuleApp view, for example, Miniloan_ServiceRuleset:
    Image shows the selected ruleset.
  6. Click Remove to delete the ruleset.
    A warning message opens. It shows the ruleset that you selected.
  7. Click Confirm in the warning message.
    The console deletes your ruleset. The RuleApp view opens, and it no longer shows your ruleset.

Results

You removed your ruleset from the Rule Execution Server console.