|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A pick is a structured activity that allows you to block and wait for a suitable
message to arrive or for a time-out alarm to go off. When one of these triggers
occurs, the associated activity is performed and the pick completes.
Each Pick activty must include at least one MessageEvent.
| Method Summary | |
void |
addAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.AlarmEvent event,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Adds an alarm event to this Pick activity that triggers the provided activity when fired. |
void |
addMessageEvent(org.smartcomps.twister.engine.priv.core.definition.MessageEvent event,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Adds a message event to this Pick activity that triggers the provided activity when fired. |
org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext |
execute(java.lang.String correlationSetName,
java.util.Map correlation)
Pick is one of the rare structured activity that can be directly executed. |
java.util.Map |
getActivityAlarmEvents()
Builds a Map containing activities as keys and corresponding alarm events as values. |
java.util.Map |
getActivityMessageEvents()
Builds a Map containing activities as keys and corresponding message events as values. |
org.smartcomps.twister.engine.priv.core.definition.AlarmEvent |
getAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Returns the alarm event associated with the provided activity. |
org.smartcomps.twister.engine.priv.core.definition.MessageEvent |
getMessageEvent(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Returns the message event associated with the provided activity. |
java.util.List |
getMessageEvents()
Returns the list of MessageEvent in the Pick structured activity. |
boolean |
isCreateInstance()
|
void |
setCreateInstance(boolean createInstance)
|
| Methods inherited from interface org.smartcomps.twister.engine.priv.core.definition.StructuredActivity |
addActivity, addExecutionContext, getActivities, getExecutionContexts |
| Methods inherited from interface org.smartcomps.twister.engine.priv.core.definition.Activity |
fetchProcess, getContainer, getJoinCondition, getName, getProcess, getSourceLinks, getTargetLinks, setJoinCondition, setName, setSourceLinks, setTargetLinks |
| Method Detail |
public boolean isCreateInstance()
public void setCreateInstance(boolean createInstance)
public void addMessageEvent(org.smartcomps.twister.engine.priv.core.definition.MessageEvent event,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
event - the message event to wait for to fire the activityactivity - to start when the message event occurspublic java.util.Map getActivityMessageEvents()
public org.smartcomps.twister.engine.priv.core.definition.MessageEvent getMessageEvent(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
activity - associated with the wanted message event
public java.util.List getMessageEvents()
public void addAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.AlarmEvent event,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
event - the alarm event to wait for to fire the activityactivity - to start when the message event occurspublic java.util.Map getActivityAlarmEvents()
public org.smartcomps.twister.engine.priv.core.definition.AlarmEvent getAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.Activity activity)
activity - associated with the wanted alarm event
public org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext execute(java.lang.String correlationSetName,
java.util.Map correlation)
throws EngineException
correlationSetName - correlation -
EngineException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||