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

PropertyReturnsDescription
jsMethodStringName 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.
jsOnEnterMethodStringName 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

PropertyReturnsDescription
nodeTypeNameStringThe 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.

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