Fired when a lead is closed, either because it completed or because it was cancelled. This event is raised in the context of the sales person handling the lead (the lead's assignedToProfile), rather than the customer, and is intended to work with OtherJourneyProgressGoal so that a separate journey can react to a sales person's lead being closed.

Group: Journeys

Implements: FunnelEvent


Properties

PropertyReturnsDescription
cancelledbooleanWhether the lead was closed because it was cancelled, as opposed to being completed.
closedLeadLeadThe lead that was closed.
leadFunnelFunnelThe funnel that the closed lead belonged to.
leadProfileProfileThe sales person handling the closed lead, ie its assignedToProfile.
relatedLeadLeadThe lead this event was raised for, ie the lead that was closed.
triggeredGoalClass<? extends Goal>The goal type that this event can advance, ie OtherJourneyProgressGoal.

Methods

toProps()

Returns: Map<String,Serializable>

Builds the minimal event properties map for this event, adding isCancelled to the base properties from FunnelEvent.

isCancelled()

Returns: boolean

Whether the lead was closed because it was cancelled, as opposed to being completed.

getClosedLead()

Returns: Lead

The lead that was closed.

getLeadFunnel()

Returns: Funnel

The funnel that the closed lead belonged to.

getLeadProfile()

Returns: Profile

The sales person handling the closed lead, ie its assignedToProfile.

getRelatedLead()

Returns: Lead

The lead this event was raised for, ie the lead that was closed.

getTriggeredGoal()

Returns: Class<? extends Goal>

The goal type that this event can advance, ie OtherJourneyProgressGoal.

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