org.eclipse.stardust.engine.api.runtime
Class ProcessInstancePriority

java.lang.Object
  extended by org.eclipse.stardust.common.IntKey
      extended by org.eclipse.stardust.engine.api.runtime.ProcessInstancePriority
All Implemented Interfaces:
Serializable, Comparable

public class ProcessInstancePriority
extends org.eclipse.stardust.common.IntKey

A representation of the priority of an process instance. This class also provides human readable values for the process instance priorities.

Author:
sborn
See Also:
Serialized Form

Field Summary
static ProcessInstancePriority High
           
static int HIGH
          The process instance has higher priority than normal.
static ProcessInstancePriority Low
           
static int LOW
          The process instance has lower priority than normal.
static ProcessInstancePriority Normal
           
static int NORMAL
          The process instance has normal priority (default).
 
Method Summary
static ProcessInstancePriority getPriority(int value)
          Factory method to get the ProcessInstancePriority corresponding to the given code.
 
Methods inherited from class org.eclipse.stardust.common.IntKey
compareTo, equals, getKey, getKeys, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOW

public static final int LOW
The process instance has lower priority than normal.

See Also:
Constant Field Values

NORMAL

public static final int NORMAL
The process instance has normal priority (default).

See Also:
Constant Field Values

HIGH

public static final int HIGH
The process instance has higher priority than normal.

See Also:
Constant Field Values

Low

public static final ProcessInstancePriority Low

Normal

public static final ProcessInstancePriority Normal

High

public static final ProcessInstancePriority High
Method Detail

getPriority

public static ProcessInstancePriority getPriority(int value)
Factory method to get the ProcessInstancePriority corresponding to the given code.

Parameters:
value - one of the ProcessInstancePriority codes.
Returns:
one of the predefined ProcessInstancePriority or null if it's an invalid code.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.