org.smartcomps.twister.engine.priv.messaging.impl
Class PickECAsReceiveEC
java.lang.Object
|
+--org.smartcomps.twister.engine.priv.messaging.impl.PickECAsReceiveEC
- All Implemented Interfaces:
- BasicEC, ExecutionContext, ReceiveEC
- public class PickECAsReceiveEC
- extends java.lang.Object
- implements ReceiveEC
Wrapper around a Pick execution context to have it behave like a Receive
execution context.
- See Also:
PickAsReceive
,
PickEC
,
ReceiveEC
Constructor Summary |
PickECAsReceiveEC(org.smartcomps.twister.engine.priv.core.dynamic.PickEC pickEC,
int eventPos)
|
Method Summary |
void |
acknowledgeMessage(org.dom4j.Document message)
|
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). |
int |
getEventPos()
|
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 |
setEventPos(int eventPos)
|
void |
setStatus(int status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PickECAsReceiveEC
public PickECAsReceiveEC(org.smartcomps.twister.engine.priv.core.dynamic.PickEC pickEC,
int eventPos)
getId
public java.lang.Long getId()
- Specified by:
getId
in interface ExecutionContext
getContainer
public org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC getContainer()
- Description copied from interface:
ExecutionContext
- Returns the structured execution context containing this execution
context (we could call it a parent execution context). Returns null
if this execution context is the root one, only contained by the
process instance.
- Specified by:
getContainer
in interface ExecutionContext
- Returns:
- StructuredEC or null if the container is the process instance.
getInstance
public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance getInstance()
- Description copied from interface:
ExecutionContext
- Returns the ProcessInstance if this execution context is root or null
otherwise.
- Specified by:
getInstance
in interface ExecutionContext
- Returns:
- ProcessInstance or null
fetchInstance
public org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance fetchInstance()
- Description copied from interface:
ExecutionContext
- Browse the hierarchy tree through all containers to fetch the process instance
this execution context is included in.
- Specified by:
fetchInstance
in interface ExecutionContext
- Returns:
- ProcessInstance
getStatus
public int getStatus()
- Specified by:
getStatus
in interface ExecutionContext
execute
public void execute()
- Specified by:
execute
in interface ExecutionContext
acknowledgeMessage
public void acknowledgeMessage(org.dom4j.Document message)
- Specified by:
acknowledgeMessage
in interface ReceiveEC
setStatus
public void setStatus(int status)
- Specified by:
setStatus
in interface ExecutionContext
getEvents
public java.util.Collection getEvents()
- Specified by:
getEvents
in interface ExecutionContext
getEventPos
public int getEventPos()
setEventPos
public void setEventPos(int eventPos)
Copyright © 2003 SmartComps. All Rights Reserved.