|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The execution context of an Activity, has details about the execution history of the activity and is specialized for each type of activity, knowing therefore how to execute each of those type.
Field Summary | |
static int |
ACTIVE
The Execution Context is currently running. |
static int |
CANCELED
The Exection Context received a cancellation signal from a user or another service. |
static int |
COMPLETED
The Execution Context has been properly completed. |
static int |
ENDED_CANCELED
This Execution Context has been ended in a canceled status. |
static int |
ENDED_COMPLETED
This Execution Context has been ended in a completed status (parent process has finished execution). |
static int |
ENDED_FAULTED
This Execution Context has been ended in a failed status. |
static int |
FAULTED
An error occured that prevented the Execution Context to finish its execution properly. |
static int |
OPEN
The Execution Context has been created but is not active yet, not doing its job (like waiting for a message, invoking a service or looping). |
Method Summary | |
void |
execute()
|
org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance |
fetchInstance()
Browse the hierarchy tree through all containers to fetch the process instance this execution context is included in. |
org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC |
getContainer()
Returns the structured execution context containing this execution context (we could call it a parent execution context). |
java.util.Collection |
getEvents()
|
java.lang.Long |
getId()
|
org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance |
getInstance()
Returns the ProcessInstance if this execution context is root or null otherwise. |
int |
getStatus()
|
void |
setStatus(int status)
|
Field Detail |
public static final int OPEN
public static final int ACTIVE
public static final int COMPLETED
public static final int CANCELED
public static final int FAULTED
public static final int ENDED_COMPLETED
public static final int ENDED_CANCELED
public static final int ENDED_FAULTED
Method Detail |
public java.lang.Long getId()
public org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC getContainer()
public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance getInstance()
public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance fetchInstance()
public int getStatus()
public void setStatus(int status)
public java.util.Collection getEvents()
public void execute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |