Package jadex.bpmn.runtime.handler
Class AbstractGatewayActivityHandler
java.lang.Object
jadex.bpmn.runtime.handler.AbstractGatewayActivityHandler
- Direct Known Subclasses:
GatewayORActivityHandler,GatewayParallelActivityHandler
Common functionality for and/or split and join gateways.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSplitInfos(Collection<ProcessThread> threads) Add split infos to a set of threads.voidcancel(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Cancel an activity.voidexecute(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Execute an activity.protected StringGenerate a unique id.protected booleanperformJoin(MActivity activity, ProcessThread thread) Perform a join, if possible.protected abstract Collection<ProcessThread>performSplit(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Perform a split.
-
Field Details
-
idcnt
protected int idcntCounter for generating unique ids.
-
-
Constructor Details
-
AbstractGatewayActivityHandler
public AbstractGatewayActivityHandler()
-
-
Method Details
-
performSplit
protected abstract Collection<ProcessThread> performSplit(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Perform a split.- Returns:
- All resulting threads after the split.
-
execute
Execute an activity.- Parameters:
activity- The activity to execute.instance- The process instance.thread- The process thread.
-
cancel
Cancel an activity.- Parameters:
activity- The activity to execute.instance- The process instance.thread- The process thread.
-
generateId
Generate a unique id. -
addSplitInfos
Add split infos to a set of threads. -
performJoin
Perform a join, if possible.- Returns:
- True, if a join was performed.
-