Rule importer command

The rule importer command imports rules into a database from one or more XML documents.

The rule importer command can be invoked using the Rule Management Application (RMA). The user interface in RMA provides some assistance in specifying the parameters required by the importer. Alternatively, the rule importer can be invoked from the command line using the following scripts:

Syntax

ruleimporter <properties-file> <import-files> [options]

Parameters

<properties-file>
The fully qualified name of a file containing the JNDI names of the Business Rule Beans (BRBeans) enterprise beans for the rule set that is to be accessed. Refer to BRBeans Properties file for a definition of the contents of this file. This parameter is required.
<import-files>
One or more fully qualified names of the files containing XML rule definitions to be imported. These files must contain XML in the format defined in <WAS_HOME>\bin\brb.dtd file. This parameter is required.

Options

-[v]erbose
Shows verbose output while importing. This shows the rule definition of every rule that is imported.
-[t]est
Parses the input files only and does not create rules on the application server. This will ensure that there are no errors in the syntax of the rule definitions provided in the XML document. Combined with the -verbose option, it also can be used to see exactly what rules will be imported.
-[u]pdate
Update the existing rule with values from the input file when a rule in an input file has the same primary key as an existing rule. If this option is not specified, then any rule with the same primary key as an existing rule causes an error and that rule is not imported.
-[c]ommiteach
Performs a commit after each rule is created rather than creating all of the rules in a single transaction. If this option is not specified, then all rules are created in a single transaction. This means that if any rule causes an error, the entire transaction is rolled back and none of the rules are imported. If -commiteach is specified and a rule causes an error, only that rule is not imported. Other rules are still imported.
-[h]ost <host-name>
Specifies the name of the host for the name server. The default is the local host.
-[p]ort <port-number>
Specifies the port number for the name server. The default is 2809.

Related concepts
Overview of Business Rule Beans
Related reference
BRBeans properties file



Searchable topic ID:   rbrb_importr
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/brb/ref/rbrb_importr.html

Library | Support | Terms of Use | Feedback