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
| Property | Returns | Description |
|---|---|---|
| cancelled | boolean | Whether the lead was closed because it was cancelled, as opposed to being completed. |
| closedLead | Lead | The lead that was closed. |
| leadFunnel | Funnel | The funnel that the closed lead belonged to. |
| leadProfile | Profile | The sales person handling the closed lead, ie its assignedToProfile. |
| relatedLead | Lead | The lead this event was raised for, ie the lead that was closed. |
| triggeredGoal | Class<? 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.