Fired when a lead management Task is completed, so funnel goals such as TaskCompleteGoal and TaskGoal can advance a lead through a funnel based on which outcome was recorded. Created by LeadManager.completeTask (and by LeadManFormsApp for a task completed without a request) and passed to the FunnelManager, carrying the request parameters and uploaded files from the completion form together with the outcome value.
Group: Journeys
Implements: CommonFunnelEvent
Properties
| Property | Returns | Description |
|---|---|---|
| files | Map<String,FileItem> | The files uploaded with the completion form. |
| leadProfile | Profile | The profile the completed task is related to. |
| outcome | String | The outcome recorded for the task completion, either supplied directly or read from the "outcome" request parameter. |
| parameters | Map<String,String> | The request parameters submitted with the completion form. |
| relatedLead | Lead | The lead the completed task is related to. |
| task | Task | The task that was completed. |
| triggeredGoals | List<Class<? extends Goal>> | The funnel goal classes this event can trigger: TaskCompleteGoal and TaskGoal. Restricts funnel scanning to funnels that use one of these goals. |
Methods
toProps()
Returns: Map<String,Serializable>
Builds the event properties map used by the funnels engine and exposed to JS, including a URN reference to the completed task and the recorded outcome.
getLeadProfile()
Returns: Profile
The profile the completed task is related to.
getTask()
Returns: Task
The task that was completed.
getParameters()
Returns: Map<String,String>
The request parameters submitted with the completion form.
getFiles()
Returns: Map<String,FileItem>
The files uploaded with the completion form.
getOutcome()
Returns: String
The outcome recorded for the task completion, either supplied directly or read from the "outcome" request parameter.
getRelatedLead()
Returns: Lead
The lead the completed task is related to.
getTriggeredGoals()
Returns: List<Class<? extends Goal>>
The funnel goal classes this event can trigger: TaskCompleteGoal and TaskGoal. Restricts funnel scanning to funnels that use one of these goals.