The Rulebase Build Tool provides a means of building a rulebase from an Oracle Policy Modeling project using the command line. This allows the rulebase build process to be automated by including the command in a script.
The tool operates off an Oracle Policy Modeling project file. The project file settings and the documents included in the project are used to build the rulebase. The tool loads the project file, compiles the documents included in the project and builds the rulebase and other output files. The build process performed is the same as using the Build | Build menu item in Oracle Policy Modeling.
The build tool may also be used to compile and deploy a rulebase to the Determinations Server. The build and deploy process performed is the same as using the Oracle Determinations Server option under the Build | Build and Run... menu item in Oracle Policy Modeling.
By default, the tool does not perform any validation on the rulebase model. If the options detailed below are specified, validation will be performed and the build will fail if any validation errors are detected.
The tool assumes that the project file and any files included in the project exist and are up to date. The latest version of the project files are not retrieved from any source control providers being used.
The Rulebase Build Tool is executed from the command line using the following format:
buildtoolpath projectpath [<build options> <validation options> <deployment options><help options>]
Field | Description |
---|---|
buildtoolpath | The relative or absolute path of the RulebaseBuildTool.exe file |
projectpath | The relative or absolute path of the Oracle Policy Modeling project file to be built |
Build Options |
|
-sb | Recompiles source documents before building the rulebase |
Validation Options |
|
-vl |
Validate the rulebase model for logical loop errors |
-vm |
Validate the rulebase model for multiply proven attribute errors |
-vd | Validate the rulebase model against the data model specified in the Oracle Policy Modeling project |
Deployment Options |
|
-djr webroot | Deploy the rulebase to the Oracle Determinations Server. The webroot specifies the path to the web root directory of the Determinations Server. The path can either be specified absolutely or relative to the rulebase's project file. NOTE: if there are spaces in the path the path need to be enclosed in quotation marks. |
Help Options |
|
-h | Display the help from the tool |
For example, a command to build a project called Eligibility, validate both logical loop errors and multiply proven attribute errors and then deploy to the Determinations Server might look like this:
C:\RulebaseBuildTool.exe C:\Eligibility\Eligibility.xprj vl -vm -djr "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\jrbrs"