public abstract class AbstractGatewayActivityHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
idcnt
Counter for generating unique ids.
|
Constructor and Description |
---|
AbstractGatewayActivityHandler() |
Modifier and Type | Method and 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.
|
protected abstract java.util.Collection<ProcessThread> performSplit(MActivity activity, IInternalAccess instance, ProcessThread thread)
public void execute(MActivity activity, IInternalAccess instance, ProcessThread thread)
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.public void cancel(MActivity activity, IInternalAccess instance, ProcessThread thread)
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.protected java.lang.String generateId()
protected void addSplitInfos(java.util.Collection<ProcessThread> threads)
protected boolean performJoin(MActivity activity, ProcessThread thread)