Package org.camunda.bpm.engine.impl.pvm
Interface PvmActivity
-
- All Superinterfaces:
PvmProcessElement,PvmScope,java.io.Serializable
- All Known Implementing Classes:
ActivityImpl
public interface PvmActivity extends PvmScope
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PvmTransitionfindOutgoingTransition(java.lang.String transitionId)Finds and returns an outgoing sequence flow (transition) by it's id.ActivityBehaviorgetActivityBehavior()The inner behavior of an activity.ActivityStartBehaviorgetActivityStartBehavior()The start behavior of an activity.java.util.List<PvmTransition>getIncomingTransitions()java.util.List<PvmTransition>getOutgoingTransitions()booleanisAsyncAfter()Indicates whether execution after this execution should continue asynchronously.booleanisAsyncBefore()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 Detail
-
getActivityBehavior
ActivityBehavior getActivityBehavior()
The inner behavior of an activity. The inner behavior is the logic which is executed after thestartlisteners 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 thestartlisteners of the activity are executed.- Returns:
- the start behavior of an activity.
-
findOutgoingTransition
PvmTransition findOutgoingTransition(java.lang.String transitionId)
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
java.util.List<PvmTransition> getOutgoingTransitions()
- Returns:
- the list of outgoing sequence flows (transitions)
-
getIncomingTransitions
java.util.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 behaviorand before thestartlisteners 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 theendlisteners are invoked.- Returns:
- true if execution after this activity continues asynchronously.
-
-