Class InvalidWorklistItemStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.model.worklistmodel.InvalidWorklistItemStateException
- All Implemented Interfaces:
Serializable
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorklistConstants.WorklistItemStateThe state in which the worklist item currently is and which prevents a desired action. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidWorklistItemStateException(WorklistConstants.WorklistItemState worklistItemState) Constructs a newInvalidWorklistItemStateExceptionwhich encapsulates an enum representing the current state of the worklist item.InvalidWorklistItemStateException(String message) Constructs a newInvalidWorklistItemStateExceptionwhich encapsulates a message if the worklist item state is missing. -
Method Summary
Modifier and TypeMethodDescriptiongetState()Gets the state the worklist item is in and that prevents the desired action ornullif the worklist item has no state, that is, it does not exist.Returns the state the worklist item is in and that prevents the desired action.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
worklistItemState
The state in which the worklist item currently is and which prevents a desired action.
-
-
Constructor Details
-
InvalidWorklistItemStateException
Constructs a newInvalidWorklistItemStateExceptionwhich encapsulates a message if the worklist item state is missing.- Parameters:
message- to display in the exception.
-
InvalidWorklistItemStateException
Constructs a newInvalidWorklistItemStateExceptionwhich 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 Details
-
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
Gets the state the worklist item is in and that prevents the desired action ornullif the worklist item has no state, that is, it does not exist.- Returns:
- The state of the worklist item that caused this exception or
nullif the worklist item has no state, that is, it does not exist.
-