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, skipCustomListeners
cachedElContext
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, setSkipCustomListeners
collectVariableNames, 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, setVariablesLocal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
interruptScope
getProcessDefinitionId, getProcessInstanceId
getBusinessKey, getEventName, getId
getVariable, 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, setVariablesLocal
getBpmnModelElementInstance, getBpmnModelInstance
getProcessEngineServices
getVariable, getVariables, hasVariable, setVariable
protected 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 ActivityExecution
public abstract PvmExecutionImpl createExecution(boolean initStartContext)
ActivityExecution
createExecution
in interface ActivityExecution
public PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition)
ActivityExecution
createSubProcessInstance
in interface ActivityExecution
processDefinition
- The PvmProcessDefinition
of the subprocess.public abstract PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
createSubProcessInstance
in interface ActivityExecution
processDefinition
- 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 ActivityExecution
processDefinition
- 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 PvmProcessInstance
public void start(Map<String,Object> variables)
start
in interface PvmProcessInstance
public void destroy()
protected void removeEventScopes()
public void cancelScope(String reason)
cancelScope
in interface ActivityExecution
public void end(boolean completeScope)
end
in interface ActivityExecution
completeScope
- true if ending the execution contributes to completing the BPMN 2.0 scopepublic void endCompensation()
ActivityExecution
endCompensation
in interface ActivityExecution
public void remove()
remove
in interface ActivityExecution
public void deleteCascade(String deleteReason)
deleteCascade
in interface PvmProcessInstance
public 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 ActivityExecution
signal
in interface PvmExecution
public void take(PvmTransition transition)
ActivityExecution
take
in interface ActivityExecution
public void executeActivity(PvmActivity activity)
ActivityExecution
ActivityBehavior
associated with the given activity.executeActivity
in interface ActivityExecution
public List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
ActivityExecution
findInactiveConcurrentExecutions
in interface ActivityExecution
protected List<PvmExecutionImpl> getAllChildExecutions()
public void takeAll(List<PvmTransition> _transitions, List<? extends ActivityExecution> _recyclableExecutions)
ActivityExecution
takeAll
in interface ActivityExecution
protected boolean hasConcurrentSiblings(PvmExecutionImpl concurrentRoot)
protected boolean allExecutionsInSameActivity(List<PvmExecutionImpl> executions)
public boolean isActive(String activityId)
public void inactivate()
ActivityExecution
inactivate
in interface ActivityExecution
public abstract List<? extends PvmExecutionImpl> getExecutions()
ActivityExecution
getExecutions
in interface ActivityExecution
public PvmExecutionImpl findExecution(String activityId)
findExecution
in interface PvmProcessInstance
public List<String> findActiveActivityIds()
findActiveActivityIds
in interface PvmProcessInstance
public String getProcessBusinessKey()
DelegateExecution
getProcessBusinessKey
in interface DelegateExecution
public 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 ActivityExecution
getActivity
in interface PvmExecution
public String getActivityId()
public String getCurrentActivityName()
DelegateExecution
getCurrentActivityName
in interface DelegateExecution
public String getCurrentActivityId()
DelegateExecution
getCurrentActivityId
in interface DelegateExecution
public void setActivity(PvmActivity activity)
setActivity
in interface ActivityExecution
public void enterActivityInstance()
ActivityExecution
enterActivityInstance
in interface ActivityExecution
public void leaveActivityInstance()
ActivityExecution
leaveActivityInstance
in interface ActivityExecution
public String getParentActivityInstanceId()
ActivityExecution
getParentActivityInstanceId
in interface DelegateExecution
getParentActivityInstanceId
in interface ActivityExecution
public void forceUpdateActivityInstance()
public void setActivityInstanceId(String activityInstanceId)
setActivityInstanceId
in interface ActivityExecution
public String getActivityInstanceId()
ActivityExecution
getActivityInstanceId
in interface DelegateExecution
getActivityInstanceId
in interface ActivityExecution
public abstract PvmExecutionImpl getParent()
getParent
in interface ActivityExecution
public String getParentId()
DelegateExecution
getParentId
in interface DelegateExecution
public 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()
ActivityExecution
isScope
in interface ActivityExecution
public void setScope(boolean isScope)
ActivityExecution
setScope
in interface ActivityExecution
protected String getToStringIdentity()
public String getVariableScopeKey()
getVariableScopeKey
in interface VariableScope
getVariableScopeKey
in class AbstractVariableScope
public AbstractVariableScope getParentVariableScope()
getParentVariableScope
in class AbstractVariableScope
public String getDeleteReason()
public void setDeleteReason(String deleteReason)
public boolean isDeleteRoot()
public TransitionImpl getTransition()
public String getCurrentTransitionId()
DelegateExecution
getCurrentTransitionId
in interface DelegateExecution
public TransitionImpl getTransitionBeingTaken()
public void setTransition(TransitionImpl transition)
public void setTransitionBeingTaken(TransitionImpl transitionBeingTaken)
public boolean isConcurrent()
ActivityExecution
isConcurrent
in interface ActivityExecution
public void setConcurrent(boolean isConcurrent)
ActivityExecution
setConcurrent
in interface ActivityExecution
public boolean isActive()
ActivityExecution
isActive
in interface ActivityExecution
public void setActive(boolean isActive)
ActivityExecution
setActive
in interface ActivityExecution
public boolean isEnded()
ActivityExecution
isEnded
in interface ActivityExecution
isEnded
in interface PvmProcessInstance
public boolean isCanceled()
ActivityExecution
isCanceled
in interface ActivityExecution
public void setCanceled(boolean canceled)
public boolean isCompleteScope()
ActivityExecution
isCompleteScope
in interface ActivityExecution
public 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()
ActivityExecution
getNextActivity
in interface ActivityExecution
public boolean isProcessInstanceExecution()
ActivityExecution
isProcessInstanceExecution
in interface ActivityExecution
public ProcessInstanceStartContext getProcessInstanceStartContext()
public void setStartContext(ExecutionStartContext startContext)
Copyright © 2018. All rights reserved.