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.
|
ScopeImpl.BacklogErrorCallback
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 |
BACKLOG, eventActivities, flowActivities, isSubProcessScope, namedFlowActivities, processDefinition
ioMapping
builtInListeners, 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) |
ActivityImpl |
findCompensationHandler()
Find the compensation handler of this activity.
|
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 |
isCompensationHandler()
Indicates whether activity is for compensation.
|
boolean |
isMultiInstance()
Indicates whether activity is a multi instance activity.
|
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.
|
boolean |
isTriggeredByEvent() |
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, addToBacklog, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getBacklogErrorCallbacks, getChildActivity, getEventActivities, getExecutionListeners, getExecutionListeners, getProcessDefinition, isAncestorFlowScopeOf, isBacklogEmpty, isSubProcessScope, setSubProcessScope
createActivity, getIoMapping, setIoMapping
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, isSubProcessScope
getId, getProcessDefinition, getProperties, getProperty
protected 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)
PvmActivity
findOutgoingTransition
in interface PvmActivity
transitionId
- the id of the transition to findpublic String toString()
toString
in class CoreActivity
protected void setOutgoingTransitions(List<TransitionImpl> outgoingTransitions)
protected void setIncomingTransitions(List<TransitionImpl> incomingTransitions)
public List<PvmTransition> getOutgoingTransitions()
getOutgoingTransitions
in interface PvmActivity
public ActivityBehavior getActivityBehavior()
PvmActivity
start
listeners have been executed.
In case the activity is scope
, a new execution will be createdgetActivityBehavior
in interface PvmActivity
getActivityBehavior
in class CoreActivity
public void setActivityBehavior(ActivityBehavior activityBehavior)
public ActivityStartBehavior getActivityStartBehavior()
PvmActivity
start
listeners of the activity are executed.getActivityStartBehavior
in interface PvmActivity
public void setActivityStartBehavior(ActivityStartBehavior activityStartBehavior)
public List<PvmTransition> getIncomingTransitions()
getIncomingTransitions
in interface PvmActivity
public 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()
PvmActivity
activity start behavior
and
before the start
listeners are invoked.isAsyncBefore
in interface PvmActivity
public void setAsyncBefore(boolean isAsyncBefore)
public void setAsyncBefore(boolean isAsyncBefore, boolean exclusive)
public boolean isAsyncAfter()
PvmActivity
end
listeners are invoked.isAsyncAfter
in interface PvmActivity
public 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 PvmScope
public ScopeImpl getEventScope()
PvmScope
flow scope.
.
Consider: boundary events have a different event scope than flow scope.
The event scope is always a scope
.
getEventScope
in interface PvmScope
public void setEventScope(ScopeImpl eventScope)
public PvmScope getLevelOfSubprocessScope()
PvmScope
getLevelOfSubprocessScope
in interface PvmScope
public int getX()
getX
in interface HasDIBounds
public void setX(int x)
setX
in interface HasDIBounds
public int getY()
getY
in interface HasDIBounds
public void setY(int y)
setY
in interface HasDIBounds
public int getWidth()
getWidth
in interface HasDIBounds
public void setWidth(int width)
setWidth
in interface HasDIBounds
public int getHeight()
getHeight
in interface HasDIBounds
public void setHeight(int height)
setHeight
in interface HasDIBounds
public ActivityImpl getParentFlowScopeActivity()
public boolean isCompensationHandler()
public ActivityImpl findCompensationHandler()
null
, if this activity has no compensation handler.public boolean isMultiInstance()
public boolean isTriggeredByEvent()
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.