Templates

  • Updated

Templates provide users with the ability to create new business language rule templates and add them to the their template list. These templates can be defined for the entire rule application or to specific contexts (i.e., independent rule set, entity, field* and collection). These templates are saved along with the rule application. They are available for both language and syntax rules.

The users can select from the six different types of templates as shown in the figure above:

Example:

mceclip0.png

Using Placeholders

Placeholders are input parameters for a business language template. Placeholders, in rule templates, allow the user to create business language templates which take different input parameters and use them while executing the associated expression. In any rule template editor, a word enclosed with '$' symbols is considered as a placeholder. In the example shown below $NumberOfCards$is a placeholder. When used in a rule or calculation, input to the placeholder NumberOfCardscan be a derived value or a field.

Name

This column lists out all the placeholders created in the template. Entries in this column cannot be edited. This column is auto populated (real time) with placeholder names as they are created in the Business Language window.

Display Text

This column contains the text to be displayed in the place of the placeholder in the business language template.

Accepts

This column displays the type of value the placeholder accepts. This can be configured by clicking on the mceclip1.png button against each of the placeholder.

mceclip2.png

The "Placeholder Accepts" window allows users to configure different type of values the placeholder accepts. A placeholder can be configured to accept more than on type of value.

Add Value Type

Allows users to configure the placeholder to accept a value of data types like Boolean, date, datetime, integer, number or string.

Add List

Allows users to configure the placeholder to accept values from a value list.

Add Entity

Allows users to configure the placeholder to accept an entity as its value.

Add Expression

Allows users to configure the placeholders to accept simple expressions. The users' input in the display text column will be displayed in the drop down list for the placeholder in the business language editor.

Multi-Select Check Box

Allows users to select multiple values for a single placeholder. If Multi-Select is checked, only one data type can be accepted. If Multi-Select is checked, Entity placeholder is not available.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.