public class InvalidInstanceStateException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
protected ProcessConstants.InstanceExecutionStatus |
executionState
The execution state in which the instance currently is and which prevents
the execution of the called method.
|
protected java.util.UUID |
instanceID
The ID of the instance which is in the wrong state for the desired action.
|
protected boolean |
migrationPrevents
Whether the current migration state prevents the action (or the current
execution state).
|
protected ProcessConstants.InstanceMigrationStatus |
migrationState
The migration state in which the instance currently is and which prevents
the desired action.
|
| Constructor and Description |
|---|
InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceExecutionStatus currentExecutionState,
ProcessConstants.InstanceMigrationStatus currentMigrationState,
boolean migrationPrevents,
java.lang.String message)
Constructs a new
InvalidInstanceStateException which signals
that the designated instance is in the designated execution and migration
state and one of them prevents the desired action. |
InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceExecutionStatus currentExecutionState,
java.lang.String message)
Constructs a new
InvalidInstanceStateException which signals
that the designated instance is in the designated current execution state
which prevents the desired action. |
InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceMigrationStatus currentMigrationState,
java.lang.String message)
Constructs a new
InvalidInstanceStateException which signals
that the designated instance is in the designated current migration state
which prevents the desired action. |
| Modifier and Type | Method and Description |
|---|---|
ProcessConstants.InstanceExecutionStatus |
getInstanceExecutionStatus()
Gets the execution status of the instance which has led to this exception
or null in case a migration state has led to this exception.
|
java.util.UUID |
getInstanceID()
Gets the execution status of the instance which has led to this exception
or null in case a migration state has led to this exception.
|
ProcessConstants.InstanceMigrationStatus |
getInstanceMigrationStatus()
Gets the migration status of the instance which has led to this exception
or null in case an execution state has led to this exception.
|
java.lang.String |
getPreventingState()
Gets the string representation of the state which prevents the desired
action and which has led to this exception.
|
protected final java.util.UUID instanceID
protected final ProcessConstants.InstanceExecutionStatus executionState
protected final ProcessConstants.InstanceMigrationStatus migrationState
protected final boolean migrationPrevents
public InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceExecutionStatus currentExecutionState,
java.lang.String message)
InvalidInstanceStateException which signals
that the designated instance is in the designated current execution state
which prevents the desired action.instanceID - The ID of the instance which is in the wrong execution
state for the desired action.currentExecutionState - The current execution state of the instance.message - A message to display to the user.public InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceMigrationStatus currentMigrationState,
java.lang.String message)
InvalidInstanceStateException which signals
that the designated instance is in the designated current migration state
which prevents the desired action.instanceID - The ID of the instance which is in the wrong migration
state for the desired action.currentMigrationState - The current migration state of the instance.message - A message to display to the user.public InvalidInstanceStateException(java.util.UUID instanceID,
ProcessConstants.InstanceExecutionStatus currentExecutionState,
ProcessConstants.InstanceMigrationStatus currentMigrationState,
boolean migrationPrevents,
java.lang.String message)
InvalidInstanceStateException which signals
that the designated instance is in the designated execution and migration
state and one of them prevents the desired action. The preventing state is
specified by the boolean flag.instanceID - The ID of the instance which is in the wrong state for
the desired action.currentExecutionState - The current execution state of the instance.currentMigrationState - The current migration state of the instance.migrationPrevents - Whether it is the migration state that prevents
the desired action (or the execution state instead).message - A message to display to the user.public java.util.UUID getInstanceID()
public ProcessConstants.InstanceExecutionStatus getInstanceExecutionStatus()
public ProcessConstants.InstanceMigrationStatus getInstanceMigrationStatus()
public java.lang.String getPreventingState()