Interface Transition<T>

  • Type Parameters:
    T - type of data the transition is carrying

    public interface Transition<T>
    Defines work item life cycle phase transition. Including data and policies to be enforced during transition.
    • Method Detail

      • phase

        String phase()
        Returns target phase where work item should be transitioned
        Returns:
        target life cycle phase
      • data

        T data()
        Optional data to be associated with the transition. This usually means appending given data into the work item.
        Returns:
        data if given otherwise null
      • policies

        List<Policy<?>> policies()
        Optional list of policies to be enforced during transition
        Returns:
        list of policies or an empty list, should never be null