Fired when an EmailTrigger completes, wrapping the profile, the trigger that fired, and the original event that caused it. This lets triggers be chained: an action can be configured to run once a given trigger has fired, without the downstream trigger needing to know anything about the original event. The wrapped trigger and event are also exposed through the attributes map, under the keys "trigger" and "event".
Implements: TriggerEvent
Properties
| Property | Returns | Description |
|---|---|---|
| attributes | Map<String,Object> | Additional data for this event: the trigger that fired, under the key "trigger", and the original event that caused it, under the key "event". |
| event | TriggerEvent | The original event that caused the wrapped trigger to fire. |
| eventId | String | Identifies this event's type. Always returns the constant value "trigger", used to match this event against an EmailTrigger configured for the trigger event type. |
| sourceProfile | Profile | The profile associated with this trigger firing. |
| trigger | EmailTrigger | The EmailTrigger that fired and produced this event. |
| triggerItem1 | String | The id of the EmailTrigger that fired. |
| triggerItem2 | String | Not used by this event. |
| triggerItem3 | String | Not used by this event. |
| triggerItem4 | String | Not used by this event. |
| triggerItem5 | String | Not used by this event. |
| website | Website | The website which is the logical owner of the source of the original event that caused this trigger to fire. |
Inherited from TriggerEvent
Properties
| Property | Returns | Description |
|---|---|---|
| serialisable | boolean | Whether this event's attributes were built to survive being persisted, ie every value is a plain serialisable value rather than a persistent entity or some other object that only makes sense inside the firing transaction. Only the firing app can know this, so it declares it - see EventBuilder. An agent that subscribes to an event does not run when it fires. The event is written to storage as JSON, buffered with others, and read back minutes later in a different session, so a value that cannot be written and read back is not merely awkward, it breaks the whole delivery. The agent framework therefore ignores any event which does not say yes here. |
Methods
isSerialisable()
Returns: boolean
Whether this event's attributes were built to survive being persisted, ie every value is a plain serialisable value rather than a persistent entity or some other object that only makes sense inside the firing transaction. Only the firing app can know this, so it declares it - see EventBuilder. An agent that subscribes to an event does not run when it fires. The event is written to storage as JSON, buffered with others, and read back minutes later in a different session, so a value that cannot be written and read back is not merely awkward, it breaks the whole delivery. The agent framework therefore ignores any event which does not say yes here.
Methods
getWebsite() · getSourceProfile() · getEventId() · getTriggerItem1() · getTriggerItem2() · getTriggerItem3() · getTriggerItem4() · getTriggerItem5() · getAttributes() · getTrigger() · getEvent()
getWebsite()
Returns: Website
The website which is the logical owner of the source of the original event that caused this trigger to fire.
getSourceProfile()
Returns: Profile
The profile associated with this trigger firing.
getEventId()
Returns: String
Identifies this event's type. Always returns the constant value "trigger", used to match this event against an EmailTrigger configured for the trigger event type.
getTriggerItem1()
Returns: String
The id of the EmailTrigger that fired.
getTriggerItem2()
Returns: String
Not used by this event.
getTriggerItem3()
Returns: String
Not used by this event.
getTriggerItem4()
Returns: String
Not used by this event.
getTriggerItem5()
Returns: String
Not used by this event.
getAttributes()
Returns: Map<String,Object>
Additional data for this event: the trigger that fired, under the key "trigger", and the original event that caused it, under the key "event".
getTrigger()
Returns: EmailTrigger
The EmailTrigger that fired and produced this event.
getEvent()
Returns: TriggerEvent
The original event that caused the wrapped trigger to fire.