com.googlecode.sarasvati.event
Enum ExecutionEventType
java.lang.Object
java.lang.Enum<ExecutionEventType>
com.googlecode.sarasvati.event.ExecutionEventType
- All Implemented Interfaces:
- Serializable, Comparable<ExecutionEventType>
public enum ExecutionEventType
- extends Enum<ExecutionEventType>
PROCESS_CREATED
public static final ExecutionEventType PROCESS_CREATED
- NOTE: The eventType ids below are used in constructing bitmasks. Since
the bitmasks are stored in the database, these ids must be
stable. If adding a new event type, it must be assigned the next
highest power of 2.
PROCESS_STARTED
public static final ExecutionEventType PROCESS_STARTED
PROCESS_PENDING_COMPLETE
public static final ExecutionEventType PROCESS_PENDING_COMPLETE
PROCESS_COMPLETED
public static final ExecutionEventType PROCESS_COMPLETED
PROCESS_PENDING_CANCEL
public static final ExecutionEventType PROCESS_PENDING_CANCEL
PROCESS_CANCELED
public static final ExecutionEventType PROCESS_CANCELED
NODE_TOKEN_CREATED
public static final ExecutionEventType NODE_TOKEN_CREATED
NODE_TOKEN_ACCEPTED
public static final ExecutionEventType NODE_TOKEN_ACCEPTED
NODE_TOKEN_EXECUTED
public static final ExecutionEventType NODE_TOKEN_EXECUTED
NODE_TOKEN_DISCARDED
public static final ExecutionEventType NODE_TOKEN_DISCARDED
NODE_TOKEN_SKIPPED
public static final ExecutionEventType NODE_TOKEN_SKIPPED
NODE_TOKEN_COMPLETED
public static final ExecutionEventType NODE_TOKEN_COMPLETED
NODE_TOKEN_BACKTRACKED
public static final ExecutionEventType NODE_TOKEN_BACKTRACKED
ARC_TOKEN_CREATED
public static final ExecutionEventType ARC_TOKEN_CREATED
ARC_TOKEN_PROCESSED
public static final ExecutionEventType ARC_TOKEN_PROCESSED
ARC_TOKEN_COMPLETED
public static final ExecutionEventType ARC_TOKEN_COMPLETED
ARC_TOKEN_BACKTRACKED
public static final ExecutionEventType ARC_TOKEN_BACKTRACKED
ARC_TOKEN_MERGED
public static final ExecutionEventType ARC_TOKEN_MERGED
values
public static ExecutionEventType[] 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 (ExecutionEventType c : ExecutionEventType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ExecutionEventType 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
getEventType
public int getEventType()
isProcessEvent
public boolean isProcessEvent()
isNodeTokenEvent
public boolean isNodeTokenEvent()
isArcTokenEvent
public boolean isArcTokenEvent()
toMask
public static int toMask(ExecutionEventType... eventTypes)
invertMask
public static int invertMask(int mask)
main
public static void main(String[] args)