TriggerEvent implementation used to re-fire the trigger matching logic when a delayed TriggerTimer elapses. Wraps the TriggerTimer's originating EmailTrigger, along with the profile and website the timer was created for, so the delayed condition is evaluated as if the original event had just occurred. Carries any associated ContactRequest as an attribute.
Implements: TriggerEvent
Properties
| Property | Returns | Description |
|---|---|---|
| attributes | Map<String,Object> | Extra attributes for this event. Contains the timer's ContactRequest under the "contactRequest" key when one was set, otherwise it is empty. |
| eventId | String | Event type identifier taken from the originating EmailTrigger. |
| sourceProfile | Profile | Profile the TriggerTimer was set to fire for, used as the source profile of the re-fired event. |
| triggerItem1 | String | First trigger condition value configured on the originating EmailTrigger. |
| triggerItem2 | String | Second trigger condition value configured on the originating EmailTrigger. |
| triggerItem3 | String | Third trigger condition value configured on the originating EmailTrigger. |
| triggerItem4 | String | Fourth trigger condition value configured on the originating EmailTrigger. |
| triggerItem5 | String | Fifth trigger condition value configured on the originating EmailTrigger. |
| website | Website | Website the TriggerTimer was created for. |
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
getEventId() · getWebsite() · getSourceProfile() · getTriggerItem1() · getTriggerItem2() · getTriggerItem3() · getTriggerItem4() · getTriggerItem5() · getAttributes()
getEventId()
Returns: String
Event type identifier taken from the originating EmailTrigger.
getWebsite()
Returns: Website
Website the TriggerTimer was created for.
getSourceProfile()
Returns: Profile
Profile the TriggerTimer was set to fire for, used as the source profile of the re-fired event.
getTriggerItem1()
Returns: String
First trigger condition value configured on the originating EmailTrigger.
getTriggerItem2()
Returns: String
Second trigger condition value configured on the originating EmailTrigger.
getTriggerItem3()
Returns: String
Third trigger condition value configured on the originating EmailTrigger.
getTriggerItem4()
Returns: String
Fourth trigger condition value configured on the originating EmailTrigger.
getTriggerItem5()
Returns: String
Fifth trigger condition value configured on the originating EmailTrigger.
getAttributes()
Returns: Map<String,Object>
Extra attributes for this event. Contains the timer's ContactRequest under the "contactRequest" key when one was set, otherwise it is empty.