You can define a dynamic XOM either in the New Rule Project wizard when you create the project, or later, using the rule project Properties dialog. The procedure is the same in each case.
-
In the Rule Explorer view, select the rule project, then on the Project menu click Properties.
-
In the left pane of the Properties dialog, click Dynamic Execution Object Model.
-
In the Dynamic Execution Object Model wizard, on the Dynamic Bindings tab, select one of the following:
To add XSDs that have been imported into the Eclipse workspace, click
Add XSD, select the required XSD file(s) from the
XSD Files dialog then click
OK.
To add XSDs that are held in your file system, click
Add External XSD, select the required XSD file(s) from the
External XSD Files dialog then click
Open.
To add WSDL files that have been imported into the workspace, click
Add WSDL, select the required WSDL file(s) from the
WSDL Files dialog then click
OK.
To add WSDL files that are held in your file system, click
Add External WSDL, type the internet address of the WSDL file then click
OK.
The following image shows a selection of XSDs, but the behavior is the same for XSDs and WSDL files.
For each schema namespace, a package name is defined in which the XOM classes will be stored. You can expand each list entry to see the XML namespaces and the package names.
At the bottom of the Dynamic Bindings tab, there is a hidden section that lists the XSD files that will be included in the ruleset archive. To see this list, click the black arrow to the left of:
This list of files may be important when you use the hosted transparent decision service.
The following image shows a list of selected XSDs, with one of them expanded to show how the packages are organized. In this example, the schema
types.xsd imports the schema name
Type.xsd, which itself imports the schema
subNameType.xsd.
All dependencies are automatically selected. You would not normally deselect any of them.
-
The default package name is derived from the namespace. If you want to rename a package:
-
Select the package and click Edit.
-
Type the new package name in the Package Name Configuration dialog, then click OK.
-
If you want to change the order in which the selected dynamic binding files are listed, click the Order tab and use the up or down arrows to move the required files.
You might want to re-order files if the same element exists in more than one file and you want to dictate which schema or file to use first to identify it.
-
When you have selected all your dynamic binding files, click OK to close the Dynamic Execution Object Model dialog.
The dynamic XOM is now defined. The new packages appear in the BOM Entry and behave like any normal package.
-
To remove dynamic binding files from the XOM, select the required file(s), then click Remove.