Package jadex.bpmn.runtime.handler
Class AbstractGatewayActivityHandler
- java.lang.Object
-
- jadex.bpmn.runtime.handler.AbstractGatewayActivityHandler
-
- Direct Known Subclasses:
GatewayORActivityHandler
,GatewayParallelActivityHandler
public abstract class AbstractGatewayActivityHandler extends java.lang.Object
Common functionality for and/or split and join gateways.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
idcnt
Counter for generating unique ids.
-
Constructor Summary
Constructors Constructor Description AbstractGatewayActivityHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSplitInfos(java.util.Collection<ProcessThread> threads)
Add split infos to a set of threads.void
cancel(MActivity activity, IInternalAccess instance, ProcessThread thread)
Cancel an activity.void
execute(MActivity activity, IInternalAccess instance, ProcessThread thread)
Execute an activity.protected java.lang.String
generateId()
Generate a unique id.protected boolean
performJoin(MActivity activity, ProcessThread thread)
Perform a join, if possible.protected abstract java.util.Collection<ProcessThread>
performSplit(MActivity activity, IInternalAccess instance, ProcessThread thread)
Perform a split.
-
-
-
Method Detail
-
performSplit
protected abstract java.util.Collection<ProcessThread> performSplit(MActivity activity, IInternalAccess instance, ProcessThread thread)
Perform a split.- Returns:
- All resulting threads after the split.
-
execute
public void execute(MActivity activity, IInternalAccess instance, ProcessThread thread)
Execute an activity.- Parameters:
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.
-
cancel
public void cancel(MActivity activity, IInternalAccess instance, ProcessThread thread)
Cancel an activity.- Parameters:
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.
-
generateId
protected java.lang.String generateId()
Generate a unique id.
-
addSplitInfos
protected void addSplitInfos(java.util.Collection<ProcessThread> threads)
Add split infos to a set of threads.
-
performJoin
protected boolean performJoin(MActivity activity, ProcessThread thread)
Perform a join, if possible.- Returns:
- True, if a join was performed.
-
-