Class InvalidWorklistItemStateException

  • All Implemented Interfaces:
    Serializable

    public class InvalidWorklistItemStateException
    extends Exception
    This exception will be raised if a worklist item is not in the right state to perform a desired state transition, for instance, a worklist item may only be delegated in the states AVAILABLE, ASSIGNED and SUSPENDED.
    See Also:
    WorklistConstants.WorklistItemState, Serialized Form
    • Constructor Detail

      • InvalidWorklistItemStateException

        public InvalidWorklistItemStateException​(String message)
        Constructs a new InvalidWorklistItemStateException which encapsulates a message if the worklist item state is missing.
        Parameters:
        message - to display in the exception.
      • InvalidWorklistItemStateException

        public InvalidWorklistItemStateException​(WorklistConstants.WorklistItemState worklistItemState)
        Constructs a new InvalidWorklistItemStateException which encapsulates an enum representing the current state of the worklist item.
        Parameters:
        worklistItemState - An enum representing the current state of the worklist item which prevents a desired action.
    • Method Detail

      • getWorklistItemState

        public String getWorklistItemState()
        Returns the state the worklist item is in and that prevents the desired action. May be null if the worklist item does not exist.
        Returns:
        The state of the worklist item that caused this exception or null if the item does not exist
      • getState

        public WorklistConstants.WorklistItemState getState()
        Gets the state the worklist item is in and that prevents the desired action or null if the worklist item has no state, that is, it does not exist.
        Returns:
        The state of the worklist item that caused this exception or null if the worklist item has no state, that is, it does not exist.