Enum ProcessConstants.ExecutionMode
- java.lang.Object
-
- java.lang.Enum<ProcessConstants.ExecutionMode>
-
- de.aristaflow.adept2.model.globals.ProcessConstants.ExecutionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessConstants.ExecutionMode>
- Enclosing class:
- ProcessConstants
public static enum ProcessConstants.ExecutionMode extends Enum<ProcessConstants.ExecutionMode>
This enumeration defines constants that declare in which mode activities should be executed.- Author:
- Markus Lauer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPONENT_TEST
The activity should be executed in the test mode, whereas the assigned application is called itself.PRODUCTION
The activity is executed in the production mode.SUBSTITUTED_TEST
The activity should not be executed, instead it is substituted by a generic form that displays the values of the declared input parameters and provides edit fields to generate the value for output parameters manually.VIEW_ONLY
The activity just displays the input and output parameter values but does not allow to change them.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static ProcessConstants.ExecutionMode
valueOf(int code)
Returns the enum constant of this type with the specified name.static ProcessConstants.ExecutionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessConstants.ExecutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUBSTITUTED_TEST
public static final ProcessConstants.ExecutionMode SUBSTITUTED_TEST
The activity should not be executed, instead it is substituted by a generic form that displays the values of the declared input parameters and provides edit fields to generate the value for output parameters manually.
-
COMPONENT_TEST
public static final ProcessConstants.ExecutionMode COMPONENT_TEST
The activity should be executed in the test mode, whereas the assigned application is called itself.
-
PRODUCTION
public static final ProcessConstants.ExecutionMode PRODUCTION
The activity is executed in the production mode.
-
VIEW_ONLY
public static final ProcessConstants.ExecutionMode VIEW_ONLY
The activity just displays the input and output parameter values but does not allow to change them. This can be used for tracking purpose.
-
-
Method Detail
-
values
public static ProcessConstants.ExecutionMode[] 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.ExecutionMode c : ProcessConstants.ExecutionMode.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.ExecutionMode 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.ExecutionMode 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
-
-