< Previous

Task 5: Working with RuleApp archives by using Ant tasks

You use an Ant task to deploy and fetch a RuleApp archive.

About this task

You use Ant tasks to deploy and fetch a RuleApp archive. You do not use the Rule Execution Server console.

Step 1: Deploying a RuleApp archive

Before you begin

Before you proceed, make sure that your environment is set up to run Ant tasks. See Setting up your environment to automate processes.

About this task

In this task, you deploy a RuleApp by using an Ant task. You use a RuleApp archive file that was created by using a deployment configuration in Rule Designer.

Procedure

  1. Open a command line window.
  2. Navigate to <TutorialsDir>/resruleappmanagement.
  3. Type ant deploy.

    The Ant target undeploys the existing RuleApp that you deployed in the previous task, and then deploys the loanvalidation_for_resruleappmngt RuleApp from the JAR file in the execution server.

    Note:

    If the Ant task fails, see Setting up your environment to automate processes.

  4. Check that the results show Deploy succeeded.
  5. Open the Rule Execution Server console. In the Explorer tab, you can see the loanvalidation_for_resruleappmngt RuleApp.

Step 2: Fetching a RuleApp

About this task

You use an Ant task to fetch a RuleApp archive.

Procedure

  1. Open a command line window.
  2. Navigate to <TutorialsDir>/resruleappmanagement.
  3. Type the following command: ant fetch

    The Ant target gets the loanvalidation RuleApp from Rule Execution Server and archives it in loanvalidation.jar in <TutorialsDir>/resruleappmanagement/work.

    If the Ant task fails, see Setting up your environment to automate processes.

  4. Check that the results show Download succeeded.
  5. Open the archive <TutorialsDir>/resruleappmanagement/work/loanvalidation.jar by using a decompression tool for .zip files.
    Directory structure for downloaded RuleApp archive

Results

You completed this tutorial and learned how to manage RuleApps.

< Previous