Journey node type that lets a lead pass only once a JavaScript condition is met, registered through ControllerMappingList.addGoalNodeType. RepoAppEventGoal evaluates jsMethod to decide whether the goal is satisfied, and calls the optional jsOnEnterMethod when a resolved lead enters the node.
Extends: NodeTypeBean
Properties
| Property | Returns | Description |
|---|---|---|
| jsMethod | String | Name of the global JavaScript function that decides whether a lead has met the goal. Called with a null lead while it is only being evaluated as journey-entry criteria. |
| jsOnEnterMethod | String | Name of an optional JavaScript function called when this node is entered with a resolved lead. Unlike the match function returned by getJsMethod, which is also called with a null lead while only being evaluated as journey-entry criteria, this is always called with a real, persisted lead, including for the first node of a newly created lead. |
Inherited from NodeTypeBean
Properties
| Property | Returns | Description |
|---|---|---|
| nodeTypeName | String | The journey node type name this bean is registered under, matching the JSON type discriminator used for the node's Goal or action class. |
Methods
getNodeTypeName()
Returns: String
The journey node type name this bean is registered under, matching the JSON type discriminator used for the node's Goal or action class.
Methods
getJsMethod()
Returns: String
Name of the global JavaScript function that decides whether a lead has met the goal. Called with a null lead while it is only being evaluated as journey-entry criteria.
getJsOnEnterMethod()
Returns: String
Name of an optional JavaScript function called when this node is entered with a resolved lead. Unlike the match function returned by getJsMethod, which is also called with a null lead while only being evaluated as journey-entry criteria, this is always called with a real, persisted lead, including for the first node of a newly created lead.