System objects and fields
Event Designer includes a system object and several system fields that can be referenced in JavaScript expressions and in action object fields. All internal objects and field names begin with an underscore.
_Global system object
The _Global system
object contains the following fields:
- _EventName is a string field that contains the name of the event (the name of the event asset and the value of the <connector-bundle> tag in the event packet).
- _FireTime is a datetime field that contains the date and
time when an event is generated by a touchpoint system. The value
can represent either:
- If the <timestamp> tag is provided in the event packet sent from the touchpoint system, then _FireTime is that value.
- If the <timestamp> tag is omitted in the event packet sent from the touchpoint system, then _FireTime is the time that the event packet reached the connector or the event runtime.
- _ProcessTime For event rules that have time delays, _ProcessTime
reflects the scheduled delay for an event but ignores any delay for
the action. So, if an event is received by the event runtime at 14:00:00
with a one hour event delay and a two hour action delay, then _ProcessTime
is 15:00:00 in a datetime field that contains the date and time when
the relevant event rules are evaluating the event and any associated
actions are created.
To find out about implementing time delays in event rules, see Deferring processing by implementing time delays.
Other system fields
Other system fields
that can be referenced in JavaScript expressions
and actions are:
- _Count is an integer field that contains a count of the number of business object occurrences in an array processed by an event rule. For example, if three occurrences of an event object in an event are passed to a business object for evaluation, then the value of Count is 3
- _Index is an integer field that contains the subscript of the business object occurrence in the array, beginning with subscript 0.
- _EventIndex is the index of the first business object instance created by this event. It is useful for accumulating array context-scoped business objects. It is always 0 when not sharing data across events. It is always equal to _Count, if an event references a type of shared object, but does not create shared objects.