Deploying and writing RuleApps by running Ant tasks

To deploy a RuleApp archive to a running Rule Execution Server instance and write RuleApps to a file system or database, you can use Ant tasks.

About this task

You can use Ant tasks for some RuleApp management tasks. Here are a few common cases:
  • Use res-deploy to deploy a RuleApp.
  • Use res-write-file to add a RuleApp archive to a file system.
  • Use res-write-db to add a RuleApp archive to a database.

If the RuleApp is associated with a Java™ XOM, you can use the res-deploy-xom, res-write-xom-file, and res-write-xom-db Ant tasks in a similar way.

Attention:

When you deploy a RuleApp with a merging policy at the ruleset level, the RuleApp that already exists in the Rule Execution Server is updated with the deployed RuleApp (description, display name, properties). If you update this RuleApp from the Rule Execution Server console, all modifications are lost at the next deployment that applies a merging policy at the ruleset level.

Procedure

To manage RuleApps with Ant tasks, use the following commands: