Rule model property extensions sample details
The steps describe running the sample in the Business console. You can also check the extended properties in the Enterprise console.
Running the sample
- To open and run this sample:
- Do one of the following actions to open the Business console:
- In Windows, go to and click Decision Center Business console.
- Enter the following URL in your browser: http://localhost:<PORT>/decisioncenter
- Log in to the console:
- User name: Bea
- Password: Bea
- Click Library and open Loan Validation Service.
- Click Branches and open the main branch.
- Expand Loan Validation Scoring and click the computation
rule folder.
The property extensions apply to any rule project in the sample database. You can expend any rule project and click a rule folder to view them.
- Do one of the following actions to open the Business console:
- Check the extended property that is added to existing rule models:
- Look at an existing rule. For example, click the initialCorporateScore rule.
- On the rule preview page, click the Show details icon.
The extended property Customer Names is displayed on the Properties page. This property is empty, because you just added it to the database schema.
- Close the Details dialog and click the back icon to return to the computation package preview.
- Check the extended properties that are defined in an extended rule model:
- In the computation package preview pane, click the + artifact icon and select New Extended Rule.
- Specify a name for your rule and click Create.
- On the rule editor page, click Details.
All extended properties are available on the Properties page.
- Customer names: You can enter string values to specify names.
- Start date and end date: Click the calendar tool to pick up a date. The end date must be later than the start date.
- Authority: A hierarchical selection list pops up when you click the drop-down icon. Expand the list and choose the child value. For example: /Corporate/WS-ASE Department/Service 1.
- Version number: You can enter integer values to specify the version number.
- Production level: You can choose Test, Alpha, Beta, or Production as the production level.
- Close the Details dialog. You do not need to save the rule.
Rebuilding this sample
To rebuild this sample:
In the Samples Commands view, navigate to .
Double-click restore to reset the database to its original state.
How this sample works
In this sample, you use the Ant tasks to extend the business rule model. In the build.xml file, the extend task calls two subtasks:
set-extensions, which extends the rule model.
upload-messages, which adds NL-enabled messages for the new property names; en_US.properties is provided in the sample.
The extensions that are set to the database are done automatically:
Generate an SQL script that carries schema modifications according to the new model.
Run the SQL script against the database.
Source files
The source files for this sample are in the following location:
- <InstallDir>/teamserver/samples/dcextendedbrm
The rule model extension is defined in the file dcextendedbrm.brmx and the associated data are defined in the file dcextendedbrm.brdx.
You can also view and modify the sample source files in Rule Designer. To import the sample into your workspace, click the Import projects link in the Samples and Tutorials view.