Class AbstractJourneyTransitionActionNode

  • Direct Known Subclasses:
    AddUserToJourneyActionNode, MoveUserInJourneyActionNode

    public abstract class AbstractJourneyTransitionActionNode
    extends FlowNode
    Transition the flow context's user through a journey.
    Since:
    12.2.0
    Version:
    $Revision: 24436 $ $Date: 2021-03-29 10:03:14 -0300 (Mon, 29 Mar 2021) $
    • Field Detail

      • nextNode

        protected final FlowNode nextNode
    • Constructor Detail

      • AbstractJourneyTransitionActionNode

        public AbstractJourneyTransitionActionNode​(org.json.JSONObject object,
                                                   FlowEntry flowEntry)
        Creates a new instance from the given JSON configuration object.
        Parameters:
        object - the JSON configuration object
        flowEntry - the flow entry
        Since:
        12.2.0
      • AbstractJourneyTransitionActionNode

        public AbstractJourneyTransitionActionNode​(java.lang.String id,
                                                   java.lang.String name,
                                                   java.lang.String journeyStageId,
                                                   FlowNode nextNode)
        Creates a new instance.
        Parameters:
        id - the node identifier
        name - the node name
        journeyStageId - the journey stage identifier
        nextNode - the next node
        Since:
        12.2.0
    • Method Detail

      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Description copied from class: FlowNode
        Returns the JSON representation of this node. This method is the counterpart of #FlowNode(JSONObject) constructor.
        Returns:
        the JSON representation of this node.
      • validateStateAndLog

        public boolean validateStateAndLog​(boolean checkAllNextNodes)
        Description copied from class: FlowNode
        To permit edition when JSON flow is saved incorrectly in data base, the flow node constructor by JSON parameter need allows to load flow node variables without exception when something already is wrong. So, to prevents exception on flow node execution and prevent to save flow when flow node is invalid state, this methods will check if all variables is OK and log otherwise.
        Specified by:
        validateStateAndLog in class FlowNode
        Parameters:
        checkAllNextNodes - check all next nodes nodes.
        Returns:
        true if all variable state is OK.
      • getJourneyStageId

        public java.lang.String getJourneyStageId()
        Returns the journey stage identifier.
        Returns:
        the journey stage identifier.
        Since:
        12.2.0
      • getFollowUps

        public java.util.Collection<FlowNode> getFollowUps()
        Description copied from class: FlowNode
        Returns all possible follow up nodes.
        Overrides:
        getFollowUps in class FlowNode
        Returns:
        all possible follow up nodes.