Class AbstractContinuationState

    • Constructor Detail

      • AbstractContinuationState

        public AbstractContinuationState()
    • Method Detail

      • setChildContState

        public void setChildContState​(ContinuationState childContState)
        Set the child ContinuationState. Child ContinuationState is added when branching the flow using all FlowContinuableMediators except Sequence Mediator.
        Specified by:
        setChildContState in interface ContinuationState
        Parameters:
        childContState - ContinuationState to be added as the child
      • getPosition

        public int getPosition()
        Get the position of the mediator in the current flow.
        Specified by:
        getPosition in interface ContinuationState
        Returns:
        position
      • setPosition

        public void setPosition​(int position)
        Set the position of the mediator in the flow which is currently being processed. Position should be updated only when branching to a new flow (i.e. not necessary to update for each and every mediator execution in the flow)
        Specified by:
        setPosition in interface ContinuationState
        Parameters:
        position - position of the mediator which is currently being processed in the flow.
      • hasChild

        public boolean hasChild()
        Check whether child ContinuationState exists
        Specified by:
        hasChild in interface ContinuationState
        Returns:
        whether child ContinuationState exists
      • getLeafChild

        public ContinuationState getLeafChild()
        Get the Leaf Child of this ContinuationState. When mediate using the ContinuationStateStack, first we start from the Lead Child of the ContinuationState.
        Specified by:
        getLeafChild in interface ContinuationState
        Returns:
        Leaf child of the ContinuationState
      • addLeafChild

        public void addLeafChild​(ContinuationState leafChild)
        Add a Leaf child to this ContinuationState
        Specified by:
        addLeafChild in interface ContinuationState
        Parameters:
        leafChild - ContinuationState which can be added as a Leaf child for this SeqContinuationState
      • removeLeafChild

        public void removeLeafChild()
        Remove the Leaf child form this ContinuationState.
        Specified by:
        removeLeafChild in interface ContinuationState