public class ActivityImpl extends ScopeImpl implements PvmActivity, HasDIBounds
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActivityImpl.AsyncAfterUpdate
Delegate interface for the asyncAfter property update
|
static interface |
ActivityImpl.AsyncBeforeUpdate
Delegate interface for the asyncBefore property update.
|
| Modifier and Type | Field and Description |
|---|---|
protected ActivityBehavior |
activityBehavior
the inner behavior of an activity.
|
protected ActivityStartBehavior |
activityStartBehavior
The start behavior for this activity.
|
protected ActivityImpl.AsyncAfterUpdate |
delegateAsyncAfterUpdate
The delegate for the async after attribute update.
|
protected ActivityImpl.AsyncBeforeUpdate |
delegateAsyncBeforeUpdate
The delegate for the async before attribute update.
|
protected ScopeImpl |
eventScope |
protected ScopeImpl |
flowScope |
protected int |
height |
protected List<TransitionImpl> |
incomingTransitions |
protected boolean |
isAsyncAfter |
protected boolean |
isAsyncBefore |
protected boolean |
isScope |
protected Map<String,TransitionImpl> |
namedOutgoingTransitions |
protected List<TransitionImpl> |
outgoingTransitions |
protected int |
width |
protected int |
x |
protected int |
y |
flowActivities, isSubProcessScope, namedFlowActivities, processDefinitionioMappingbuiltInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners| Constructor and Description |
|---|
ActivityImpl(String id,
ProcessDefinitionImpl processDefinition) |
| Modifier and Type | Method and Description |
|---|---|
TransitionImpl |
createOutgoingTransition() |
TransitionImpl |
createOutgoingTransition(String transitionId) |
TransitionImpl |
findOutgoingTransition(String transitionId)
Finds and returns an outgoing sequence flow (transition) by it's id.
|
ActivityBehavior |
getActivityBehavior()
The inner behavior of an activity.
|
String |
getActivityId() |
ActivityStartBehavior |
getActivityStartBehavior()
The start behavior of an activity.
|
ActivityImpl.AsyncAfterUpdate |
getDelegateAsyncAfterUpdate() |
ActivityImpl.AsyncBeforeUpdate |
getDelegateAsyncBeforeUpdate() |
ScopeImpl |
getEventScope()
The event scope for an activity is the scope in which the activity listens for events.
|
ScopeImpl |
getFlowScope()
The flow scope of the activity.
|
int |
getHeight() |
List<PvmTransition> |
getIncomingTransitions() |
PvmScope |
getLevelOfSubprocessScope()
The "level of subprocess scope" as defined in bpmn: this is the subprocess
containing the activity.
|
List<PvmTransition> |
getOutgoingTransitions() |
ActivityImpl |
getParentFlowScopeActivity() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
isAsyncAfter()
Indicates whether execution after this execution should continue asynchronously.
|
boolean |
isAsyncBefore()
Indicates whether the activity is executed asynchronously.
|
boolean |
isScope()
Indicates whether this is a local scope for variables and events
if true, there will _always_ be a scope execution created for it.
|
void |
setActivityBehavior(ActivityBehavior activityBehavior) |
void |
setActivityStartBehavior(ActivityStartBehavior activityStartBehavior) |
void |
setAsyncAfter(boolean isAsyncAfter) |
void |
setAsyncAfter(boolean isAsyncAfter,
boolean exclusive) |
void |
setAsyncBefore(boolean isAsyncBefore) |
void |
setAsyncBefore(boolean isAsyncBefore,
boolean exclusive) |
void |
setDelegateAsyncAfterUpdate(ActivityImpl.AsyncAfterUpdate delegateAsyncAfterUpdate) |
void |
setDelegateAsyncBeforeUpdate(ActivityImpl.AsyncBeforeUpdate delegateAsyncBeforeUpdate) |
void |
setEventScope(ScopeImpl eventScope) |
void |
setHeight(int height) |
protected void |
setIncomingTransitions(List<TransitionImpl> incomingTransitions) |
protected void |
setOutgoingTransitions(List<TransitionImpl> outgoingTransitions) |
void |
setScope(boolean isScope) |
void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
String |
toString() |
addExecutionListener, addExecutionListener, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getChildActivity, getExecutionListeners, getExecutionListeners, getProcessDefinition, isSubProcessScope, setSubProcessScopecreateActivity, getIoMapping, setIoMappingaddBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, isSubProcessScopegetId, getProcessDefinition, getPropertyprotected List<TransitionImpl> outgoingTransitions
protected Map<String,TransitionImpl> namedOutgoingTransitions
protected List<TransitionImpl> incomingTransitions
protected ActivityBehavior activityBehavior
protected ActivityStartBehavior activityStartBehavior
protected ScopeImpl eventScope
protected ScopeImpl flowScope
protected boolean isScope
protected boolean isAsyncBefore
protected boolean isAsyncAfter
protected int x
protected int y
protected int width
protected int height
protected ActivityImpl.AsyncBeforeUpdate delegateAsyncBeforeUpdate
protected ActivityImpl.AsyncAfterUpdate delegateAsyncAfterUpdate
public ActivityImpl(String id, ProcessDefinitionImpl processDefinition)
public TransitionImpl createOutgoingTransition()
public TransitionImpl createOutgoingTransition(String transitionId)
public TransitionImpl findOutgoingTransition(String transitionId)
PvmActivityfindOutgoingTransition in interface PvmActivitytransitionId - the id of the transition to findpublic String toString()
toString in class CoreActivityprotected void setOutgoingTransitions(List<TransitionImpl> outgoingTransitions)
protected void setIncomingTransitions(List<TransitionImpl> incomingTransitions)
public List<PvmTransition> getOutgoingTransitions()
getOutgoingTransitions in interface PvmActivitypublic ActivityBehavior getActivityBehavior()
PvmActivitystart listeners have been executed.
In case the activity is scope, a new execution will be createdgetActivityBehavior in interface PvmActivitygetActivityBehavior in class CoreActivitypublic void setActivityBehavior(ActivityBehavior activityBehavior)
public ActivityStartBehavior getActivityStartBehavior()
PvmActivitystart listeners of the activity are executed.getActivityStartBehavior in interface PvmActivitypublic void setActivityStartBehavior(ActivityStartBehavior activityStartBehavior)
public List<PvmTransition> getIncomingTransitions()
getIncomingTransitions in interface PvmActivitypublic boolean isScope()
PvmScope
Note: the fact that this is a scope does not mean that it is also a
sub process scope.
public void setScope(boolean isScope)
public boolean isAsyncBefore()
PvmActivityactivity start behavior and
before the start listeners are invoked.isAsyncBefore in interface PvmActivitypublic void setAsyncBefore(boolean isAsyncBefore)
public void setAsyncBefore(boolean isAsyncBefore,
boolean exclusive)
public boolean isAsyncAfter()
PvmActivityend listeners are invoked.isAsyncAfter in interface PvmActivitypublic void setAsyncAfter(boolean isAsyncAfter)
public void setAsyncAfter(boolean isAsyncAfter,
boolean exclusive)
public String getActivityId()
public ScopeImpl getFlowScope()
PvmScope
Note: in order to ensure backwards compatible behavior, a flow scope is not necessarily
a a scope. Example: event sub processes.
getFlowScope in interface PvmScopepublic ScopeImpl getEventScope()
PvmScopeflow scope..
Consider: boundary events have a different event scope than flow scope.
The event scope is always a scope.
getEventScope in interface PvmScopepublic void setEventScope(ScopeImpl eventScope)
public PvmScope getLevelOfSubprocessScope()
PvmScopegetLevelOfSubprocessScope in interface PvmScopepublic int getX()
getX in interface HasDIBoundspublic void setX(int x)
setX in interface HasDIBoundspublic int getY()
getY in interface HasDIBoundspublic void setY(int y)
setY in interface HasDIBoundspublic int getWidth()
getWidth in interface HasDIBoundspublic void setWidth(int width)
setWidth in interface HasDIBoundspublic int getHeight()
getHeight in interface HasDIBoundspublic void setHeight(int height)
setHeight in interface HasDIBoundspublic ActivityImpl getParentFlowScopeActivity()
public ActivityImpl.AsyncBeforeUpdate getDelegateAsyncBeforeUpdate()
public void setDelegateAsyncBeforeUpdate(ActivityImpl.AsyncBeforeUpdate delegateAsyncBeforeUpdate)
public ActivityImpl.AsyncAfterUpdate getDelegateAsyncAfterUpdate()
public void setDelegateAsyncAfterUpdate(ActivityImpl.AsyncAfterUpdate delegateAsyncAfterUpdate)
Copyright © 2018. All rights reserved.