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.ObjectCommon functionality for and/or split and join gateways.
- 
- 
Field SummaryFields Modifier and Type Field Description protected intidcntCounter for generating unique ids.
 - 
Constructor SummaryConstructors Constructor Description AbstractGatewayActivityHandler()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddSplitInfos(java.util.Collection<ProcessThread> threads)Add split infos to a set of threads.voidcancel(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread)Cancel an activity.voidexecute(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread)Execute an activity.protected java.lang.StringgenerateId()Generate a unique id.protected booleanperformJoin(jadex.bpmn.model.MActivity activity, ProcessThread thread)Perform a join, if possible.protected abstract java.util.Collection<ProcessThread>performSplit(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread)Perform a split.
 
- 
- 
- 
Method Detail- 
performSplitprotected abstract java.util.Collection<ProcessThread> performSplit(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread) Perform a split.- Returns:
- All resulting threads after the split.
 
 - 
executepublic void execute(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread)Execute an activity.- Parameters:
- activity- The activity to execute.
- instance- The process instance.
- thread- The process thread.
 
 - 
cancelpublic void cancel(jadex.bpmn.model.MActivity activity, IInternalAccess instance, ProcessThread thread)Cancel an activity.- Parameters:
- activity- The activity to execute.
- instance- The process instance.
- thread- The process thread.
 
 - 
generateIdprotected java.lang.String generateId() Generate a unique id.
 - 
addSplitInfosprotected void addSplitInfos(java.util.Collection<ProcessThread> threads) Add split infos to a set of threads.
 - 
performJoinprotected boolean performJoin(jadex.bpmn.model.MActivity activity, ProcessThread thread)Perform a join, if possible.- Returns:
- True, if a join was performed.
 
 
- 
 
-