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
account
with thename
field of theEntityInfo
class to form the variable${account.name}
. - To use the trigger time of an action as a variable, combine the base name
action
with thetriggerTime
field of theActionInfo
class 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
application
field of theEventInfo
class. - The field type of the
application
field isEntityInfo
which is yet another info class, hence select the name field of theEntityInfo
class. -
Form the variable name by appending the segments:
<base name>.<field name of info class1>.<field name of info class2>}
${latestEvent.application.name}.