public class ExecutionEntity extends PvmExecutionImpl implements Execution, ProcessInstance, DbEntity, HasDbRevision, HasDbReferences
Modifier and Type | Field and Description |
---|---|
protected String |
activityId
persisted reference to the current position in the diagram within the
PvmExecutionImpl.processDefinition . |
protected String |
activityName
The name of the current activity position
|
protected int |
cachedEntityState |
static int |
EVENT_SUBSCRIPTIONS_STATE_BIT |
protected List<EventSubscriptionEntity> |
eventSubscriptions |
protected List<ExecutionEntity> |
executions
nested executions representing scopes or concurrent paths
|
static int |
INCIDENT_STATE_BIT |
protected List<IncidentEntity> |
incidents |
protected List<JobEntity> |
jobs |
static int |
JOBS_STATE_BIT |
protected ExecutionEntity |
parent
the parent execution
|
protected String |
parentId
persisted reference to the parent of this execution.
|
protected String |
processDefinitionId
persisted reference to the processDefinition.
|
protected ExecutionEntity |
processInstance
the process instance.
|
protected String |
processInstanceId
persisted reference to the process instance.
|
protected int |
revision |
protected boolean |
shouldQueryForSubCaseInstance |
protected boolean |
shouldQueryForSubprocessInstance |
static int |
SUB_CASE_INSTANCE_STATE_BIT |
static int |
SUB_PROCESS_INSTANCE_STATE_BIT |
protected CaseExecutionEntity |
subCaseInstance
reference to a subcaseinstance, not-null if currently subcase is started from this execution
|
protected ExecutionEntity |
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution
|
protected CaseExecutionEntity |
superCaseExecution
super case execution, not-null if this execution is part of a case execution
|
protected String |
superCaseExecutionId
persisted reference to the super case execution of this execution
|
protected ExecutionEntity |
superExecution
super execution, not-null if this execution is part of a subprocess
|
protected String |
superExecutionId
persisted reference to the super execution of this execution
|
protected int |
suspensionState |
protected List<TaskEntity> |
tasks |
static int |
TASKS_STATE_BIT |
static int |
VARIABLES_STATE_BIT |
protected ExecutionEntityVariableStore |
variableStore |
activity, activityInstanceId, activityInstanceState, caseInstanceId, deleteReason, deleteRoot, isActive, isConcurrent, isEnded, isEventScope, isScope, nextActivity, preserveScope, processDefinition, replacedBy, sequenceCounter, startContext, transition, transitionsToTake
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping
cachedElContext
Constructor and Description |
---|
ExecutionEntity() |
Modifier and Type | Method and Description |
---|---|
void |
addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity) |
void |
addIncident(IncidentEntity incident) |
void |
addJob(JobEntity jobEntity) |
void |
addTask(TaskEntity taskEntity) |
protected void |
clearExecution() |
ExecutionEntity |
createExecution()
creates a new execution.
|
ExecutionEntity |
createExecution(boolean initializeExecutionStartContext)
creates a new execution.
|
protected static ExecutionEntity |
createNewExecution() |
CaseExecutionEntity |
createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Creates a new sub case instance.
|
CaseExecutionEntity |
createSubCaseInstance(CmmnCaseDefinition caseDefinition,
String businessKey)
Creates a new sub case instance.
|
ExecutionEntity |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey,
String caseInstanceId) |
void |
deleteCascade2(String deleteReason) |
void |
destroy()
Method used for destroying a scope in a way that the execution can be removed afterwards.
|
protected void |
ensureActivityInitialized()
must be called before the activity member field or getActivity() is called
|
protected void |
ensureEventSubscriptionsInitialized() |
protected void |
ensureExecutionsInitialized() |
protected void |
ensureExecutionTreeInitialized()
Fetch all the executions inside the same process instance as list and then
reconstruct the complete execution tree.
|
protected void |
ensureIncidentsInitialized() |
protected void |
ensureJobsInitialized() |
protected void |
ensureNotSuspended() |
protected void |
ensureParentInitialized() |
protected void |
ensureProcessDefinitionInitialized()
for setting the process definition, this setter must be used as subclasses can override
|
protected void |
ensureProcessInstanceInitialized() |
protected void |
ensureSubCaseInstanceInitialized() |
protected void |
ensureSubProcessInstanceInitialized() |
protected void |
ensureSuperCaseExecutionInitialized() |
protected void |
ensureSuperExecutionInitialized() |
protected void |
ensureTasksInitialized() |
void |
fireHistoricActivityInstanceUpdate() |
void |
fireHistoricProcessStartEvent() |
void |
fireHistoricVariableInstanceCreateEvents() |
void |
forceUpdate() |
protected String |
generateActivityInstanceId(String activityId)
generates an activity instance id
|
ActivityImpl |
getActivity()
ensures initialization and returns the activity
|
String |
getActivityId() |
FlowElement |
getBpmnModelElementInstance()
Returns the currently executed Element in the BPMN Model.
|
BpmnModelInstance |
getBpmnModelInstance()
Returns the
BpmnModelInstance for the currently executed Bpmn Model |
int |
getCachedEntityState() |
int |
getCachedEntityStateRaw() |
List<CompensateEventSubscriptionEntity> |
getCompensateEventSubscriptions() |
List<CompensateEventSubscriptionEntity> |
getCompensateEventSubscriptions(String activityId) |
String |
getCurrentActivityId()
Gets the id of the current activity.
|
String |
getCurrentActivityName()
Gets the name of the current activity.
|
List<EventSubscriptionEntity> |
getEventSubscriptions() |
List<EventSubscriptionEntity> |
getEventSubscriptionsInternal() |
List<ExecutionEntity> |
getExecutions()
returns the list of execution of which this execution the parent of.
|
List<ExecutionEntity> |
getExecutionsAsCopy() |
IncidentEntity |
getIncidentByCauseIncidentId(String causeIncidentId) |
List<IncidentEntity> |
getIncidents() |
protected List<IncidentEntity> |
getIncidentsInternal() |
List<JobEntity> |
getJobs() |
protected List<JobEntity> |
getJobsInternal() |
ExecutionEntity |
getParent()
ensures initialization and returns the parent
|
String |
getParentId()
Gets the id of the parent of this execution.
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessBusinessKey()
The business key for the process instance this execution is associated
with.
|
ProcessDefinitionImpl |
getProcessDefinition()
ensures initialization and returns the process definition.
|
String |
getProcessDefinitionId()
The id of the process definition of the process instance.
|
ProcessEngineServices |
getProcessEngineServices()
Returns the
ProcessEngineServices providing access to the
public API of the process engine. |
ExecutionEntity |
getProcessInstance()
ensures initialization and returns the process instance.
|
String |
getProcessInstanceId()
Id of the root of the execution tree representing the process instance.
|
ProcessInstanceStartContext |
getProcessInstanceStartContext() |
Set<String> |
getReferencedEntityIds() |
ExecutionEntity |
getReplacedBy()
Returns an execution that has replaced this execution for executing activities in their shared scope.
|
int |
getRevision() |
int |
getRevisionNext() |
CaseExecutionEntity |
getSubCaseInstance() |
ExecutionEntity |
getSubProcessInstance() |
CaseExecutionEntity |
getSuperCaseExecution() |
String |
getSuperCaseExecutionId() |
ExecutionEntity |
getSuperExecution()
In case this delegate execution is the process instance execution
and this process instance was started by a call activity, this method
returns the execution which executed the call activity in the super process instance.
|
String |
getSuperExecutionId() |
int |
getSuspensionState() |
List<TaskEntity> |
getTasks() |
protected List<TaskEntity> |
getTasksInternal() |
protected String |
getToStringIdentity() |
protected CoreVariableStore |
getVariableStore() |
void |
inactivate()
Inactivates this execution.
|
void |
initialize() |
protected static void |
initializeAssociations(ExecutionEntity execution) |
void |
initializeTimerDeclarations() |
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
void |
insert() |
void |
interrupt(String reason,
boolean skipCustomListeners,
boolean skipIoMappings) |
boolean |
isActive(String activityId) |
protected boolean |
isAsyncStartEvent(ActivityImpl activity) |
protected boolean |
isAutoFireHistoryEvents() |
protected boolean |
isExecutingScopeLeafActivity() |
protected boolean |
isExecutionTreePrefetchEnabled() |
boolean |
isProcessInstanceExecution()
returns whether this execution is a process instance or not.
|
boolean |
isSuspended()
Indicates if the execution is suspended.
|
protected List<VariableInstanceEntity> |
loadVariableInstances() |
protected void |
moveActivityLocalJobsTo(ExecutionEntity other) |
protected void |
moveTasksTo(ExecutionEntity other) |
protected void |
moveVariablesTo(ExecutionEntity other) |
protected PvmExecutionImpl |
newExecution() |
void |
performOperation(AtomicOperation executionOperation) |
<T extends CoreExecution> |
performOperation(CoreAtomicOperation<T> operation) |
void |
performOperationSync(AtomicOperation executionOperation) |
<T extends CoreExecution> |
performOperationSync(CoreAtomicOperation<T> operation) |
void |
remove() |
protected void |
removeActivityJobs(String reason) |
void |
removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity) |
void |
removeEventSubscriptions() |
protected void |
removeEventSubscriptionsExceptCompensation() |
void |
removeIncident(IncidentEntity incident) |
void |
removeJob(JobEntity job) |
void |
removeTask(TaskEntity task) |
void |
replace(PvmExecutionImpl execution)
Replace an execution by this execution.
|
protected boolean |
requiresUnsuspendedExecution(AtomicOperation executionOperation) |
protected void |
scheduleAtomicOperationAsync(AtomicOperation executionOperation) |
void |
setActivity(PvmActivity activity) |
void |
setActivityId(String activityId) |
void |
setCachedEntityState(int cachedEntityState) |
void |
setExecutions(List<ExecutionEntity> executions) |
void |
setParentExecution(PvmExecutionImpl parent)
Use #setParent to also update the child execution sets
|
void |
setParentId(String parentId) |
void |
setProcessDefinition(ProcessDefinitionImpl processDefinition) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstance(PvmExecutionImpl processInstance) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRevision(int revision) |
void |
setSubCaseInstance(CmmnExecution subCaseInstance) |
void |
setSubProcessInstance(PvmExecutionImpl subProcessInstance) |
void |
setSuperCaseExecution(CmmnExecution superCaseExecution) |
void |
setSuperCaseExecutionId(String superCaseExecutionId) |
void |
setSuperExecution(PvmExecutionImpl superExecution) |
void |
setSuperExecutionId(String superExecutionId) |
void |
setSuspensionState(int suspensionState) |
void |
startWithFormProperties(VariableMap properties) |
String |
toString() |
clearScope, collectActiveActivityIds, collectExecutions, createActivityExecutionMapping, createActivityExecutionMapping, createConcurrentExecution, createSubProcessInstance, createSubProcessInstance, deleteCascade, deleteCascade, deleteCascade, disposeExecutionStartContext, disposeProcessInstanceStartContext, end, endCompensation, enterActivityInstance, executeActivities, executeActivitiesConcurrent, executeActivity, executeEventHandlerActivity, executeIoMapping, findActiveActivityIds, findExecution, findExecutionForFlowScope, findExecutionForScope, findExecutions, findInactiveConcurrentExecutions, forceUpdateActivityInstance, getActivityInstanceId, getActivityInstanceState, getAllChildExecutions, getCaseInstanceId, getCurrentTransitionId, getDeleteReason, getEventScopeExecutions, getExecutionStartContext, getFlowScopeExecution, getNextActivity, getNonEventScopeExecutions, getParentActivityInstanceId, getParentScopeExecution, getParentVariableScope, getScopeActivity, getSequenceCounter, getTransition, getTransitionsToTake, getVariableScopeKey, hasChildren, hasProcessInstanceStartContext, hasReplacedParent, incrementSequenceCounter, interrupt, isActive, isCanceled, isCompensationHandler, isCompensationThrowing, isCompleteScope, isConcurrent, isDeleteRoot, isEnded, isEventScope, isPreserveScope, isReplacedByParent, isScope, leaveActivityInstance, leaveActivityViaTransition, leaveActivityViaTransitions, propagateEnd, removeEventScopes, setActive, setActivityInstanceId, setCanceled, setCaseInstanceId, setCompleteScope, setConcurrent, setDeleteReason, setEventScope, setNextActivity, setParent, setPreserveScope, setScope, setSequenceCounter, setStartContext, setTransition, setTransitionsToTake, signal, start, start, startWithoutExecuting, take, tryPruneLastConcurrentChild
getBusinessKey, getEventName, getEventSource, getId, getListenerIndex, invokeListener, isSkipCustomListeners, isSkipIoMappings, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, 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
getBusinessKey, getCaseInstanceId
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
getVariable, getVariables, hasVariable, setVariable
public static final int EVENT_SUBSCRIPTIONS_STATE_BIT
public static final int TASKS_STATE_BIT
public static final int JOBS_STATE_BIT
public static final int INCIDENT_STATE_BIT
public static final int VARIABLES_STATE_BIT
public static final int SUB_PROCESS_INSTANCE_STATE_BIT
public static final int SUB_CASE_INSTANCE_STATE_BIT
protected transient ExecutionEntity processInstance
protected transient ExecutionEntity parent
protected transient List<ExecutionEntity> executions
protected transient ExecutionEntity superExecution
protected transient CaseExecutionEntity superCaseExecution
protected transient ExecutionEntity subProcessInstance
protected transient CaseExecutionEntity subCaseInstance
protected boolean shouldQueryForSubprocessInstance
protected boolean shouldQueryForSubCaseInstance
protected transient List<EventSubscriptionEntity> eventSubscriptions
protected transient List<TaskEntity> tasks
protected transient List<IncidentEntity> incidents
protected int cachedEntityState
protected transient ExecutionEntityVariableStore variableStore
protected int suspensionState
protected int revision
protected String processDefinitionId
protected String activityId
PvmExecutionImpl.processDefinition
.PvmExecutionImpl.activity
,
getActivity()
protected String activityName
protected String processInstanceId
getProcessInstance()
protected String parentId
getParent()
protected String superExecutionId
#setSuperExecution(ExecutionEntity)
protected String superCaseExecutionId
#setSuperCaseExecution(ExecutionEntity)
public ExecutionEntity createExecution()
PvmExecutionImpl
createExecution
in interface ActivityExecution
createExecution
in class PvmExecutionImpl
public ExecutionEntity createExecution(boolean initializeExecutionStartContext)
createExecution
in interface ActivityExecution
createExecution
in class PvmExecutionImpl
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
createSubProcessInstance
in interface ActivityExecution
createSubProcessInstance
in class PvmExecutionImpl
processDefinition
- The PvmProcessDefinition
of the subprocess.businessKey
- the business key of the process instancecaseInstanceId
- the case instance id of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)
protected static ExecutionEntity createNewExecution()
protected PvmExecutionImpl newExecution()
newExecution
in class PvmExecutionImpl
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
ActivityExecution
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
createSubCaseInstance
in interface ActivityExecution
createSubCaseInstance
in class PvmExecutionImpl
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
ActivityExecution
Creates a new sub case instance.
This
execution will be the super execution of the
created sub case instance.
createSubCaseInstance
in interface ActivityExecution
createSubCaseInstance
in class PvmExecutionImpl
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.businessKey
- The businessKey to be set on sub case instance.public void fireHistoricActivityInstanceUpdate()
public void initialize()
initialize
in class PvmExecutionImpl
public void initializeTimerDeclarations()
initializeTimerDeclarations
in class PvmExecutionImpl
protected static void initializeAssociations(ExecutionEntity execution)
public void startWithFormProperties(VariableMap properties)
public void fireHistoricProcessStartEvent()
fireHistoricProcessStartEvent
in class PvmExecutionImpl
public void destroy()
destroy
in interface ActivityExecution
destroy
in class PvmExecutionImpl
protected void clearExecution()
public void interrupt(String reason, boolean skipCustomListeners, boolean skipIoMappings)
interrupt
in class PvmExecutionImpl
protected void removeActivityJobs(String reason)
public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
performOperation
in class CoreExecution
public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
performOperationSync
in class CoreExecution
public void performOperation(AtomicOperation executionOperation)
public void performOperationSync(AtomicOperation executionOperation)
protected void ensureNotSuspended()
protected boolean requiresUnsuspendedExecution(AtomicOperation executionOperation)
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation)
public boolean isActive(String activityId)
isActive
in class PvmExecutionImpl
public void inactivate()
ActivityExecution
inactivate
in interface ActivityExecution
inactivate
in class PvmExecutionImpl
public List<ExecutionEntity> getExecutions()
ActivityExecution
getExecutions
in interface ActivityExecution
getExecutions
in class PvmExecutionImpl
public List<ExecutionEntity> getExecutionsAsCopy()
getExecutionsAsCopy
in class PvmExecutionImpl
protected void ensureExecutionsInitialized()
protected boolean isExecutionTreePrefetchEnabled()
public void setExecutions(List<ExecutionEntity> executions)
public String getProcessBusinessKey()
DelegateExecution
getProcessBusinessKey
in interface DelegateExecution
getProcessBusinessKey
in class PvmExecutionImpl
public ProcessDefinitionImpl getProcessDefinition()
getProcessDefinition
in class PvmExecutionImpl
public void setProcessDefinitionId(String processDefinitionId)
public String getProcessDefinitionId()
ProcessInstance
getProcessDefinitionId
in interface DelegateExecution
getProcessDefinitionId
in interface ProcessInstance
protected void ensureProcessDefinitionInitialized()
public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
setProcessDefinition
in class PvmExecutionImpl
public ExecutionEntity getProcessInstance()
getProcessInstance
in interface DelegateExecution
getProcessInstance
in class PvmExecutionImpl
protected void ensureProcessInstanceInitialized()
public void setProcessInstance(PvmExecutionImpl processInstance)
setProcessInstance
in class PvmExecutionImpl
public boolean isProcessInstanceExecution()
ActivityExecution
isProcessInstanceExecution
in interface ActivityExecution
isProcessInstanceExecution
in class PvmExecutionImpl
public ActivityImpl getActivity()
getActivity
in interface ActivityExecution
getActivity
in interface PvmExecution
getActivity
in class PvmExecutionImpl
public String getActivityId()
getActivityId
in class PvmExecutionImpl
protected void ensureActivityInitialized()
public void setActivity(PvmActivity activity)
setActivity
in interface ActivityExecution
setActivity
in class PvmExecutionImpl
protected String generateActivityInstanceId(String activityId)
generateActivityInstanceId
in class PvmExecutionImpl
public ExecutionEntity getParent()
getParent
in interface ActivityExecution
getParent
in class PvmExecutionImpl
protected void ensureParentInitialized()
public void setParentExecution(PvmExecutionImpl parent)
PvmExecutionImpl
setParentExecution
in class PvmExecutionImpl
public String getSuperExecutionId()
public ExecutionEntity getSuperExecution()
DelegateExecution
getSuperExecution
in interface DelegateExecution
getSuperExecution
in class PvmExecutionImpl
public void setSuperExecution(PvmExecutionImpl superExecution)
setSuperExecution
in class PvmExecutionImpl
protected void ensureSuperExecutionInitialized()
public ExecutionEntity getSubProcessInstance()
getSubProcessInstance
in class PvmExecutionImpl
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance
in class PvmExecutionImpl
protected void ensureSubProcessInstanceInitialized()
public String getSuperCaseExecutionId()
public void setSuperCaseExecutionId(String superCaseExecutionId)
public CaseExecutionEntity getSuperCaseExecution()
getSuperCaseExecution
in class PvmExecutionImpl
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
setSuperCaseExecution
in class PvmExecutionImpl
protected void ensureSuperCaseExecutionInitialized()
public CaseExecutionEntity getSubCaseInstance()
getSubCaseInstance
in class PvmExecutionImpl
public void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance
in class PvmExecutionImpl
protected void ensureSubCaseInstanceInitialized()
public void remove()
remove
in interface ActivityExecution
remove
in class PvmExecutionImpl
protected void removeEventSubscriptionsExceptCompensation()
public void removeEventSubscriptions()
public ExecutionEntity getReplacedBy()
PvmExecutionImpl
Returns an execution that has replaced this execution for executing activities in their shared scope.
Invariant: this execution and getReplacedBy() execute in the same scope.
getReplacedBy
in class PvmExecutionImpl
public void replace(PvmExecutionImpl execution)
PvmExecutionImpl
Replace an execution by this execution. The replaced execution has a pointer (PvmExecutionImpl.getReplacedBy()
) to this execution.
This pointer is maintained until the replaced execution is removed or this execution is removed/ended.
This is used for two cases: Execution tree expansion and execution tree compaction
------- | e1 | scope -------After:
------- | e1 | scope ------- | ------- | e2 | cc (no scope) -------e2 replaces e1: it should receive all entities associated with the activity currently executed by e1; these are tasks, (local) variables, jobs (specific for the activity, not the scope)
------- | e1 | scope ------- | ------- | e2 | cc (no scope) -------After:
------- | e1 | scope -------e1 replaces e2: it should receive all entities associated with the activity currently executed by e2; these are tasks, (all) variables, all jobs
replace
in class PvmExecutionImpl
PvmExecutionImpl.createConcurrentExecution()
,
PvmExecutionImpl.tryPruneLastConcurrentChild()
protected void moveTasksTo(ExecutionEntity other)
protected void moveActivityLocalJobsTo(ExecutionEntity other)
protected void moveVariablesTo(ExecutionEntity other)
protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected boolean isExecutingScopeLeafActivity()
protected List<VariableInstanceEntity> loadVariableInstances()
protected boolean isAutoFireHistoryEvents()
protected boolean isAsyncStartEvent(ActivityImpl activity)
public void fireHistoricVariableInstanceCreateEvents()
protected void ensureExecutionTreeInitialized()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public void insert()
public void deleteCascade2(String deleteReason)
deleteCascade2
in class PvmExecutionImpl
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public void forceUpdate()
forceUpdate
in interface ActivityExecution
public String toString()
toString
in class PvmExecutionImpl
protected String getToStringIdentity()
getToStringIdentity
in class PvmExecutionImpl
public List<EventSubscriptionEntity> getEventSubscriptionsInternal()
public List<EventSubscriptionEntity> getEventSubscriptions()
public List<CompensateEventSubscriptionEntity> getCompensateEventSubscriptions()
public List<CompensateEventSubscriptionEntity> getCompensateEventSubscriptions(String activityId)
protected void ensureEventSubscriptionsInitialized()
public void addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
public void removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
protected void ensureJobsInitialized()
public void addJob(JobEntity jobEntity)
public void removeJob(JobEntity job)
protected void ensureIncidentsInitialized()
protected List<IncidentEntity> getIncidentsInternal()
public List<IncidentEntity> getIncidents()
public void addIncident(IncidentEntity incident)
public void removeIncident(IncidentEntity incident)
public IncidentEntity getIncidentByCauseIncidentId(String causeIncidentId)
protected void ensureTasksInitialized()
protected List<TaskEntity> getTasksInternal()
public List<TaskEntity> getTasks()
public void addTask(TaskEntity taskEntity)
public void removeTask(TaskEntity task)
protected CoreVariableStore getVariableStore()
getVariableStore
in class AbstractVariableScope
public void setCachedEntityState(int cachedEntityState)
public int getCachedEntityState()
public int getCachedEntityStateRaw()
public String getProcessInstanceId()
Execution
Execution.getId()
if this execution is the process instance.getProcessInstanceId
in interface DelegateExecution
getProcessInstanceId
in interface Execution
public void setProcessInstanceId(String processInstanceId)
public String getParentId()
DelegateExecution
getParentId
in interface DelegateExecution
getParentId
in class PvmExecutionImpl
public void setParentId(String parentId)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public void setActivityId(String activityId)
public void setSuperExecutionId(String superExecutionId)
public Set<String> getReferencedEntityIds()
getReferencedEntityIds
in interface HasDbReferences
public int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
Execution
isSuspended
in interface Execution
isSuspended
in interface ProcessInstance
public ProcessInstanceStartContext getProcessInstanceStartContext()
getProcessInstanceStartContext
in class PvmExecutionImpl
public String getCurrentActivityId()
DelegateExecution
getCurrentActivityId
in interface DelegateExecution
getCurrentActivityId
in class PvmExecutionImpl
public String getCurrentActivityName()
DelegateExecution
getCurrentActivityName
in interface DelegateExecution
getCurrentActivityName
in class PvmExecutionImpl
public FlowElement getBpmnModelElementInstance()
BpmnModelExecutionContext
Returns the currently executed Element in the BPMN Model. This method returns a FlowElement
which may be casted
to the concrete type of the Bpmn Model Element currently executed.
If called from a Service ExecutionListener
, the method will return the corresponding FlowNode
for ExecutionListener.EVENTNAME_START
and ExecutionListener.EVENTNAME_END
and the corresponding
SequenceFlow
for ExecutionListener.EVENTNAME_TAKE
.
getBpmnModelElementInstance
in interface BpmnModelExecutionContext
FlowElement
corresponding to the current Bpmn Model Elementpublic BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContext
BpmnModelInstance
for the currently executed Bpmn ModelgetBpmnModelInstance
in interface BpmnModelExecutionContext
BpmnModelInstance
public ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAware
ProcessEngineServices
providing access to the
public API of the process engine.getProcessEngineServices
in interface ProcessEngineServicesAware
ProcessEngineServices
.Copyright © 2018. All rights reserved.