Rule Designer build automation tool
For IBM® AIX® platforms, only headless Eclipse mode is supported. Installing Rule Designer on IBM AIX is useful if you want to run automated builds or ruleset extraction from rule projects that are maintained on a platform where Rule Designer runs in full mode. You can also automate routine operations such as building rule projects or running queries. For advanced automation tasks, you can customize the automation by using JavaScript.
In the same build, you import the projects into the workspace, apply an extension model, build the projects, and generate ruleset archives.
You can use the build automation tool to test builds in Rule Designer, and then run automated builds from the command line. The ilog.rules.studio.automation plug-in contains the ilog.rules.studio.automation.builder application.
You use arguments in the command line to specify the different steps that are involved in the build. For example, you use arguments to define the paths to the projects to import and to specify whether to remove existing projects from the workspace before building. All arguments are optional, but you must at least specify the name of the rule project to build.
You can use an extra argument on the command line: the name of the decision operation to use when you generate the ruleset archive for a decision service.
The list of rule projects to build is mandatory except when you use the help option -h.
Running the build automation tool from the command line
The build automation tool supports command-line arguments, which you can use to set up automated builds.
In the command line, you specify the arguments and the rule projects to build. You can choose the decision operation that you want to use for generating the ruleset archive. All arguments and extractors are optional, but you must at least specify the name of the rule projects to build.
To filter the rules when you generate
a ruleset archive, use a question mark (?) between
the rule project name and the extractor name or decision operation.
For example, if you are using a decision service, write <rule_project_name>?<operation_name>.
To run the build automation tool for different operating systems, write command lines similar to the following examples:
- Windows
-
eclipsec -application ilog.rules.studio.automation.builder -noSplash -nl en_USYou can then add the arguments, the rule projects to build, and the extractor to filter the rules. If your rule project name contains spaces, use double quotation marks as separators.
Use the following syntax:-importPath "<path_to_xom_project>;<path_to_rule_project>" <rule_project_name>?<operation_name>Here is an example of a complete command line with no filter:eclipsec -application ilog.rules.studio.automation.builder -noSplash -nl en_US -importPath "my_workspace/rulesetextraction/rulesetextraction_xom;my_workspace/rulesetextraction/rulesetextraction_rules" -cleanBuild -buildOptions BUILD_CHECK_IRL|BUILD_INCLUDES_RULE_VALIDATION rulesetextraction_rules
- UNIX
-
eclipse -application ilog.rules.studio.automation.builder -noSplash -nl en_USYou can then add the arguments, the rule projects to build, and the extractor to filter the rules. If your rule project name contains spaces, use double quotation marks as separators.
Use the following syntax:-importPath <path_to_xom_project>:<path_to_rule_project> <rule_project_name>?<operation_name>Here is an example of a complete command line with no filter:eclipse -application ilog.rules.studio.automation.builder -noSplash -nl en_US -importPath "my_workspace/rulesetextraction/rulesetextraction_xom:my_workspace/rulesetextraction/rulesetextraction_rules" -cleanBuild -buildOptions BUILD_CHECK_IRL|BUILD_INCLUDES_RULE_VALIDATION rulesetextraction_rules
Command-line arguments for the automated build
The following table lists the command line arguments that you can use to define your automated build.
| Argument name | Description | Default |
|---|---|---|
| -? (-h) | Prints usage information and then exits. | - |
| -autoRefresh | Refreshes the workspace automatically if Eclipse determines that the contents of the workspace are changed. For example,
set this argument to |
false |
| -brdx <file> | Specifies the path to the .brdx extension model file to use. If you specify the .brmx file, you must also specify a .brdx file. |
- |
| -brmx <file> | Specifies the path to the .brmx extension model file to use. If you specify the .brdx file, you must also specify a .brmx file. |
- |
| -buildOptions | Specifies the build options to use, separated by the pipe
( You can use the
following build options:
The build is incremental. |
BUILD_GENERATE_IRL is always set to true |
| -cleanBuild | Cleans the results of prior workspace builds before it rebuilds. | false |
| -clearWorkspace | Removes all projects from the workspace before it imports projects. Project contents remain intact. | false |
| -failFast | Stops the build if any rule project contains errors. | false |
| -importPath <val> | Specifies the list of projects to import into the workspace
before building. The list uses the The paths of projects to import are separated by a
semicolon ( |
- |
| -nl <language> | Sets the language for the applications, for example, -nl en_US for American English. | - |
| -noSplash | Bypasses the splash screen on startup. | - |
| -output or -o <val> | Specifies the name of the output directory to store the generated ruleset archive. You must specify an existing folder. If you do not specify an output directory, the ruleset archive is stored in the output directory of the rule project (./output). If you specify a relative path, the path is relative to the parent rule project that is being processed. |
- |
| -refresh | Refreshes the entire workspace prior to building projects. | false |
For more information about the arguments supported by the IlrAutomator class, refer to IlrBuildCommandLineArguments.