org.obe.xpdl.model.ext
Class ToolMode

java.lang.Object
  extended byorg.obe.util.AbstractEnum
      extended byorg.obe.xpdl.model.ext.ToolMode
All Implemented Interfaces:
java.lang.Comparable, Enum, java.io.Serializable

public final class ToolMode
extends AbstractEnum

The ToolMode is used to indicate whether the tools in a tool set should be executed sequentially or in parallel. The default is SEQUENTIAL. This attribute is not described in the XPDL specification, but its predecessor WPDL states that the workflow engine creates one work item per tool, and that execution flow between these work items (and thus the invocation order of the tools) can be controlled in a vendor-specific manner. The WPDL spec. does suggest SEQUENTIAL or PARALLEL modes, and states that the default is SEQUENTIAL (curious that the spec. defines the default for a vendor-specific attribute?).

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static ToolMode PARALLEL
          ExecutionType representing parallel tool invocation.
static int PARALLEL_INT
           
static ToolMode SEQUENTIAL
          ExecutionType representing sequential tool invocation.
static int SEQUENTIAL_INT
           
 
Fields inherited from class org.obe.util.AbstractEnum
name, ordinal
 
Method Summary
 java.util.List family()
          Returns an immutable list of the members of the enumerated type.
static ToolMode valueOf(java.lang.String tag)
          Converts the specified string to a ToolMode object.
 
Methods inherited from class org.obe.util.AbstractEnum
clinit, clone, compareTo, equals, hashCode, readResolve, toString, value
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SEQUENTIAL_INT

public static final int SEQUENTIAL_INT
See Also:
Constant Field Values

PARALLEL_INT

public static final int PARALLEL_INT
See Also:
Constant Field Values

SEQUENTIAL

public static final ToolMode SEQUENTIAL
ExecutionType representing sequential tool invocation.


PARALLEL

public static final ToolMode PARALLEL
ExecutionType representing parallel tool invocation.

Method Detail

valueOf

public static ToolMode valueOf(java.lang.String tag)
Converts the specified string to a ToolMode object.

Parameters:
tag - The string, one of: SEQUENTIAL or PARALLEL.
Returns:
The ToolMode object
Throws:
java.lang.IllegalArgumentException - if the tag parameter is invalid.

family

public java.util.List family()
Description copied from interface: Enum
Returns an immutable list of the members of the enumerated type.

Returns:
The family of allowed values.


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.