Form Variable Names
To form a predefined variable name, combine the base name of the variable with a field of its corresponding info class. You can use the base name with the corresponding info class only for example, you can use the base name action with info class ActionInfo only.
If an info class has no fields associated, use the base name as the variable. For example, to use the controller URL as a variable in a template, use ${controllerUrl}.
If an info class comprises multiple fields, select a single field and associate it with the base name. For a list of fields associated with an info class, see Info Class Fields.
For example:
- To use the account name as a variable in a template, combine the base name
accountwith thenamefield of theEntityInfoclass to form the variable${account.name}. - To use the trigger time of an action as a variable, combine the base name
actionwith thetriggerTimefield of theActionInfoclass to form the variable${action.triggerTime}.
You can chain the segments of a variable name where the info class field type is yet another info class.
For example, to use the name of an application in which the latest triggering event occurred:
- Combine the latestEvent base name with the
applicationfield of theEventInfoclass. - The field type of the
applicationfield isEntityInfowhich is yet another info class, hence select the name field of theEntityInfoclass. -
Form the variable name by appending the segments:
<base name>.<field name of info class1>.<field name of info class2>}${latestEvent.application.name}.