< Previous | Next >

Task 1: Deploying the ruleset to Rule Execution Server

You import the loan validation decision service project into Rule Designer, create a deployment configuration, and deploy a RuleApp from the project to Rule Execution Server.

Before you begin

Start the Samples Console and the sample server by following the instructions in Running samples from the Samples Console.

Step 1: Importing the loan validation decision service project

About this task

You import the loan validation rule project into Rule Designer.

Procedure

  1. In the Samples Console, open the Samples and Tutorials view.
  2. Navigate to Rule Execution Server > Tutorials > Debugging a RES application > start, and click Import projects. Rule Explorer displays the following projects:
    • loanvalidation-rules: the decision service project
    • loanvalidation-xom: the Java XOM of the decision service

Step 2: Creating a deployment configuration in Rule Designer

About this task

You create a deployment configuration in Rule Designer.

Procedure

  1. Expand the loanvalidation-rules decision service project, and right-click the deployment folder.
  2. From the contextual menu, choose New > Deployment Configuration.
  3. Enter loanvalidation_debugging in the Name field, and then click Finish. The deployment configuration editor opens.
  4. Click the Decision Operations tab. In the Configured Decision Operations section, click the Add button "".
  5. Choose Select existing decision operations, and select loanvalidation-rules, and then click Finish.
  6. Click the Target Servers tab and click the Add button "".
  7. In the Target Server dialog, select an existing connection if you have one already defined. Otherwise, choose the Create a Rule Execution Server connection option, click Next, and enter the following information:
    • Name: Sample server
    • URL: http://<hostname>:<port>/res
    • Username and password: resAdmin
  8. Click Test Connection to make sure that the server setting is correct.
  9. Click Finish.
  10. Save your changes.

Step 3: Deploying the loan validation RuleApp to Rule Execution Server

About this task

You deploy the loan validation RuleApp from the deployment configuration.

Procedure

  1. Open the loanvalidation-debugging deployment configuration.
  2. On Overview tab, click Proceed to RuleApp deployment in the Deployment section.
  3. In the RuleApp Deployment wizard, select loanvalidation-rulesOperation to deploy it, and click Next. Check the credentials and click Finish.
    Note:

    When you deploy a RuleApp from the Samples Console, you get a message to use the same JDK for Rule Designer and the application server. You can ignore this message because the same JDK is used for the Samples Console and the sample server.

  4. Wait until the deployment finishes and the deployment report page opens.
  5. Click on the Rule Execution Server console link in the Sample Server View to open the console.
  6. Log in by entering resAdmin as the user name and password.
  7. On the Explorer page, click RuleApps on the Navigator panel, The loanvalidation_debugging RuleApp is listed in the RuleApps table.

What to do next

In the next task, you enable debugging on a ruleset, and you run the application in debug mode.
< Previous | Next >