Creating schemas with the set-extensions Ant task

For convenience, you can create the database schema by using the set-extensions Ant task.

About this task

Extensions to the Decision Center rule model are stored in two XML files.
  • Model description: This file usually has the file name extension .brmx.
  • Initialization of enumerations and hierarchies: This file usually has file name extension .brdx.
You can use Ant tasks to load the rule model from the two XML files and build the SQL script that is necessary to get the proper database schema.
Note: To run these Ant tasks, you must use the same Java™ virtual machine version and vendor as the one used by the application server.

Alternatively, you can create the database schema step by step, which is useful if you want to look at the generated SQL schema (see Creating the schema using a step-by-step sequence.)

Procedure

Run the set-extensions Ant task.
This Ant target runs gen-create-schema + execute-schema + upload-extensions + upload-roles. Set the following parameters:
-Dserver.url=<server url>
-DdatasourceName=<data source name>
-DextensionModel=<model file>
The model description file, with the .brmx extension
-DextensionData=<data file>
The model data description, with .brdx extension
[-DdbSchemaName=<database schema name>]
You can use this optional parameter to specify the database schema name. Otherwise, Decision Center uses the database user name as the schema name. However, some databases allow some users to access several schemas, and the default schema does not always reflect the user name.
[-Droles=<role list>]
You can use this optional parameter to upload the list of roles to Decision Center. This list is specified as "role1 role2". For example:
ant upload-roles  -Droles="rtsUser rtsConfigManager Eligibility Validator"