Class FlowStateException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingapi.springboot.framework.exception.LocaleMessageException
com.codingapi.flow.exception.FlowException
com.codingapi.flow.exception.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
  • Method Details

    • repositoryNotRegistered

      public static FlowStateException repositoryNotRegistered()
      Repository not registered
      Returns:
      exception
    • currentNodeNotNull

      public static FlowStateException currentNodeNotNull()
      Current node cannot be null
      Returns:
      exception
    • edgeConfigError

      public static FlowStateException edgeConfigError(String reason)
      Edge configuration error
      Parameters:
      reason - reason
      Returns:
      exception
    • 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
    • workflowAlreadyDisable

      public static FlowStateException workflowAlreadyDisable(String workflowId)
      Workflow is already disable
      Parameters:
      workflowId - workflowId
      Returns:
      exception
    • recordNotSupportRevoke

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

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

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