Business Rule Language
Identifier:
ilog.rules.studio.model.brl.languages
Since:
JRules 6.0
Description:
Allows plug-ins to integrate a new Business Rule language into Rule Studio. Extensions to this extension point should provide a definition which is the symbolic name of the language in Rule Studio, a Language Extension class whose class loader is used to load the schema files of the language, a label used in User Interface to display the language.
The definition is referenced by a dedicated Rule class, inheriting from ilog.rules.studio.model.brl.IlrBRLRule and added in the Rule Model extension files. The rule class referenced the language definition using the 'language' property.
Configuration Markup:
<!ELEMENT extension (language*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - A fully qualified identifier of the target extension point.
- id - An optional identifier of the extension instance.
- name - An optional name of the extension instance.
<!ELEMENT language EMPTY>
<!ATTLIST language
id CDATA #REQUIRED
definition CDATA #REQUIRED
label CDATA #IMPLIED
class CDATA #REQUIRED
public (true | false) >
- id - The identifier of the business rule language.
- definition - The definition of the language. The definition is the relative path to the XSD file that defines the grammar of the language, for example ilog/rules/brl/bal60/bal for a
bal.xsd file located in a path accessible through the classpath of the plugin defining this extension.
- label - The public label for referencing the language in the user interface.
- class - The language class attached to this language. This class is also referenced as the semantic context extension in the
.properties file that defines the concrete syntax of the language.
- public - If set to
true, this language can be used to create business rules in Rule Studio.
Supplied Implementation:
The extension must reference the relative path of the language XSD grammar file, as well as the language class.
Integrating a new business rule language also requires defining a extended class of IlrBRLRule in the rule model. This extended class must define an annotation named ilog.rules.studio.model.brl whose value is the definition of the language specified in the definition field of this extension.
Copyright © 1987-2008 ILOG S.A. All rights reserved.