Define the dynamic XOM when creating a rule project, or
later in the properties of the rule project.
About this task
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.
Procedure
To define a dynamic XOM using the Properties dialog:
- In the Rule Explorer view, select
the rule project and then on the Project menu
click Properties.
- In the pane of the Properties dialog,
click Dynamic Execution Object Model.
- In the Dynamic Execution Object Model wizard,
on the Dynamic Bindings tab, select Add
XSD or Add External XSD:
To add XSDs that have been imported into the Eclipse workspace,
click Add XSD. Select each of the required
XSD files from the XSD Files dialog and then
click OK.
To add XSDs that are held in your file system, click Add
External XSD. Select each of the required XSD files from
the External XSD Files dialog and then click Open.
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, a hidden section lists the XSD files that will be included
in the ruleset archive. To see this list, click the black arrow next
to Schemas to be included in Ruleset archive for enabling
the Transparent Decision Service.
This list of files
might be important when you use the hosted transparent decision service.
- The default package name is derived from the namespace.
If you want to rename a package:
- Select the package and then click Edit.
- Type the new package name in the Package
Name Configuration dialog and then click OK.
- If you want to change the order in which the selected dynamic
binding files are listed, click the Order tab
and then use the up or down arrows to move the required files.
You might want to change the order of the 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 each
of the files you want to remove and then click Remove.