org.outerj.daisy.workflow
Enum VariableScope
java.lang.Object
java.lang.Enum<VariableScope>
org.outerj.daisy.workflow.VariableScope
- All Implemented Interfaces:
- Serializable, Comparable<VariableScope>
public enum VariableScope
- extends Enum<VariableScope>
The scope of task variables. Currently supported are either
global variables (bound to the root execution path) and
task variables (associated with a task). Variables bound
to specific execution paths are currently not supported
(they are supported in jBPM of course, but can't be accessed
through the Daisy meta-variable and query systems).
TASK
public static final VariableScope TASK
GLOBAL
public static final VariableScope GLOBAL
values
public static final VariableScope[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(VariableScope c : VariableScope.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static VariableScope 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 name
toString
public String toString()
- Overrides:
toString in class Enum<VariableScope>
fromString
public static VariableScope fromString(String name)