You can add your own custom locale to Rule
Designer.
About this task
To integrate a new verbalizer and language extension in Rule
Designer, you create a plug-in project that
extends Rule
Designer and declares an
association between your custom locale and a verbalizer.
Procedure
- Create a project in Rule
Designer.
- Create a custom business rule language (BRL) .properties file for your
locale.
- Add it to the ilog.rules.brl.i18n package. For example, if your custom
locale is en_NZ, create a file that is named
brl_en_NZ.properties
Tip: You make a copy of an existing .properties file and modify
it.
- In your custom .properties file, add a class that represents the
verbalizer for your custom locale, which is just an empty class that derives from the English
verbalizer. For example, for the custom locale en_NZ, use the following class:
IlrNewZealandVerbalizer
This class represents the class loader of the project.
- Add an extension point that declares the custom locale and the verbalizer:
ilog.rules.studio.model.vocabulary.verbalizers
- Add an extension point that declares the extension for the business action language (BAL) and
business query language (BQL): ilog.rules.studio.model.brl.languageExtensions
This extension allows you to extend the business rule language definition (BRLDF) classpath that
is used to look for a language definition, in this example the
brl_en_NZ.properties language definition.
- Deploy the new project in Rule
Designer.