ILOG JRules User Guide > Deploying Rules > Getting Started > Tutorial: RuleApp Management > Task 4: Deploying a RuleApp Using the Console

This task describes how to deploy an update to the loanvalidation RuleApp using the Rule Execution Server Console, then confirm that the loanvalidationrules ruleset has been updated.

Step 1: Deploying an Update to the loanvalidation RuleApp

In this step, you deploy an update to the loanvalidation RuleApp using the Rule Execution Server Console.

To deploy an update to the loanvalidation RuleApp:

  1. In the Navigator panel, click RuleApps.
  2. The RuleApps View shows that there is one deployed RuleApp.
  3. In the menu bar, click Deploy RuleApp Archive to display the Deploy RuleApp Archive page:
  4. images/17a-deploy-ruleapp.png
    Tip
    Click Help to open the Rule Execution Server Console Online Help and read a description of the RuleApp deployment versioning policy.
  5. Select Increment Ruleset minor version for the versioning policy.
  6. Click Browse, locate the RuleApp archive named loanvalidation2.jar in <TutorialsDir>/resruleappmanagement/data, and then click Open.
  7. Click Deploy.
  8. A deployment report is displayed. The report lists the deployed elements that have been impacted by the RuleApp deployment.
    images/18-deploy-report.png
  9. Click OK.

Step 2: Checking the RuleApp has been Updated

You should now check that the loanvalidation/1.0 RuleApp has been updated.

To check the RuleApp has been updated:

  1. In the Navigator panel, expand RuleApps, then expand the loanvalidation/1.0 RuleApp.
  2. You will see that there are now two rulesets contained in this RuleApp.
  3. Click loanvalidation/1.0.
  4. The RuleApp View displays a list of deployed RuleApps.
    images/19-two-rulesets.png
  5. Click loanvalidationrules/1.1.
  6. In the Ruleset View, click Show Archive Content.
  7. The ruleset archive content is displayed.
  8. Click CheckAmount.irl under validation.loan.
  9. images/20-rule-updated.png
  10. Check the following line in the IRL code to make sure that the maxAmount value is 700000.
evaluate (maxAmount : 700000);

images/arrow_next.gif Next: Task 5: Fetching a RuleApp Archive Using Ant