Now that you have prepared the Vocabulary, you can deploy rules created in Rulesheets, and prepared in a Ruleflow that uses the Vocabulary. You will package and deploy a Decision Service to Corticon Server.

There are different ways to deploy a Ruleflow to Corticon Server. In this tutorial, you will package the Ruleflow in a pre-compiled EDS file and then deploy it to Corticon Server using the Web Console.

To learn about other methods of deployment, refer to the Deployment topics in the Corticon Information Hub.

Packaging the Ruleflow into an Decision Service file

Let’s start by packaging the Ruleflow in Corticon Studio into a Decision Service, an EDS file.

  1. Open the tutorial_example.erf file, and then click on the tutorial_example box.
    media/image9.png
  2. The Ruleflow has just one Rulesheet—Cargo.ers—which is renamed to tutorial_example in the Ruleflow. When you create an EDS file, related Ruleflow, Rulesheet, and the Vocabulary are compiled into a package that can be deployed to run rules on Corticon Server.
  3. To package the Ruleflow, select Project > Package and Deploy Decision Services.
    media/image10.png
  4. In the Deployment Target window, choose Package and save for later deployment and click Next.
    media/image11.png
  5. In the Package Ruleflows screen:
    1. Select the tutorial_example Ruleflow.
    2. Click twice on the Decision Service Name, and then type in our preferred name, Cargo.
    3. Click Finish.
      A message indicates that the Ruleflow was successfully compiled into an EDS file and saved in the location you specified.
      media/image13.png

We’ll deploy the Decision Service to Corticon Server using the Web Console, and then test it there with our sample requests.

Deploying the Decision Service using the Web Console

The Web Console is the tool for administering and monitoring your Decision Services. Before you launch the Web Console, ensure that Corticon Server is started.

  1. On the Start menu, choose Progress > Start Corticon Server. Wait a minute or so for the server startup to complete.
  2. On the Start menu, choose Progress > Start Web Console.
  3. The Web Console login page opens. Enter admin/admin in the User Name/Password fields and click Log in.
    media/image15.png
    The Web Console Home page opens.
  4. Click on Manage Decision Services.
    media/image16.png
  5. On the Decision Services page, click + Add Decision Service.
  6. In the options panel, choose Add a new Decision Service.
    media/image18.png
    The Add Decision Service dialog box opens:
    media/image19.png
  7. In the Add Decision Service dialog box:
    1. In the Name field, enter Cargo as the name for the Decision Service.
    2. In the EDS File section, click Choose File. In the window that opens, navigate to the location where you saved the EDS file and click Open.
    3. On the Select Servers pulldown, choose local server.
    4. Click Save & Deploy to deploy the Decision Service to the Corticon Server.
Note: The Server's major.minor version must accept the EDS file. Corticon Server will refuse to deploy invalid versions, and will log or display an error.

When the Decision Service is successfully deployed, you see a green checkmark next to the Decision Service name:

media/image20.png
You have now successfully deployed the Ruleflow as a Decision Service on Corticon Server.