IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Extracting schemas from a rule application archive

To access the schemas for an imported rule set, extract them from the decision service.

Before you begin

Import a rule application archive file into IBM® Integration Bus by following the instructions in Importing a rule application archive file.

About this task

Rules that are written in IBM Integration Bus are based on schemas, which describe each parameter in your rules. This behavior is equivalent to the use of a schema Executable Object Model (XOM) in IBM Operational Decision Manager. For rules that are written in IBM Operational Decision Manager, IBM Integration Bus supports rule application archives that contain rule sets with schema XOMs. When you import a rule application archive from IBM Operational Decision Manager, the schemas that are associated with the contained rule sets are also included in the decision service.
To access the schemas for an imported rule set, you can extract them from the decision service. For example, if the parameters in your rules are sourced from a single input message, you might want to create an outer wrapper schema with global elements that reference the schemas in the rule set. You can use this outer schema in the following situations:
  • To complete XMLNSC validation of the incoming message at run time
  • To help to build the XPath expressions for each parameter
  • To map the input message structure

To extract the schemas from an imported rule application archive, complete the following steps.

Procedure

  1. In the Application Development view, navigate to the appropriate decision service (.rules file).

    Decision services are stored in the Decision Services folder of an application, library, or integration project.

  2. Right-click the .rules file and click Extract XML Schema files.

    The Extract XML Schema files from a Decision Service wizard opens.

  3. Select an application, library, or integration project in which to store the schema files.
  4. Select the rule set from which to extract the schemas.

    The parameters and XML schema files are listed for the selected rule set.

  5. Optional: If you are extracting updated schema files to replace existing schemas, select Overwrite existing XML Schema files in specified container.
  6. Click Finish.

Results

The schema files are extracted from the selected rule set. You can find the schema files in the Application Development view, in the selected container, in a folder called Schema Definitions.

You do not always have to deploy the extracted schemas. For example, if you are extracting schemas for modeling or to build XPath expressions, you do not have to deploy the schemas. However, you do have to deploy the extracted schemas when you use them for XMLNSC validation.


bc23817_.htm | Last updated 2015-03-27 19:27:48