Daisy Open Source CMS

org.outerj.daisy.workflow
Enum VariableScope

java.lang.Object
  extended by java.lang.Enum<VariableScope>
      extended by 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).


Enum Constant Summary
GLOBAL
           
TASK
           
 
Method Summary
static VariableScope fromString(String name)
           
 String toString()
           
static VariableScope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VariableScope[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TASK

public static final VariableScope TASK

GLOBAL

public static final VariableScope GLOBAL
Method Detail

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)

Daisy Open Source CMS