|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.process.StateEngine
public class StateEngine
Process State Engine. Based on OMG Workflow State
| Field Summary | |
|---|---|
static String |
ACTION_Abort
Abort |
static String |
ACTION_Complete
Complete |
static String |
ACTION_Resume
Resume |
static String |
ACTION_Start
Start |
static String |
ACTION_Suspend
Suspend |
static String |
ACTION_Terminate
Terminate |
protected CLogger |
log
Logger |
static String |
STATE_Aborted
Closed - Aborted - Environment/Setup Error |
static String |
STATE_Completed
Closed - Completed - normal exit |
static String |
STATE_NotStarted
Open - Not Started |
static String |
STATE_Running
Open - Running |
static String |
STATE_Suspended
Open - Suspended |
static String |
STATE_Terminated
Closed - Teminated - Execution Error |
| Constructor Summary | |
|---|---|
StateEngine()
Default Constructor (not started) |
|
StateEngine(String startState)
Initialized Constructor |
|
| Method Summary | |
|---|---|
boolean |
abort()
Abort: open -> aborted |
boolean |
complete()
Complete: running -> completed |
String[] |
getActionOptions()
Get Action Options based on current State |
String |
getNewStateIfAction(String action)
Get New State If Action performed |
String[] |
getNewStateOptions()
Get New State Options based on current State |
String |
getState()
Get State |
String |
getStateInfo()
Get clear text State Info. |
boolean |
isAborted()
State is Aborted (Environment/Setup issue) |
boolean |
isClosed()
State is Closed |
boolean |
isCompleted()
State is Completed |
boolean |
isNotRunning()
State is Not Running |
boolean |
isNotStarted()
State is Not Started |
boolean |
isOpen()
State is Open |
boolean |
isRunning()
State is Running |
boolean |
isSuspended()
State is Suspended |
boolean |
isTerminated()
State is Terminated (Execution issue) |
boolean |
isThrowException()
Are Exception Thrown |
boolean |
isValidAction(String action)
Is The Action Valid based on current state |
boolean |
isValidNewState(String newState)
Is the new State valid based on current state |
boolean |
process(String action)
Process |
boolean |
resume()
Resume: suspended -> running |
boolean |
setState(String newState)
Set State to new State |
void |
setThrowException(boolean throwException)
Set if Exceptions are Thrown * @param throwException boolean |
boolean |
start()
Start: not started -> running |
boolean |
suspend()
Suspend: running -> suspended |
boolean |
terminate()
Terminate: open -> terminated |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String STATE_NotStarted
public static final String STATE_Running
public static final String STATE_Suspended
public static final String STATE_Completed
public static final String STATE_Aborted
public static final String STATE_Terminated
public static final String ACTION_Suspend
public static final String ACTION_Start
public static final String ACTION_Resume
public static final String ACTION_Complete
public static final String ACTION_Abort
public static final String ACTION_Terminate
protected CLogger log
| Constructor Detail |
|---|
public StateEngine()
public StateEngine(String startState)
startState - start state| Method Detail |
|---|
public boolean isThrowException()
public void setThrowException(boolean throwException)
public String getState()
public String getStateInfo()
public boolean isOpen()
public boolean isNotRunning()
public boolean isClosed()
public boolean isNotStarted()
public boolean isRunning()
public boolean isSuspended()
public boolean isCompleted()
public boolean isAborted()
public boolean isTerminated()
public boolean start()
public boolean resume()
public boolean suspend()
public boolean complete()
public boolean abort()
public boolean terminate()
public String[] getNewStateOptions()
public boolean isValidNewState(String newState)
newState - new state
public boolean setState(String newState)
newState - new state
public String[] getActionOptions()
public boolean isValidAction(String action)
action - action
public boolean process(String action)
action - action
public String getNewStateIfAction(String action)
action - action
public String toString()
toString in class Object
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||