public class InvalidActivityStateException
extends java.lang.Exception
ProcessConstants.NodeState this can also be the iteration count or a similar node
attribute.| Modifier and Type | Field and Description |
|---|---|
protected ProcessConstants.NodeState |
activityState
The state in which the process step currently is and which prevents the
desired state transition.
|
protected QualifiedAgent |
agent
The performing agent in case the corresponding activity is currently
executed or has been executed.
|
| Modifier | Constructor and Description |
|---|---|
|
InvalidActivityStateException(java.lang.String msg)
Constructs a new
InvalidActivityStateException which
encapsulates a string describing the node attribute that has the wrong
state for the desired state transition. |
|
InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState)
Constructs a new
InvalidActivityStateException which
encapsulates a string and the current state of the activity. |
|
InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
QualifiedAgent agent)
Constructs a new
InvalidActivityStateException which
encapsulates a string, the current state of the activity and the agent. |
protected |
InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
QualifiedAgent agent,
java.lang.Throwable cause)
Constructs a new
InvalidActivityStateException which
encapsulates a string, the current state of the activity, the agent
executing the activity and the cause for this exception. |
protected |
InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
java.lang.Throwable cause)
Constructs a new
InvalidActivityStateException which
encapsulates a string, the current state of the activity and
the cause for this exception. |
| Modifier and Type | Method and Description |
|---|---|
ProcessConstants.NodeState |
getActivityState()
Returns the state the process step was in and that prevented the desired
state transition.
|
QualifiedAgent |
getAgent()
Returns the agent who is currently executing or has executed the activity
that caused this exception.
|
protected final ProcessConstants.NodeState activityState
protected final QualifiedAgent agent
protected InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
java.lang.Throwable cause)
InvalidActivityStateException which
encapsulates a string, the current state of the activity and
the cause for this exception. The cause is usually used by specific
subclasses.msg - The message for the exception.activityState - The current state of the activity (process step) which
prevents the desired state transition.cause - The exception causing the
InvalidActivityStateException providing additional
information.protected InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
QualifiedAgent agent,
java.lang.Throwable cause)
InvalidActivityStateException which
encapsulates a string, the current state of the activity, the agent
executing the activity and the cause for this exception. The cause is
usually used by specific subclasses.msg - The message for the exception.activityState - The current state of the activity (process step) which
prevents the desired state transition.agent - The performing agent who executes or has executed the
corresponding activity.cause - The exception causing the
InvalidActivityStateException providing additional
information.public InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState,
QualifiedAgent agent)
InvalidActivityStateException which
encapsulates a string, the current state of the activity and the agent.msg - The message for the exception.activityState - The current state of the activity (process step) which
prevents the desired state transition.agent - The performing agent who executes or has executed the
corresponding activity.public InvalidActivityStateException(java.lang.String msg,
ProcessConstants.NodeState activityState)
InvalidActivityStateException which
encapsulates a string and the current state of the activity.msg - The message for the exception.activityState - The current state of the activity (process step) which
prevents the desired state transition.public InvalidActivityStateException(java.lang.String msg)
InvalidActivityStateException which
encapsulates a string describing the node attribute that has the wrong
state for the desired state transition.msg - The message for the exception describing the problem (not caused
by a NodeState).public ProcessConstants.NodeState getActivityState()
null in case the
NodeState is not the problem but another node attribute.null in case this exception is not raised due to a
NodeState.public QualifiedAgent getAgent()
null in case the
activity has no assigned agent.null in case the activity has no assigned agent.