Class FlowStateException

All Implemented Interfaces:
Serializable

public class FlowStateException extends FlowException
Flow state exception

Thrown when the flow state does not allow the current operation For example: workflow is finished and cannot be operated, record is processed and cannot be processed again, etc.

Since:
1.0.0
See Also:
  • Constructor Details

    • FlowStateException

      public FlowStateException(String code, String message)
      Constructor
      Parameters:
      code - error code
      message - error message
    • FlowStateException

      public FlowStateException(String code, String message, Throwable cause)
      Constructor
      Parameters:
      code - error code
      message - error message
      cause - cause
  • Method Details

    • recordAlreadyDone

      public static FlowStateException recordAlreadyDone()
      Record is already done, operation not allowed
      Returns:
      exception
    • recordAlreadyTodo

      public static FlowStateException recordAlreadyTodo()
      Record is already todo, operation not allowed
      Returns:
      exception
    • operatorNotMatch

      public static FlowStateException operatorNotMatch()
      Operator does not match
      Returns:
      exception
    • workflowAlreadyFinished

      public static FlowStateException workflowAlreadyFinished()
      Workflow is already finished
      Returns:
      exception
    • workflowAlreadyTerminated

      public static FlowStateException workflowAlreadyTerminated()
      Workflow is already terminated
      Returns:
      exception
    • invalidStateTransition

      public static FlowStateException invalidStateTransition(String fromState, String toState)
      Invalid state transition
      Parameters:
      fromState - current state
      toState - target state
      Returns:
      exception
    • recordNotSupportRevoke

      public static FlowStateException recordNotSupportRevoke()
      Record not support revoke
      Returns:
      exception
    • nodeNotSupportRevoke

      public static FlowStateException nodeNotSupportRevoke()
      Node not support revoke
      Returns:
      exception
    • recordNotSupportUrge

      public static FlowStateException recordNotSupportUrge()
      Record not support urge
      Returns:
      exception