|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.smartcomps.twister.engine.priv.core.definition.ActivityFactory
Creates appropriate activities or activity specific objects, setting default values.
Constructor Summary | |
ActivityFactory()
|
Method Summary | |
static org.smartcomps.twister.engine.priv.core.definition.AlarmEvent |
addAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.Pick pick,
org.smartcomps.twister.engine.priv.core.definition.Activity activity,
java.lang.String timeExpression,
int type)
Adds an AlarmEvent to a Pick structured activity triggering the execution of the provided activity when the corresponding alarm is reached. |
static org.smartcomps.twister.engine.priv.core.definition.Assignment |
addAssignment(org.smartcomps.twister.engine.priv.core.definition.Assign assign,
int fromType,
int toType)
Adds an assignment to an assign activity, creating the associated Assign persistent instance. |
static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef |
addCorrelationRef(org.smartcomps.twister.engine.priv.core.definition.Invoke invoke,
java.lang.String set,
boolean initiate,
int pattern)
Adds a correlation reference (CorrelationRef) to an Invoke activity. |
static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef |
addCorrelationRef(org.smartcomps.twister.engine.priv.core.definition.Receive receive,
java.lang.String set,
boolean initiate,
int pattern)
Adds a correlation reference (CorrelationRef) to a Receive activity. |
static org.smartcomps.twister.engine.priv.core.definition.MessageEvent |
addMessageEvent(org.smartcomps.twister.engine.priv.core.definition.Pick pick,
org.smartcomps.twister.engine.priv.core.definition.Activity activity,
java.lang.String partnerLink,
java.lang.String portType,
java.lang.String operation,
java.lang.String variable,
java.util.Set correlations)
Adds a MessageEvent to a Pick structured activity triggering the execution of the provided activity when an appropriate message is received. |
static void |
bindDestination(java.lang.String linkName,
org.smartcomps.twister.engine.priv.core.definition.Activity sourceActivity)
TODO Implement me with Flow Binds an activity as the destination of a Link, eventually creating that Link if it doesn't exist. |
static void |
bindSource(java.lang.String linkName,
org.smartcomps.twister.engine.priv.core.definition.Activity sourceActivity)
TODO Implement me with Flow Binds an activity as the source of a Link, eventually creating that Link if it doesn't exist. |
static org.smartcomps.twister.engine.priv.core.definition.Activity |
createActivity(java.lang.Class activityInterface,
org.smartcomps.twister.engine.priv.core.definition.StructuredActivity container)
Creates a new persistent activity instance implementing the provided interface and assigns it to the provided container. |
static org.smartcomps.twister.engine.priv.core.definition.Activity |
createActivity(java.lang.Class activityInterface,
org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process)
Creates a new persistent activity instance implementing the provided interface and assigns it to the provided process, only needed once in a process creation. |
static org.smartcomps.twister.engine.priv.core.definition.AlarmEvent |
createAlarmEvent(java.lang.String timeExpression,
int type)
Deprecated. use addAlarmEvent on Pick instead |
static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef |
createCorrelationRef(java.lang.String set,
boolean initiate,
int pattern)
|
static org.smartcomps.twister.engine.priv.core.definition.MessageEvent |
createMessageEvent(java.lang.String partnerLink,
java.lang.String portType,
java.lang.String operation,
java.lang.String variable,
java.util.Set correlations)
Deprecated. use addMessageEvent on Pick instead |
static java.util.List |
findPickEventsByInvoker(java.lang.String partnerLink,
java.lang.String portType,
java.lang.String operation)
Finds Picks and according MessageEvents interested in the provided invoker paramters. |
static java.util.List |
findReceivesByInvoker(java.lang.String partnerLink,
java.lang.String portType,
java.lang.String operation)
Find receives interested in the provided invoker paramaters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActivityFactory()
Method Detail |
public static org.smartcomps.twister.engine.priv.core.definition.Assignment addAssignment(org.smartcomps.twister.engine.priv.core.definition.Assign assign, int fromType, int toType) throws DBSessionException
assign
- the Assign activity to add assignment forfromType
- the type of the "from" part of the assignment (see Assignment interface)toType
- the type of the "to" part of the assignment (see Assignment interface)
DBSessionException
DBSessionException
Assignment
public static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef addCorrelationRef(org.smartcomps.twister.engine.priv.core.definition.Invoke invoke, java.lang.String set, boolean initiate, int pattern) throws DBSessionException
invoke
- set
- initiate
- pattern
-
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef addCorrelationRef(org.smartcomps.twister.engine.priv.core.definition.Receive receive, java.lang.String set, boolean initiate, int pattern) throws DBSessionException
receive
- set
- initiate
- pattern
-
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.MessageEvent addMessageEvent(org.smartcomps.twister.engine.priv.core.definition.Pick pick, org.smartcomps.twister.engine.priv.core.definition.Activity activity, java.lang.String partnerLink, java.lang.String portType, java.lang.String operation, java.lang.String variable, java.util.Set correlations) throws DBSessionException
pick
- activity
- partnerLink
- portType
- operation
- variable
- correlations
-
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.AlarmEvent addAlarmEvent(org.smartcomps.twister.engine.priv.core.definition.Pick pick, org.smartcomps.twister.engine.priv.core.definition.Activity activity, java.lang.String timeExpression, int type) throws DBSessionException
pick
- activity
- timeExpression
- type
-
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.Activity createActivity(java.lang.Class activityInterface, org.smartcomps.twister.engine.priv.core.definition.StructuredActivity container) throws DBSessionException
activityInterface
- the interface the returned instance has to implementcontainer
- the container to register the created activity under
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.Activity createActivity(java.lang.Class activityInterface, org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process) throws DBSessionException
activityInterface
- the interface the returned instance has to implementprocess
- the process to register the created activity under
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.MessageEvent createMessageEvent(java.lang.String partnerLink, java.lang.String portType, java.lang.String operation, java.lang.String variable, java.util.Set correlations) throws DBSessionException
partnerLink
- portType
- operation
- variable
- correlations
-
DBSessionException
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.AlarmEvent createAlarmEvent(java.lang.String timeExpression, int type) throws DBSessionException, DBSessionException
timeExpression
- type
-
DBSessionException
DBSessionException
public static org.smartcomps.twister.engine.priv.core.definition.CorrelationRef createCorrelationRef(java.lang.String set, boolean initiate, int pattern) throws DBSessionException
DBSessionException
public static void bindSource(java.lang.String linkName, org.smartcomps.twister.engine.priv.core.definition.Activity sourceActivity) throws LinkAlreadyBoundException
linkName
- sourceActivity
-
LinkAlreadyBoundException
public static void bindDestination(java.lang.String linkName, org.smartcomps.twister.engine.priv.core.definition.Activity sourceActivity) throws LinkAlreadyBoundException
linkName
- sourceActivity
-
LinkAlreadyBoundException
public static java.util.List findReceivesByInvoker(java.lang.String partnerLink, java.lang.String portType, java.lang.String operation) throws DBSessionException
partnerLink
- portType
- operation
-
DBSessionException
public static java.util.List findPickEventsByInvoker(java.lang.String partnerLink, java.lang.String portType, java.lang.String operation) throws DBSessionException
partnerLink
- portType
- operation
-
DBSessionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |