Enum TerminatedActivityState.TerminatedState
- java.lang.Object
-
- java.lang.Enum<TerminatedActivityState.TerminatedState>
-
- de.aristaflow.adept2.model.runtimeenvironment.TerminatedActivityState.TerminatedState
-
- All Implemented Interfaces:
Serializable
,Comparable<TerminatedActivityState.TerminatedState>
- Enclosing class:
- TerminatedActivityState
public static enum TerminatedActivityState.TerminatedState extends Enum<TerminatedActivityState.TerminatedState>
An enumeration for the state of an activity after its termination. This allows to notify the final state of the activity as well as track the state.- Author:
- Ulrich Kreher
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
The activity has terminated and is closed now.FAILED
The component for the activity has failed.RESET
The activity has been reset.SIGNALLED
The activity has been sent a signal and it has terminated due to this signal.SUSPENDED
The activity has suspended.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TerminatedActivityState.TerminatedState
valueOf(String name)
Returns the enum constant of this type with the specified name.static TerminatedActivityState.TerminatedState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOSED
public static final TerminatedActivityState.TerminatedState CLOSED
The activity has terminated and is closed now.
-
SUSPENDED
public static final TerminatedActivityState.TerminatedState SUSPENDED
The activity has suspended. There may be an additional timeout specifying when the activity wants to be resumed.
-
RESET
public static final TerminatedActivityState.TerminatedState RESET
The activity has been reset.
-
SIGNALLED
public static final TerminatedActivityState.TerminatedState SIGNALLED
The activity has been sent a signal and it has terminated due to this signal.
-
FAILED
public static final TerminatedActivityState.TerminatedState FAILED
The component for the activity has failed. There is further information, namely an error message, state and code.
-
-
Method Detail
-
values
public static TerminatedActivityState.TerminatedState[] 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 (TerminatedActivityState.TerminatedState c : TerminatedActivityState.TerminatedState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TerminatedActivityState.TerminatedState 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
-
-