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.
Open the tutorial_example.erf file, and then
click on the tutorial_example box.
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.
To package the Ruleflow, select Project >
Package and Deploy Decision Services.
In the Deployment Target window, choose Package and save for later deployment and click Next.
In the Package Ruleflows screen:
Select the tutorial_example
Ruleflow.
Click twice on the Decision Service Name, and then type in our
preferred name, Cargo.
Click Finish.A message indicates that the Ruleflow was successfully compiled into an
EDS file and saved in the location you specified.
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.
On the Start menu, choose Progress > Start
Corticon Server. Wait a minute or so for the server startup to complete.
On the Start menu, choose Progress > Start Web
Console.
The Web Console login page opens. Enter admin/admin in the User Name/Password fields and click Log
in.The Web Console Home page opens.
Click on Manage Decision Services.
On the Decision Services page, click + Add
Decision Service.
In the options panel, choose Add a new Decision Service.The Add Decision Service dialog box opens:
In the Add Decision Service dialog box:
In the Name field, enter Cargo as the name for the Decision
Service.
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.
On the Select Servers pulldown, choose local server.
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:
You have now successfully deployed the Ruleflow as a Decision Service on Corticon
Server.