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

PropertyReturnsDescription
filesMap<String,FileItem>The files uploaded with the completion form.
leadProfileProfileThe profile the completed task is related to.
outcomeStringThe outcome recorded for the task completion, either supplied directly or read from the "outcome" request parameter.
parametersMap<String,String>The request parameters submitted with the completion form.
relatedLeadLeadThe lead the completed task is related to.
taskTaskThe task that was completed.
triggeredGoalsList<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.

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