Archiving RuleApps

You can package a RuleApp into a JAR file as a RuleApp archive and download it.

About this task

You can package and download a RuleApp archive that includes all rulesets or selected rulesets in the RuleApp:
  • Download a RuleApp archive with all rulesets in the RuleApp. This feature is available in the following views in the Explore tab:
    • RuleApps View
    • RuleApp View
  • Download a RuleApp archive with selected rulesets in the RuleApp. This feature is available only in the RuleApp View page.
Note: You can download a RuleApp archive with embedded managed Java™ XOMs when the ilog.rules.res.XOM_IN_RULEAPP_ARCHIVE parameter in the web.xml deployment descriptor file of the Rule Execution Server console is set to true. This parameter is set to false by default.

Procedure

  1. Click the Explore tab
  2. In the Navigator panel, click RuleApps to display the RuleApps View page.
  3. Download a RuleApp archive. Choose one of the options in the following table.
    Table 1. How to download a RuleApp archive
    Include all rulesets in the RuleApp archive Include selected rulesets in the RuleApp archive
    From RuleApps View From RuleApp View From RuleApp View
    1. Select a RuleApp in the RuleApps table, and click Download Archive with All Rulesets next to a green arrow in the row.
    1. Click a RuleApp in the RuleApps table. The RuleApp View page is displayed with a list of rulesets.
    2. Click Download Archive with All Rulesets next to a green arrow.
    1. Click a RuleApp in the RuleApps table. The RuleApp View page is displayed with a list of rulesets.
    2. Select the rulesets that you want to include from the table, and click Download.
  4. Save the file. The file is downloaded in the location that you specified.

Results

The RuleApp archive is now created and downloaded in the specified location. The archive contains the RuleApp and its rulesets. If you set the ilog.rules.res.XOM_IN_RULEAPP_ARCHIVE parameter to true before you download the RuleApp archive, it also contains the associated managed Java XOMs. The RuleApp itself is not changed or deleted from the server.
Remember: You can also create a RuleApp archive with the REST API. You can learn and test the GetRuleAppArchive method in the REST API test tool. Go to the REST API tab, and check the /ruleapps tab.

You can select rulesets with the query parameter in the method. For more information about the options for the query parameter, see REST API GetRuleAppArchive query parameter options.