You use a rule project template to set up the structure of a rule project. You can choose from different types of templates: standard, predefined, or custom.
You have a choice of templates for creating your rule project structure.
The standard rule project template creates an empty standard rule project. You can choose from the following options:
Rule Project References: To list the dependencies between your new rule project and other existing rule projects.
Rule Project Java™ XOM settings: To define the Java Execution Object Model (XOM). You can set the path on Java folders, JARs or projects.
Dynamic XOM settings: To define the dynamic XOM. You can set the path on XML schemas or dynamic XOM files.
Rule project model folders: To define the folders in the rule project to help you organize your rule project artifacts.
The standard rule project template populates the following folders:
Source folder (rules): Stores rule artifacts. It is good practice to organize your rule artifacts in the source folder with rule packages. Rule packages can contain other packages nested within them. Nested packages can contain all types of rule artifacts.
BOM folder (bom): Stores BOM entries. BOM entries define the structure of a BOM and its associated vocabulary and BOM to XOM mapping.
Query folder (queries): Stores queries.
Resource folder (resources): Stores any type of file that is not part of the rule model.
Template folder (templates): Stores action rule templates.
This template creates a rule project containing the following items:
A single rule in a single package
A ruleflow
A BOM with two static methods
The Rule Project with a BOM template creates an empty rule project. You have the following options:
Rule Project XOM settings, to define the:
Java Execution Object Model (XOM). You can set the path on Java folders, JARs or projects.
Dynamic XOM. You can set the path on XML schemas or dynamic XOM files.
BOM entries and verbalization are automatically created for each XOM you specify.
Rule Project References, to list the dependencies between your new rule project and other existing rule projects.
Custom rule project templates provide additional flexibility in creating rule projects. For information about custom rule project templates, refer to Creating a rule project template.