Enum ProcessConstants.InstanceExecutionStatus
- java.lang.Object
-
- java.lang.Enum<ProcessConstants.InstanceExecutionStatus>
-
- de.aristaflow.adept2.model.globals.ProcessConstants.InstanceExecutionStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessConstants.InstanceExecutionStatus>
- Enclosing class:
- ProcessConstants
public static enum ProcessConstants.InstanceExecutionStatus extends Enum<ProcessConstants.InstanceExecutionStatus>
The execution status of an instance. For further information about valid status changes, please refer to the instance state chart.- Author:
- Kevin Goeser
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IE_ABORTED
Instances in the state "aborted" can no longer be executed or changed.IE_FINISHED
Instances in the state "finished" are completed and therefore they are in a final state.IE_RUNNING
In "running" state an instance can be executed.IE_SOFTLY_ABORTED
Instances in the state "aborted" can no longer be executed or changed.IE_SOFTLY_SUSPENDED
The state "suspend" prevents an instance from further execution.IE_SUSPENDED
The state "suspend" prevents an instance from further execution.
-
Field Summary
Fields Modifier and Type Field Description String
readableName
Readable enum representation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ProcessConstants.InstanceExecutionStatus[]
getAll()
Deprecated.Usevalues()
instead.int
getCode()
static ProcessConstants.InstanceExecutionStatus
valueOf(int code)
Returns the enum constant of this type with the specified name.static ProcessConstants.InstanceExecutionStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessConstants.InstanceExecutionStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IE_RUNNING
public static final ProcessConstants.InstanceExecutionStatus IE_RUNNING
In "running" state an instance can be executed. This state is assigned right after the creation of an instance.
-
IE_SUSPENDED
public static final ProcessConstants.InstanceExecutionStatus IE_SUSPENDED
The state "suspend" prevents an instance from further execution. It is used for short interruptions of a process.
IE_SUSPENDED
is a suspend with propagation of the suspension to running activities, that is all activities are suspended at once - if the running activities support suspension.
-
IE_SOFTLY_SUSPENDED
public static final ProcessConstants.InstanceExecutionStatus IE_SOFTLY_SUSPENDED
The state "suspend" prevents an instance from further execution. It is used for short interruptions of a process.
IE_SOFTLY_SUSPENDED
is a "soft"" suspend without propagation of the suspension to running activities. Currently running activities may continue until they are suspended, finished or aborted.
-
IE_ABORTED
public static final ProcessConstants.InstanceExecutionStatus IE_ABORTED
Instances in the state "aborted" can no longer be executed or changed. Since this is a final state no modifications to an instance are allowed. This state includes "unchangeable" and "notMigrateable". If any instance-specific modifications or a schema evolution are taking place they will be cancelled.
IE_ABORTED
is a "hard" abort, that is running activities are instantly aborted, suspended activities are removed from worklists but remain suspended.
-
IE_SOFTLY_ABORTED
public static final ProcessConstants.InstanceExecutionStatus IE_SOFTLY_ABORTED
Instances in the state "aborted" can no longer be executed or changed. Since this is a final state no modifications to an instance are allowed. This state includes "unchangeable" and "notMigrateable". If any instance-specific modifications or a schema evolution are taking place they will be cancelled.
IE_SOFTLY_ABORTED
does not propagate the abortion to running activities. This allows running (as well as suspended) activities to finish normally. This implies that suspended activities may be resumed again.
-
IE_FINISHED
public static final ProcessConstants.InstanceExecutionStatus IE_FINISHED
Instances in the state "finished" are completed and therefore they are in a final state. So no modifications to an instance are allowed. This state includes "unchangeable" and "notMigrateable". If any instance-specific modifications or a schema evolution are taking place they will be cancelled.
-
-
Field Detail
-
readableName
public final String readableName
Readable enum representation.
-
-
Method Detail
-
values
public static ProcessConstants.InstanceExecutionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProcessConstants.InstanceExecutionStatus c : ProcessConstants.InstanceExecutionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessConstants.InstanceExecutionStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()
-
valueOf
public static ProcessConstants.InstanceExecutionStatus valueOf(int code)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
code
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getAll
@Deprecated public static ProcessConstants.InstanceExecutionStatus[] getAll()
Deprecated.Usevalues()
instead.Gets all instance execution statuses in an array.- Returns:
- All instance execution statuses an array.
-
-