public abstract class PvmExecutionImpl extends CoreExecution implements ActivityExecution, PvmProcessInstance
| Modifier and Type | Field and Description |
|---|---|
protected ActivityImpl |
activity
current activity
|
protected String |
activityInstanceId
the unique id of the current activity instance
|
protected int |
activityInstanceState
marks the current activity instance
|
protected String |
caseInstanceId
the id of a case associated with this execution
|
protected String |
deleteReason |
protected boolean |
deleteRoot |
protected boolean |
isActive
indicates if this execution represents an active path of execution.
|
protected boolean |
isConcurrent |
protected boolean |
isEnded |
protected boolean |
isEventScope |
protected boolean |
isScope |
protected ActivityImpl |
nextActivity
the activity which is to be started next
|
protected ProcessDefinitionImpl |
processDefinition |
protected ProcessInstanceStartContext |
processInstanceStartContext |
protected ExecutionStartContext |
startContext |
protected TransitionImpl |
transition
current sequence flow.
|
protected TransitionImpl |
transitionBeingTaken
transition that will be taken.
|
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListenerscachedElContext| Constructor and Description |
|---|
PvmExecutionImpl() |
PvmExecutionImpl(ActivityImpl initialActivity) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allExecutionsInSameActivity(List<PvmExecutionImpl> executions) |
void |
cancelScope(String reason) |
protected void |
collectActiveActivityIds(List<String> activeActivityIds) |
PvmExecutionImpl |
createExecution()
creates a new execution.
|
abstract PvmExecutionImpl |
createExecution(boolean initStartContext)
creates a new execution.
|
PvmExecutionImpl |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance.
|
abstract PvmExecutionImpl |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey) |
abstract PvmExecutionImpl |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey,
String caseInstanceId) |
void |
deleteCascade(String deleteReason) |
void |
deleteCascade(String deleteReason,
boolean skipCustomListeners) |
void |
deleteCascade2(String deleteReason) |
void |
destroy() |
void |
disposeExecutionStartContext() |
void |
disposeProcessInstanceStartContext() |
void |
end(boolean completeScope)
removes an 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. |
List<String> |
findActiveActivityIds() |
PvmExecutionImpl |
findExecution(String activityId) |
List<ActivityExecution> |
findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity.
|
void |
forceUpdateActivityInstance() |
protected abstract String |
generateActivityInstanceId(String activityId) |
ActivityImpl |
getActivity()
ensures initialization and returns the activity
|
String |
getActivityId() |
String |
getActivityInstanceId()
return the Id of the activity instance currently executed by this execution
|
int |
getActivityInstanceState() |
protected List<PvmExecutionImpl> |
getAllChildExecutions() |
String |
getCaseInstanceId() |
String |
getCurrentActivityId()
Gets the id of the current activity.
|
String |
getCurrentActivityName()
Gets the name of the current activity.
|
String |
getCurrentTransitionId()
return the Id of the current transition
|
String |
getDeleteReason() |
abstract List<? extends PvmExecutionImpl> |
getExecutions()
returns the list of execution of which this execution the parent of.
|
ExecutionStartContext |
getExecutionStartContext() |
ActivityImpl |
getNextActivity()
An activity which is to be started next.
|
abstract PvmExecutionImpl |
getParent()
ensures initialization and returns the parent
|
String |
getParentActivityInstanceId()
return the Id of the parent activity instance currently executed by this execution
|
String |
getParentId()
Gets the id of the parent of this execution.
|
AbstractVariableScope |
getParentVariableScope() |
String |
getProcessBusinessKey()
The business key for the process instance this execution is associated with.
|
ProcessDefinitionImpl |
getProcessDefinition() |
abstract PvmExecutionImpl |
getProcessInstance()
ensures initialization and returns the process instance.
|
ProcessInstanceStartContext |
getProcessInstanceStartContext() |
abstract PvmExecutionImpl |
getReplacedBy() |
protected ScopeImpl |
getScopeActivity() |
abstract PvmExecutionImpl |
getSubProcessInstance() |
abstract CmmnExecution |
getSuperCaseExecution() |
abstract PvmExecutionImpl |
getSuperExecution() |
protected String |
getToStringIdentity() |
TransitionImpl |
getTransition() |
TransitionImpl |
getTransitionBeingTaken() |
String |
getVariableScopeKey() |
protected boolean |
hasConcurrentSiblings(PvmExecutionImpl concurrentRoot) |
void |
inactivate()
Inactivates this execution.
|
abstract void |
initialize() |
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isActive(String activityId) |
boolean |
isCanceled()
Returns whether this execution has been canceled.
|
boolean |
isCompleteScope()
Returns whether this execution completed the parent scope.
|
boolean |
isConcurrent()
returns whether this execution is concurrent or not.
|
boolean |
isDeleteRoot() |
boolean |
isEnded()
returns whether this execution has ended or not.
|
boolean |
isEventScope() |
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 |
remove() |
protected void |
removeEventScopes() |
void |
replace(PvmExecutionImpl execution) |
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setActivity(PvmActivity activity) |
void |
setActivityInstanceId(String activityInstanceId) |
void |
setCanceled(boolean canceled) |
void |
setCaseInstanceId(String caseInstanceId) |
void |
setCompleteScope(boolean completeScope) |
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setDeleteReason(String deleteReason) |
void |
setEventScope(boolean isEventScope) |
abstract void |
setParent(PvmExecutionImpl parent) |
void |
setProcessDefinition(ProcessDefinitionImpl processDefinition) |
abstract void |
setProcessInstance(PvmExecutionImpl pvmExecutionImpl) |
void |
setReplacedBy(PvmExecutionImpl replacedBy) |
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not
|
void |
setStartContext(ExecutionStartContext startContext) |
abstract void |
setSubProcessInstance(PvmExecutionImpl subProcessInstance) |
abstract void |
setSuperCaseExecution(CmmnExecution superCaseExecution) |
abstract void |
setSuperExecution(PvmExecutionImpl superExecution) |
void |
setTransition(TransitionImpl transition) |
void |
setTransitionBeingTaken(TransitionImpl transitionBeingTaken) |
void |
signal(String signalName,
Object signalData) |
void |
start() |
void |
start(Map<String,Object> variables) |
void |
take(PvmTransition transition)
leaves the current activity by taking the given transition.
|
void |
takeAll(List<PvmTransition> _transitions,
List<? extends ActivityExecution> _recyclableExecutions)
Takes the given outgoing transitions, and potentially reusing
the given list of executions that were previously joined.
|
String |
toString() |
getBusinessKey, getEventName, getEventSource, getId, getListenerIndex, invokeListener, isSkipCustomListeners, performOperation, performOperationSync, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListenerscollectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariableStore, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinterruptScopegetProcessDefinitionId, getProcessInstanceIdgetBusinessKey, getEventName, getIdgetVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocalgetBpmnModelElementInstance, getBpmnModelInstancegetProcessEngineServicesgetVariable, getVariables, hasVariable, setVariableprotected transient ProcessDefinitionImpl processDefinition
protected transient ExecutionStartContext startContext
protected transient ProcessInstanceStartContext processInstanceStartContext
protected transient ActivityImpl activity
protected transient ActivityImpl nextActivity
protected transient TransitionImpl transition
protected transient TransitionImpl transitionBeingTaken
protected String activityInstanceId
protected String caseInstanceId
protected boolean deleteRoot
protected String deleteReason
protected boolean isActive
protected boolean isScope
protected boolean isConcurrent
protected boolean isEnded
protected boolean isEventScope
protected int activityInstanceState
public PvmExecutionImpl()
public PvmExecutionImpl(ActivityImpl initialActivity)
public PvmExecutionImpl createExecution()
createExecution in interface ActivityExecutionpublic abstract PvmExecutionImpl createExecution(boolean initStartContext)
ActivityExecutioncreateExecution in interface ActivityExecutionpublic PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition)
ActivityExecutioncreateSubProcessInstance in interface ActivityExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.public abstract PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
createSubProcessInstance in interface ActivityExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)public abstract PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
createSubProcessInstance in interface ActivityExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instancecaseInstanceId - the case instance id of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)public abstract void initialize()
public void start()
start in interface PvmProcessInstancepublic void start(Map<String,Object> variables)
start in interface PvmProcessInstancepublic void destroy()
protected void removeEventScopes()
public void cancelScope(String reason)
cancelScope in interface ActivityExecutionpublic void end(boolean completeScope)
end in interface ActivityExecutioncompleteScope - true if ending the execution contributes to completing the BPMN 2.0 scopepublic void endCompensation()
ActivityExecutionendCompensation in interface ActivityExecutionpublic void remove()
remove in interface ActivityExecutionpublic void deleteCascade(String deleteReason)
deleteCascade in interface PvmProcessInstancepublic void deleteCascade(String deleteReason, boolean skipCustomListeners)
public void deleteCascade2(String deleteReason)
public abstract PvmExecutionImpl getReplacedBy()
public void setReplacedBy(PvmExecutionImpl replacedBy)
public void replace(PvmExecutionImpl execution)
public void signal(String signalName, Object signalData)
signal in interface ActivityExecutionsignal in interface PvmExecutionpublic void take(PvmTransition transition)
ActivityExecutiontake in interface ActivityExecutionpublic void executeActivity(PvmActivity activity)
ActivityExecutionActivityBehavior associated with the given activity.executeActivity in interface ActivityExecutionpublic List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
ActivityExecutionfindInactiveConcurrentExecutions in interface ActivityExecutionprotected List<PvmExecutionImpl> getAllChildExecutions()
public void takeAll(List<PvmTransition> _transitions, List<? extends ActivityExecution> _recyclableExecutions)
ActivityExecutiontakeAll in interface ActivityExecutionprotected boolean hasConcurrentSiblings(PvmExecutionImpl concurrentRoot)
protected boolean allExecutionsInSameActivity(List<PvmExecutionImpl> executions)
public boolean isActive(String activityId)
public void inactivate()
ActivityExecutioninactivate in interface ActivityExecutionpublic abstract List<? extends PvmExecutionImpl> getExecutions()
ActivityExecutiongetExecutions in interface ActivityExecutionpublic PvmExecutionImpl findExecution(String activityId)
findExecution in interface PvmProcessInstancepublic List<String> findActiveActivityIds()
findActiveActivityIds in interface PvmProcessInstancepublic String getProcessBusinessKey()
DelegateExecutiongetProcessBusinessKey in interface DelegateExecutionpublic void setProcessDefinition(ProcessDefinitionImpl processDefinition)
public ProcessDefinitionImpl getProcessDefinition()
public abstract PvmExecutionImpl getProcessInstance()
public abstract void setProcessInstance(PvmExecutionImpl pvmExecutionImpl)
public String getCaseInstanceId()
public void setCaseInstanceId(String caseInstanceId)
public ActivityImpl getActivity()
getActivity in interface ActivityExecutiongetActivity in interface PvmExecutionpublic String getActivityId()
public String getCurrentActivityName()
DelegateExecutiongetCurrentActivityName in interface DelegateExecutionpublic String getCurrentActivityId()
DelegateExecutiongetCurrentActivityId in interface DelegateExecutionpublic void setActivity(PvmActivity activity)
setActivity in interface ActivityExecutionpublic void enterActivityInstance()
ActivityExecutionenterActivityInstance in interface ActivityExecutionpublic void leaveActivityInstance()
ActivityExecutionleaveActivityInstance in interface ActivityExecutionpublic String getParentActivityInstanceId()
ActivityExecutiongetParentActivityInstanceId in interface DelegateExecutiongetParentActivityInstanceId in interface ActivityExecutionpublic void forceUpdateActivityInstance()
public void setActivityInstanceId(String activityInstanceId)
setActivityInstanceId in interface ActivityExecutionpublic String getActivityInstanceId()
ActivityExecutiongetActivityInstanceId in interface DelegateExecutiongetActivityInstanceId in interface ActivityExecutionpublic abstract PvmExecutionImpl getParent()
getParent in interface ActivityExecutionpublic String getParentId()
DelegateExecutiongetParentId in interface DelegateExecutionpublic abstract void setParent(PvmExecutionImpl parent)
public abstract PvmExecutionImpl getSuperExecution()
public abstract void setSuperExecution(PvmExecutionImpl superExecution)
public abstract PvmExecutionImpl getSubProcessInstance()
public abstract void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
public abstract CmmnExecution getSuperCaseExecution()
public abstract void setSuperCaseExecution(CmmnExecution superCaseExecution)
protected ScopeImpl getScopeActivity()
public boolean isScope()
ActivityExecutionisScope in interface ActivityExecutionpublic void setScope(boolean isScope)
ActivityExecutionsetScope in interface ActivityExecutionprotected String getToStringIdentity()
public String getVariableScopeKey()
getVariableScopeKey in interface VariableScopegetVariableScopeKey in class AbstractVariableScopepublic AbstractVariableScope getParentVariableScope()
getParentVariableScope in class AbstractVariableScopepublic String getDeleteReason()
public void setDeleteReason(String deleteReason)
public boolean isDeleteRoot()
public TransitionImpl getTransition()
public String getCurrentTransitionId()
DelegateExecutiongetCurrentTransitionId in interface DelegateExecutionpublic TransitionImpl getTransitionBeingTaken()
public void setTransition(TransitionImpl transition)
public void setTransitionBeingTaken(TransitionImpl transitionBeingTaken)
public boolean isConcurrent()
ActivityExecutionisConcurrent in interface ActivityExecutionpublic void setConcurrent(boolean isConcurrent)
ActivityExecutionsetConcurrent in interface ActivityExecutionpublic boolean isActive()
ActivityExecutionisActive in interface ActivityExecutionpublic void setActive(boolean isActive)
ActivityExecutionsetActive in interface ActivityExecutionpublic boolean isEnded()
ActivityExecutionisEnded in interface ActivityExecutionisEnded in interface PvmProcessInstancepublic boolean isCanceled()
ActivityExecutionisCanceled in interface ActivityExecutionpublic void setCanceled(boolean canceled)
public boolean isCompleteScope()
ActivityExecutionisCompleteScope in interface ActivityExecutionpublic void setCompleteScope(boolean completeScope)
public int getActivityInstanceState()
public boolean isEventScope()
public void setEventScope(boolean isEventScope)
public ExecutionStartContext getExecutionStartContext()
public void disposeProcessInstanceStartContext()
public void disposeExecutionStartContext()
public ActivityImpl getNextActivity()
ActivityExecutiongetNextActivity in interface ActivityExecutionpublic boolean isProcessInstanceExecution()
ActivityExecutionisProcessInstanceExecution in interface ActivityExecutionpublic ProcessInstanceStartContext getProcessInstanceStartContext()
public void setStartContext(ExecutionStartContext startContext)
Copyright © 2018. All rights reserved.