Class InvalidWorklistItemStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.model.worklistmodel.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 statesAVAILABLE,ASSIGNEDandSUSPENDED.
-
-
Field Summary
Fields Modifier and Type Field Description protected WorklistConstants.WorklistItemStateworklistItemStateThe state in which the worklist item currently is and which prevents a desired action.
-
Constructor Summary
Constructors Constructor Description InvalidWorklistItemStateException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorklistConstants.WorklistItemStategetState()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.StringgetWorklistItemState()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 Detail
-
worklistItemState
protected WorklistConstants.WorklistItemState worklistItemState
The state in which the worklist item currently is and which prevents a desired action.
-
-
Constructor Detail
-
InvalidWorklistItemStateException
public InvalidWorklistItemStateException(String message)
Constructs a newInvalidWorklistItemStateExceptionwhich 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 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 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 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.
-
-