public interface ActivityExecution extends DelegateExecution
Modifier and Type | Method and Description |
---|---|
ActivityExecution |
createExecution()
creates a new execution.
|
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance.
|
void |
destroyScope(String reason)
Called when an execution is interrupted.
|
void |
end()
ends this execution.
|
void |
executeActivity(PvmActivity activity)
Executes the
ActivityBehavior associated with the given activity. |
List<ActivityExecution> |
findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity.
|
PvmActivity |
getActivity()
returns the current
PvmActivity of the execution. |
List<? extends ActivityExecution> |
getExecutions()
returns the list of execution of which this execution the parent of.
|
ActivityExecution |
getParent()
returns the parent of this execution, or null if there no parent.
|
void |
inactivate()
Inactivates this execution.
|
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isConcurrent()
returns whether this execution is concurrent or not.
|
boolean |
isEnded()
returns whether this execution has ended or not.
|
boolean |
isProcessInstanceType()
returns whether this execution is a process instance or not.
|
boolean |
isScope()
Returns whether this execution is a scope.
|
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not
|
void |
take(PvmTransition transition)
leaves the current activity by taking the given transition.
|
void |
takeAll(List<PvmTransition> outgoingTransitions,
List<ActivityExecution> joinedExecutions)
Takes the given outgoing transitions, and potentially reusing
the given list of executions that were previously joined.
|
getCurrentActivityId, getCurrentFlowElement, getEventName, getId, getParentId, getProcessDefinitionId, getProcessInstanceBusinessKey, getProcessInstanceId, getRootProcessInstanceId, getSuperExecutionId, getTenantId, isMultiInstanceRoot, setCurrentFlowElement, setMultiInstanceRoot
createVariableLocal, getVariable, getVariable, getVariable, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, getVariableValues, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
PvmActivity getActivity()
PvmActivity
of the execution.void take(PvmTransition transition)
ActivityExecution createExecution()
PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
processDefinition
- The PvmProcessDefinition
of the subprocess.ActivityExecution getParent()
getParent
in interface DelegateExecution
List<? extends ActivityExecution> getExecutions()
getExecutions
in interface DelegateExecution
void end()
void setActive(boolean isActive)
setActive
in interface DelegateExecution
boolean isActive()
isActive
in interface DelegateExecution
boolean isEnded()
isEnded
in interface DelegateExecution
void setConcurrent(boolean isConcurrent)
setConcurrent
in interface DelegateExecution
boolean isConcurrent()
isConcurrent
in interface DelegateExecution
boolean isProcessInstanceType()
isProcessInstanceType
in interface DelegateExecution
void inactivate()
inactivate
in interface DelegateExecution
boolean isScope()
isScope
in interface DelegateExecution
void setScope(boolean isScope)
setScope
in interface DelegateExecution
List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
void takeAll(List<PvmTransition> outgoingTransitions, List<ActivityExecution> joinedExecutions)
void executeActivity(PvmActivity activity)
ActivityBehavior
associated with the given activity.void destroyScope(String reason)
Copyright © 2015 Alfresco. All rights reserved.