The Expression template allows users to create an alternate language template to map to either a flat or nested series of syntax expression functions. In general, the expression template will have two uses:
- Reuse of a cumbersome expressions with a shorter series of selections and inputs
- Provide more specific terminology to be used for a field at a given context Consider the following rule composed in existing Business Language templates.
Consider the following rule composed in existing Business Language templates.
An example of authoring the same language rule using an expression rule template might be as follows:
Here is how this template would be defined:
Here are the possible settings on this screen:
Specifies the name of the vocabulary template. The name is used for irSDK access.
Name of the template to be displayed in the business language template list.
Menu group under which the template will be listed. The user can choose to add his template to an existing menu group or can create his own menu group.
The scope of the template availability can be limited to only the context of the previously selected entity by checking "Available in rules and calculations for this entity." The availability can also be extended to those rule elements which have a reference to the previously selected entity by checking "Available in rules and calculations for entities referencing this entity."
Name of the function to be displayed in expression builder.
Data type of the value returned by the template.
Must select entire template
When checked the template is shown completely in the business language editor.
The placeholders created in business language are configured here. For a detailed description of placeholders refer to "Configuring Placeholders".
Business language to be displayed the business language editor. Placeholders can be added in the template by enclosing them within $ symbols.
The action to be performed by the custom template. All the functions listed in the expression builder and the placeholders created in business language can be used for creating expressions.
Please sign in to leave a comment.