Terminal action node ("end") that closes or cancels the lead when the journey reaches it. If isLost is not true the lead is closed as won via FunnelManager.close; otherwise it is cancelled as lost via FunnelManager.cancel, recording lostReason. An optional stageName is applied to the lead first. Being a terminal node, onEnter always returns null so the journey does not continue past it.
Group: Journeys
Extends: AbstractGoalAction
Properties
| Property | Returns | Description |
|---|---|---|
| lost | Boolean | Whether reaching this node marks the lead as lost (cancelled) rather than won (closed). Null is treated as false by onEnter. |
| lost | Boolean | Same value as isLost(); kept for JSON/JS property access under the "lost" name. |
| lostReason | String | Reason recorded against the lead when it is cancelled as lost. Only used when isLost is true; may be null. |
| stageName | String | Stage name applied to the lead when this node is entered, before the lead is closed or cancelled. May be null if no stage change is configured. |
Methods
getStageName()
Returns: String
Stage name applied to the lead when this node is entered, before the lead is closed or cancelled. May be null if no stage change is configured.
isLost()
Returns: Boolean
Whether reaching this node marks the lead as lost (cancelled) rather than won (closed). Null is treated as false by onEnter.
getLost()
Returns: Boolean
Same value as isLost(); kept for JSON/JS property access under the "lost" name.
getLostReason()
Returns: String
Reason recorded against the lead when it is cancelled as lost. Only used when isLost is true; may be null.