public interface InstanceStatus
| Modifier and Type | Method and Description |
|---|---|
ProcessConstants.InstanceExecutionStatus |
getExecutionStatus()
Returns the execution status of the instance.
|
java.lang.String |
getExecutionStatusComment()
Returns the comment set for the current execution status.
|
long |
getExecutionStatusDate()
Gets the date (as long) the current instance execution status has been set.
|
java.util.UUID |
getInstanceID()
Returns the (logical) ID of the instance, this status object belongs to.
|
ProcessConstants.InstanceMigrationStatus |
getMigrationStatus()
Returns the migration status of the instance.
|
java.lang.String |
getMigrationStatusComment()
Returns the comment set for the current migration status.
|
long |
getMigrationStatusDate()
Gets the date (as long) the current instance migration status has been set.
|
void |
setExecutionStatus(ProcessConstants.InstanceExecutionStatus executionStatus,
java.lang.String comment)
Set the execution status of the instance.
|
void |
setMigrationStatus(ProcessConstants.InstanceMigrationStatus migrationStatus,
java.lang.String comment)
Set the migration status of the instance.
|
java.util.UUID getInstanceID()
ProcessConstants.InstanceMigrationStatus getMigrationStatus()
long getMigrationStatusDate()
java.lang.String getMigrationStatusComment()
ProcessConstants.InstanceExecutionStatus getExecutionStatus()
long getExecutionStatusDate()
java.lang.String getExecutionStatusComment()
void setMigrationStatus(ProcessConstants.InstanceMigrationStatus migrationStatus, java.lang.String comment)
migrationStatus - The migration status to be set.comment - The comment for the status to be set. The comment will
override the former comment. The parameter may be null.void setExecutionStatus(ProcessConstants.InstanceExecutionStatus executionStatus, java.lang.String comment)
The different execution states have also influence onto the other state indicators. For example the execution state 'aborted' implies that the instance cannot be changed any more. So the instance status flag that indicates if the instance may be changed must reflect this state after the instance has taken up the execution state 'aborted'.
This method ensures that all the instance state flags are adapted accordingly depending on the execution state to take up.
executionStatus - The execution status to be set.comment - The comment for the status to be set. The comment will
override the former comment. The parameter may be null.