Fired when a profile casts a vote on a post or comment. The profile in context is the voter, not the recipient of the vote - see VoteReceivedEvent for the recipient's side. Raised by CommentService.vote() alongside VoteReceivedEvent. Trigger item 1 is the id of the website the voted-on post belongs to. Trigger item 2 is the vote's signed count (usually +1 or -1). Trigger items 3 to 5 are unused. Event ID: voted

Group: Journeys

Implements: TriggerEvent, FunnelEvent


Properties

PropertyReturnsDescription
attributesMap<String,Object>Mutable attribute map used to pass extra key-value data to trigger and template rendering. Empty by default for this event.
eventIdStringId used to match this event against trigger definitions: voted.
leadProfileProfileProfile used for funnel matching, the voter who cast this vote.
relatedLeadLeadLead this event relates to for funnel processing. Always null; this event is not associated with a Lead entity.
sourceProfileProfileProfile that cast the vote.
triggerItem1StringFirst trigger item: the id of the website the voted-on post belongs to, as a string.
triggerItem2StringSecond trigger item: the signed vote count that was cast (usually +1 or -1).
triggerItem3StringThird trigger item. Always null for this event.
triggerItem4StringFourth trigger item. Always null for this event.
triggerItem5StringFifth trigger item. Always null for this event.
websiteWebsiteWebsite the voted-on post or comment belongs to.

Inherited from TriggerEvent

Properties

PropertyReturnsDescription
serialisablebooleanWhether 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

getSourceProfile() · getEventId() · getWebsite() · getTriggerItem1() · getTriggerItem2() · getTriggerItem3() · getTriggerItem4() · getTriggerItem5() · getAttributes() · getLeadProfile() · getRelatedLead()

getSourceProfile()

Returns: Profile

Profile that cast the vote.

getEventId()

Returns: String

Id used to match this event against trigger definitions: voted.

getWebsite()

Returns: Website

Website the voted-on post or comment belongs to.

getTriggerItem1()

Returns: String

First trigger item: the id of the website the voted-on post belongs to, as a string.

getTriggerItem2()

Returns: String

Second trigger item: the signed vote count that was cast (usually +1 or -1).

getTriggerItem3()

Returns: String

Third trigger item. Always null for this event.

getTriggerItem4()

Returns: String

Fourth trigger item. Always null for this event.

getTriggerItem5()

Returns: String

Fifth trigger item. Always null for this event.

getAttributes()

Returns: Map<String,Object>

Mutable attribute map used to pass extra key-value data to trigger and template rendering. Empty by default for this event.

getLeadProfile()

Returns: Profile

Profile used for funnel matching, the voter who cast this vote.

getRelatedLead()

Returns: Lead

Lead this event relates to for funnel processing. Always null; this event is not associated with a Lead entity.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.