Class FlowPath

java.lang.Object
com.aquima.interactions.flow.model.FlowPath
All Implemented Interfaces:
IFlowPath, Serializable

public class FlowPath extends Object implements IFlowPath
Simple class holding the nodes that have been processed during a flow action.
Since:
5.0
Author:
O. Kerpershoek, F. van der Meer
See Also:
  • Constructor Details

    • FlowPath

      protected FlowPath()
    • FlowPath

      public FlowPath(INodeDetails... nodes)
    • FlowPath

      protected FlowPath(IFlowPath path)
  • Method Details

    • containsFlow

      protected boolean containsFlow(String flowName)
    • enterNode

      protected void enterNode(INodeDetails node)
    • getCurrentNode

      public INodeDetails getCurrentNode()
      Description copied from interface: IFlowPath
      This method returns the current node of the flow action, without removing it from the flow path.
      Specified by:
      getCurrentNode in interface IFlowPath
      Returns:
      the current node of the flow action.
    • depth

      public int depth()
      Description copied from interface: IFlowPath
      This method returns the depth of the flow path. The depth is equal to the number of flow nodes that is returned by the getNodes method.
      Specified by:
      depth in interface IFlowPath
      Returns:
      the depth of the flow path.
    • flowSize

      protected int flowSize()
    • getNodes

      public INodeDetails[] getNodes()
      Description copied from interface: IFlowPath
      This method returns all the nodes that have been encountered during the flow action.
      Specified by:
      getNodes in interface IFlowPath
      Returns:
      Array containing all the nodes that have been encountered during the flow action.
    • leaveFlow

      protected IFlowNodeDetails leaveFlow(String flowName)
    • duplicate

      protected FlowPath duplicate()
    • toString

      public String toString()
      Overrides:
      toString in class Object