public class ProcessState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short[] |
ALL_STATES
An array containing the possible states.
|
static short |
STATE_ACTIVE
ACTIVE state: instance has received a
<receive>
or <pick> with createInstance="true" |
static short |
STATE_COMPLETED_OK
COMPLETED state: instance has reached the end of its execution
(normally).
|
static short |
STATE_COMPLETED_WITH_FAULT
COMPLETED WITH FAULT state: instance has reached the end of its execution
due to an uncaught fault.
|
static short |
STATE_NEW
NEW state: instance has not been reduced.
|
static short |
STATE_READY
READY state: instance is waiting for a
<receive>
or <pick> with createInstance="true" . |
static short |
STATE_SUSPENDED
SUSPENDED state: instance was suspended via a breakpoint or user
intervention.
|
static short |
STATE_TERMINATED
TERMINATED state: instance was terminated, either via the
<terminate> or through manual intervention. |
Modifier and Type | Method and Description |
---|---|
static boolean |
canExecute(short state)
Test whether a process state is one where the process can execute, i.e.,
not
STATE_SUSPENDED and not one of the completed or terminated states. |
static boolean |
isFinished(short state)
Test whether a process state is one of the completed states, e.g.,
STATE_COMPLETED_OK or STATE_COMPLETED_WITH_FAULT . |
static java.lang.String |
stateToString(short state)
Change
short state representation to human-readable form. |
public static final short STATE_NEW
public static final short STATE_READY
<receive>
or <pick>
with createInstance="true"
.public static final short STATE_ACTIVE
<receive>
or <pick>
with createInstance="true"
public static final short STATE_COMPLETED_OK
public static final short STATE_COMPLETED_WITH_FAULT
public static final short STATE_SUSPENDED
public static final short STATE_TERMINATED
<terminate>
or through manual intervention.org.apache.ode.bpel.bdi.InstanceReference#terminate()
,
Constant Field Valuespublic static final short[] ALL_STATES
public static boolean canExecute(short state)
STATE_SUSPENDED
and not one of the completed or terminated states.state
- the state of the processtrue
if the process can executepublic static boolean isFinished(short state)
STATE_COMPLETED_OK
or STATE_COMPLETED_WITH_FAULT
.state
- the state of the processtrue
if the process is finished.public static java.lang.String stateToString(short state)
short
state representation to human-readable form.state
- the state of the processString