Class FlowExecution

  • All Implemented Interfaces:
    java.lang.Comparable<FlowExecution>

    public class FlowExecution
    extends java.lang.Object
    implements java.lang.Comparable<FlowExecution>
    Since:
    2.0
    Author:
    Dave Syer
    • Constructor Detail

      • FlowExecution

        public FlowExecution​(java.lang.String name,
                             FlowExecutionStatus status)
        Parameters:
        name - the flow name to be associated with the FlowExecution.
        status - the FlowExecutionStatus to be associated with the FlowExecution.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name of the end state reached
      • compareTo

        public int compareTo​(FlowExecution other)
        Create an ordering on FlowExecution instances by comparing their statuses.
        Specified by:
        compareTo in interface java.lang.Comparable<FlowExecution>
        Parameters:
        other - the FlowExecution instance to compare with this instance.
        Returns:
        negative, zero or positive as per the contract
        See Also:
        Comparable.compareTo(Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object