Package org.camunda.bpm.engine.impl.pvm
Interface PvmActivity
- All Superinterfaces:
PvmProcessElement
,PvmScope
,Serializable
- All Known Implementing Classes:
ActivityImpl
Defines an activity insisde a process. Note that the term "activity" is meant to be
understood in a broader sense than in BPMN: everything inside a process which can have incoming
or outgoing sequence flows (transitions) are activities. Examples: events, tasks, gateways,
subprocesses ...
- Author:
- Tom Baeyens, Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionfindOutgoingTransition
(String transitionId) Finds and returns an outgoing sequence flow (transition) by it's id.The inner behavior of an activity.The start behavior of an activity.boolean
Indicates whether execution after this execution should continue asynchronously.boolean
Indicates whether the activity is executed asynchronously.Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmProcessElement
getId, getProcessDefinition, getProperties, getProperty
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmScope
findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getEventScope, getFlowScope, getLevelOfSubprocessScope, isScope, isSubProcessScope
-
Method Details
-
getActivityBehavior
ActivityBehavior getActivityBehavior()The inner behavior of an activity. The inner behavior is the logic which is executed after thestart
listeners have been executed. In case the activityis scope
, a new execution will be created- Returns:
- the inner behavior of the activity
-
getActivityStartBehavior
ActivityStartBehavior getActivityStartBehavior()The start behavior of an activity. The start behavior is executed before thestart
listeners of the activity are executed.- Returns:
- the start behavior of an activity.
-
findOutgoingTransition
Finds and returns an outgoing sequence flow (transition) by it's id.- Parameters:
transitionId
- the id of the transition to find- Returns:
- the transition or null in case it cannot be found
-
getOutgoingTransitions
List<PvmTransition> getOutgoingTransitions()- Returns:
- the list of outgoing sequence flows (transitions)
-
getIncomingTransitions
List<PvmTransition> getIncomingTransitions()- Returns:
- the list of incoming sequence flows (transitions)
-
isAsyncBefore
boolean isAsyncBefore()Indicates whether the activity is executed asynchronously. This can be done after theactivity start behavior
and before thestart
listeners are invoked.- Returns:
- true if the activity is executed asynchronously.
-
isAsyncAfter
boolean isAsyncAfter()Indicates whether execution after this execution should continue asynchronously. This can be done after theend
listeners are invoked.- Returns:
- true if execution after this activity continues asynchronously.
-