org.eclipse.stardust.engine.api.runtime
Enum ScanDirection

java.lang.Object
  extended by java.lang.Enum<ScanDirection>
      extended by org.eclipse.stardust.engine.api.runtime.ScanDirection
All Implemented Interfaces:
Serializable, Comparable<ScanDirection>

public enum ScanDirection
extends Enum<ScanDirection>

Specifies the direction to search potential target activities from an activity instance for relocation. Possible directions are FORWARD, BACKWARD or BOTH

Version:
$Revision: $
Author:
Florin.Herinean

Enum Constant Summary
BACKWARD
          To retrieve backward transition targets to repeat a previous executed activity.
BOTH
          To retrieve both transition targets: forward and backward.
FORWARD
          To retrieve possible target activities for forward transitions to continue the process but skip current activity.
 
Method Summary
static ScanDirection valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScanDirection[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FORWARD

public static final ScanDirection FORWARD
To retrieve possible target activities for forward transitions to continue the process but skip current activity.


BACKWARD

public static final ScanDirection BACKWARD
To retrieve backward transition targets to repeat a previous executed activity.


BOTH

public static final ScanDirection BOTH
To retrieve both transition targets: forward and backward.

Method Detail

values

public static ScanDirection[] 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 (ScanDirection c : ScanDirection.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ScanDirection 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
NullPointerException - if the argument is null


Copyright © 2017 Eclipse Stardust. All Rights Reserved.