Expression Template

  • Updated

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:

  1. Reuse of a cumbersome expressions with a shorter series of selections and inputs
  2. 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.

mceclip3.png

An example of authoring the same language rule using an expression rule template might be as follows:

mceclip4.png

Here is how this template would be defined:

mceclip5.png

Here are the possible settings on this screen:

Name

Specifies the name of the vocabulary template. The name is used for irSDK access.

Display Name

Name of the template to be displayed in the business language template list.

Menu Group

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.

Scope

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."

Function Name

Name of the function to be displayed in expression builder.

Template Type

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.

Placeholders

The placeholders created in business language are configured here. For a detailed description of placeholders refer to "Configuring Placeholders".

Business Language

Business language to be displayed the business language editor. Placeholders can be added in the template by enclosing them within $ symbols.

Expression

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.