public interface ActivityExecution extends DelegateExecution
Modifier and Type | Method and Description |
---|---|
Map<ScopeImpl,PvmExecutionImpl> |
createActivityExecutionMapping()
Returns a mapping from scope activities to scope executions for all scopes that
are ancestors of the activity currently executed by this execution.
|
ActivityExecution |
createExecution()
creates a new execution.
|
ActivityExecution |
createExecution(boolean initializeExecutionStartContext)
creates a new execution.
|
CmmnCaseInstance |
createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Creates a new sub case instance.
|
CmmnCaseInstance |
createSubCaseInstance(CmmnCaseDefinition caseDefinition,
String businessKey)
Creates a new sub case instance.
|
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance.
|
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey) |
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey,
String caseInstanceId) |
void |
destroy() |
void |
end(boolean isScopeComplete)
ends this execution.
|
void |
endCompensation()
Execution finished compensation.
|
void |
enterActivityInstance()
invoked to notify the execution that a new activity instance is started
|
void |
executeActivity(PvmActivity activity)
Executes the
ActivityBehavior associated with the given activity. |
ActivityExecution |
findExecutionForFlowScope(PvmScope targetScope)
Assumption: the current execution is active and executing an activity (
getActivity() is not null). |
List<ActivityExecution> |
findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity.
|
void |
forceUpdate() |
PvmActivity |
getActivity()
returns the current
PvmActivity of the execution. |
String |
getActivityInstanceId()
return the Id of the activity instance currently executed by this execution
|
List<? extends ActivityExecution> |
getExecutions()
returns the list of execution of which this execution the parent of.
|
PvmActivity |
getNextActivity()
An activity which is to be started next.
|
List<? extends ActivityExecution> |
getNonEventScopeExecutions()
returns child executions that are not event scope executions.
|
ActivityExecution |
getParent()
returns the parent of this execution, or null if there no parent.
|
String |
getParentActivityInstanceId()
return the Id of the parent activity instance currently executed by this execution
|
TransitionImpl |
getTransition() |
boolean |
hasChildren() |
void |
inactivate()
Inactivates this execution.
|
void |
interrupt(String reason)
Called when an execution is interrupted.
|
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isCompleteScope()
Returns whether this execution completed the parent scope.
|
boolean |
isConcurrent()
returns whether this execution is concurrent or not.
|
boolean |
isEnded()
returns whether this execution has ended or not.
|
boolean |
isProcessInstanceExecution()
returns whether this execution is a process instance or not.
|
boolean |
isScope()
Returns whether this execution is a scope.
|
void |
leaveActivityInstance()
invoked to notify the execution that an activity instance is ended.
|
void |
leaveActivityViaTransition(PvmTransition outgoingTransition) |
void |
leaveActivityViaTransitions(List<PvmTransition> outgoingTransitions,
List<? extends ActivityExecution> joinedExecutions)
Takes the given outgoing transitions, and potentially reusing
the given list of executions that were previously joined.
|
void |
remove() |
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setActivity(PvmActivity activity) |
void |
setActivityInstanceId(String id) |
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setEnded(boolean b) |
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not
|
void |
signal(String string,
Object signalData) |
boolean |
tryPruneLastConcurrentChild() |
getCurrentActivityId, getCurrentActivityName, getCurrentTransitionId, getParentId, getProcessBusinessKey, getProcessDefinitionId, getProcessInstance, getProcessInstanceId, getSuperExecution, isCanceled
getBusinessKey, getEventName, getId
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
getBpmnModelElementInstance, getBpmnModelInstance
getProcessEngineServices
PvmActivity getActivity()
PvmActivity
of the execution.void enterActivityInstance()
void leaveActivityInstance()
void setActivityInstanceId(String id)
String getActivityInstanceId()
getActivityInstanceId
in interface DelegateExecution
String getParentActivityInstanceId()
getParentActivityInstanceId
in interface DelegateExecution
ActivityExecution createExecution()
ActivityExecution createExecution(boolean initializeExecutionStartContext)
PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
processDefinition
- The PvmProcessDefinition
of the subprocess.PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
processDefinition
- The PvmProcessDefinition
of the subprocess.businessKey
- the business key of the process instancecreateSubProcessInstance(PvmProcessDefinition)
PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
processDefinition
- The PvmProcessDefinition
of the subprocess.businessKey
- the business key of the process instancecaseInstanceId
- the case instance id of the process instancecreateSubProcessInstance(PvmProcessDefinition)
CmmnCaseInstance createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.CmmnCaseInstance createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.businessKey
- The businessKey to be set on sub case instance.ActivityExecution getParent()
List<? extends ActivityExecution> getExecutions()
List<? extends ActivityExecution> getNonEventScopeExecutions()
boolean hasChildren()
void end(boolean isScopeComplete)
void endCompensation()
void setActive(boolean isActive)
boolean isActive()
boolean isEnded()
void setConcurrent(boolean isConcurrent)
boolean isConcurrent()
boolean isProcessInstanceExecution()
void inactivate()
boolean isScope()
void setScope(boolean isScope)
boolean isCompleteScope()
List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
void leaveActivityViaTransitions(List<PvmTransition> outgoingTransitions, List<? extends ActivityExecution> joinedExecutions)
void leaveActivityViaTransition(PvmTransition outgoingTransition)
void executeActivity(PvmActivity activity)
ActivityBehavior
associated with the given activity.void interrupt(String reason)
PvmActivity getNextActivity()
void remove()
void destroy()
void setActivity(PvmActivity activity)
boolean tryPruneLastConcurrentChild()
void forceUpdate()
TransitionImpl getTransition()
ActivityExecution findExecutionForFlowScope(PvmScope targetScope)
getActivity()
is not null).
For a given target scope, this method returns the scope execution.targetScope
- scope activity or process definition for which the scope execution should be found;
must be an ancestor of the execution's current activityMap<ScopeImpl,PvmExecutionImpl> createActivityExecutionMapping()
getActivity()
is not null).void setEnded(boolean b)
Copyright © 2018. All rights reserved.