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 void
addSplitInfos
(Collection<ProcessThread> threads) Add split infos to a set of threads.void
cancel
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Cancel an activity.void
execute
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Execute an activity.protected String
Generate a unique id.protected boolean
performJoin
(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.
-