|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.core.variable.CoreVariableScope
org.camunda.bpm.engine.impl.core.instance.CoreExecution
org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl
org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity
public class ExecutionEntity
| Field Summary | |
|---|---|
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 |
protected boolean |
forcedUpdate
|
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 ExecutionEntity |
replacedBy
when execution structure is pruned during a takeAll, then the original execution has to be resolved to the replaced execution. |
protected int |
revision
|
protected boolean |
shouldQueryForSubprocessInstance
|
static int |
SUB_PROCESS_INSTANCE_STATE_BIT
|
protected ExecutionEntity |
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from 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
|
| Fields inherited from class org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl |
|---|
activity, activityInstanceId, activityInstanceState, deleteReason, deleteRoot, isActive, isConcurrent, isEnded, isEventScope, isScope, nextActivity, processDefinition, processInstanceStartContext, startContext, transition, transitionBeingTaken |
| Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution |
|---|
businessKey, eventName, eventSource, id, listenerIndex |
| Fields inherited from class org.camunda.bpm.engine.impl.core.variable.CoreVariableScope |
|---|
cachedElContext |
| Constructor Summary | |
|---|---|
ExecutionEntity()
|
|
ExecutionEntity(ActivityImpl activityImpl)
|
|
| Method Summary | ||
|---|---|---|
void |
addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
|
|
void |
addIncident(IncidentEntity incident)
|
|
void |
addJob(JobEntity jobEntity)
|
|
void |
addTask(TaskEntity taskEntity)
|
|
void |
cancelScope(String reason)
|
|
ExecutionEntity |
createExecution()
creates a new execution. |
|
ExecutionEntity |
createExecution(boolean initializeExecutionStartContext)
creates a new execution. |
|
ExecutionEntity |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance. |
|
ExecutionEntity |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey)
|
|
void |
deleteCascade2(String deleteReason)
|
|
void |
destroy()
|
|
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 |
ensureSubProcessInstanceInitialized()
|
|
protected void |
ensureSuperExecutionInitialized()
|
|
protected void |
ensureTasksInitialized()
|
|
void |
fireHistoricVariableInstanceCreateEvents()
|
|
void |
forceUpdate()
|
|
protected String |
generateActivityInstanceId(String activityId)
generates an activity instance id |
|
ActivityImpl |
getActivity()
ensures initialization and returns the activity |
|
String |
getActivityId()
|
|
org.camunda.bpm.model.bpmn.instance.FlowElement |
getBpmnModelElementInstance()
Returns the currently executed Element in the BPMN Model. |
|
org.camunda.bpm.model.bpmn.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()
ensures initialization and returns the non-null executions list |
|
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()
|
|
ExecutionEntity |
getReplacedBy()
|
|
int |
getRevision()
|
|
int |
getRevisionNext()
|
|
ExecutionEntity |
getSubProcessInstance()
|
|
ExecutionEntity |
getSuperExecution()
|
|
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 void |
initializeAssociations(ExecutionEntity execution)
|
|
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
|
|
void |
insert()
|
|
void |
interruptScope(String reason)
Called when an execution is interrupted. |
|
boolean |
isActive(String activityId)
|
|
protected boolean |
isAutoFireHistoryEvents()
|
|
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 ExecutionEntity |
newExecution()
|
|
void |
performOperation(AtomicOperation executionOperation)
|
|
|
performOperation(CoreAtomicOperation<T> operation)
|
|
void |
performOperationSync(AtomicOperation executionOperation)
|
|
|
performOperationSync(CoreAtomicOperation<T> operation)
|
|
void |
remove()
|
|
void |
removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
|
|
void |
removeEventSubscriptions()
|
|
void |
removeIncident(IncidentEntity incident)
|
|
void |
removeJob(JobEntity job)
|
|
void |
removeTask(TaskEntity task)
|
|
void |
replace(PvmExecutionImpl execution)
|
|
protected boolean |
requiresUnsuspendedExecution(AtomicOperation executionOperation)
|
|
protected void |
scheduleAtomicOperationAsync(AtomicOperation executionOperation)
|
|
void |
setActivity(PvmActivity activity)
|
|
void |
setCachedEntityState(int cachedEntityState)
|
|
void |
setExecutions(List<ExecutionEntity> executions)
|
|
void |
setParent(PvmExecutionImpl parent)
|
|
void |
setParentId(String parentId)
|
|
void |
setProcessDefinition(ProcessDefinitionImpl processDefinition)
|
|
void |
setProcessDefinitionId(String processDefinitionId)
|
|
void |
setProcessInstance(PvmExecutionImpl processInstance)
|
|
void |
setReplacedBy(PvmExecutionImpl replacedBy)
|
|
void |
setRevision(int revision)
|
|
void |
setSubProcessInstance(PvmExecutionImpl subProcessInstance)
|
|
void |
setSuperExecution(PvmExecutionImpl superExecution)
|
|
void |
setSuspensionState(int suspensionState)
|
|
void |
startWithFormProperties(Map<String,Object> properties)
|
|
String |
toString()
|
|
| Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution |
|---|
getBusinessKey, getEventName, getEventSource, getId, getListenerIndex, invokeListener, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessInstance |
|---|
getBusinessKey |
| Methods inherited from interface org.camunda.bpm.engine.runtime.Execution |
|---|
getId, isEnded |
| Methods inherited from interface org.camunda.bpm.engine.impl.db.PersistentObject |
|---|
getId, setId |
| Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution |
|---|
getBusinessKey, getEventName, getId |
| Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope |
|---|
getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal |
| Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmExecution |
|---|
getVariable, getVariables, hasVariable, setVariable |
| Field Detail |
|---|
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
protected transient ExecutionEntity processInstance
protected transient ExecutionEntity parent
protected transient List<ExecutionEntity> executions
protected transient ExecutionEntity superExecution
protected transient ExecutionEntity subProcessInstance
protected boolean shouldQueryForSubprocessInstance
protected transient List<EventSubscriptionEntity> eventSubscriptions
protected transient List<JobEntity> jobs
protected transient List<TaskEntity> tasks
protected transient List<IncidentEntity> incidents
protected int cachedEntityState
protected ExecutionEntityVariableStore variableStore
protected transient ExecutionEntity replacedBy
#takeAll(List, List)} {@link OutgoingExecution}protected int suspensionState
protected int revision
protected String processDefinitionId
PvmExecutionImpl.processDefinition,
setProcessDefinition(ProcessDefinitionImpl),
getProcessDefinition()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 boolean forcedUpdate
| Constructor Detail |
|---|
public ExecutionEntity()
public ExecutionEntity(ActivityImpl activityImpl)
| Method Detail |
|---|
public ExecutionEntity createExecution()
PvmExecutionImpl
createExecution in interface ActivityExecutioncreateExecution in class PvmExecutionImplpublic ExecutionEntity createExecution(boolean initializeExecutionStartContext)
createExecution in interface ActivityExecutioncreateExecution in class PvmExecutionImplpublic ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition)
ActivityExecution
createSubProcessInstance in interface ActivityExecutioncreateSubProcessInstance in class PvmExecutionImplprocessDefinition - The PvmProcessDefinition of the subprocess.
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey)
createSubProcessInstance in interface ActivityExecutioncreateSubProcessInstance in class PvmExecutionImplprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instanceActivityExecution.createSubProcessInstance(PvmProcessDefinition)protected ExecutionEntity newExecution()
public void initialize()
initialize in class PvmExecutionImplprotected void initializeAssociations(ExecutionEntity execution)
public void startWithFormProperties(Map<String,Object> properties)
public void destroy()
destroy in class PvmExecutionImplpublic void cancelScope(String reason)
cancelScope in interface ActivityExecutioncancelScope in class PvmExecutionImplpublic <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
performOperation in class CoreExecutionpublic <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
performOperationSync in class CoreExecutionpublic 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 PvmExecutionImplpublic void inactivate()
ActivityExecution
inactivate in interface ActivityExecutioninactivate in class PvmExecutionImplpublic List<ExecutionEntity> getExecutions()
getExecutions in interface ActivityExecutiongetExecutions in class PvmExecutionImplprotected void ensureExecutionsInitialized()
protected boolean isExecutionTreePrefetchEnabled()
public void setExecutions(List<ExecutionEntity> executions)
public String getProcessBusinessKey()
DelegateExecution
getProcessBusinessKey in interface DelegateExecutiongetProcessBusinessKey in class PvmExecutionImplpublic ProcessDefinitionImpl getProcessDefinition()
getProcessDefinition in class PvmExecutionImplpublic void setProcessDefinitionId(String processDefinitionId)
public String getProcessDefinitionId()
ProcessInstance
getProcessDefinitionId in interface DelegateExecutiongetProcessDefinitionId in interface ProcessInstanceprotected void ensureProcessDefinitionInitialized()
public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
setProcessDefinition in class PvmExecutionImplpublic ExecutionEntity getProcessInstance()
getProcessInstance in class PvmExecutionImplprotected void ensureProcessInstanceInitialized()
public void setProcessInstance(PvmExecutionImpl processInstance)
setProcessInstance in class PvmExecutionImplpublic boolean isProcessInstanceExecution()
ActivityExecution
isProcessInstanceExecution in interface ActivityExecutionisProcessInstanceExecution in class PvmExecutionImplpublic ActivityImpl getActivity()
getActivity in interface ActivityExecutiongetActivity in interface PvmExecutiongetActivity in class PvmExecutionImplpublic String getActivityId()
getActivityId in class PvmExecutionImplprotected void ensureActivityInitialized()
public void setActivity(PvmActivity activity)
setActivity in interface ActivityExecutionsetActivity in class PvmExecutionImplprotected String generateActivityInstanceId(String activityId)
generateActivityInstanceId in class PvmExecutionImplpublic ExecutionEntity getParent()
getParent in interface ActivityExecutiongetParent in class PvmExecutionImplprotected void ensureParentInitialized()
public void setParent(PvmExecutionImpl parent)
setParent in class PvmExecutionImplpublic String getSuperExecutionId()
public ExecutionEntity getSuperExecution()
getSuperExecution in class PvmExecutionImplpublic void setSuperExecution(PvmExecutionImpl superExecution)
setSuperExecution in class PvmExecutionImplprotected void ensureSuperExecutionInitialized()
public ExecutionEntity getSubProcessInstance()
getSubProcessInstance in class PvmExecutionImplpublic void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance in class PvmExecutionImplprotected void ensureSubProcessInstanceInitialized()
public void remove()
remove in interface ActivityExecutionremove in class PvmExecutionImplpublic void interruptScope(String reason)
ActivityExecution
interruptScope in interface ActivityExecutionpublic void removeEventSubscriptions()
public ExecutionEntity getReplacedBy()
getReplacedBy in class PvmExecutionImplpublic void setReplacedBy(PvmExecutionImpl replacedBy)
setReplacedBy in class PvmExecutionImplpublic void replace(PvmExecutionImpl execution)
replace in class PvmExecutionImplprotected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected List<VariableInstanceEntity> loadVariableInstances()
protected boolean isAutoFireHistoryEvents()
public void fireHistoricVariableInstanceCreateEvents()
protected void ensureExecutionTreeInitialized()
public Object getPersistentState()
PersistentObject
getPersistentState in interface PersistentObjectpublic void insert()
public void deleteCascade2(String deleteReason)
deleteCascade2 in class PvmExecutionImplpublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic void forceUpdate()
public String toString()
toString in class PvmExecutionImplprotected String getToStringIdentity()
getToStringIdentity in class PvmExecutionImplpublic 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()
protected List<JobEntity> getJobsInternal()
public List<JobEntity> getJobs()
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 CoreVariableScopepublic void setCachedEntityState(int cachedEntityState)
public int getCachedEntityState()
public int getCachedEntityStateRaw()
public String getProcessInstanceId()
ExecutionExecution.getId() if this execution is the process instance.
getProcessInstanceId in interface DelegateExecutiongetProcessInstanceId in interface Executionpublic String getParentId()
DelegateExecution
getParentId in interface DelegateExecutiongetParentId in class PvmExecutionImplpublic void setParentId(String parentId)
public int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
Execution
isSuspended in interface ExecutionisSuspended in interface ProcessInstancepublic ProcessInstanceStartContext getProcessInstanceStartContext()
getProcessInstanceStartContext in class PvmExecutionImplpublic String getCurrentActivityId()
DelegateExecution
getCurrentActivityId in interface DelegateExecutiongetCurrentActivityId in class PvmExecutionImplpublic String getCurrentActivityName()
DelegateExecution
getCurrentActivityName in interface DelegateExecutiongetCurrentActivityName in class PvmExecutionImplpublic org.camunda.bpm.model.bpmn.instance.FlowElement getBpmnModelElementInstance()
BpmnModelExecutionContextReturns 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 BpmnModelExecutionContextFlowElement corresponding to the current Bpmn Model Elementpublic org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContextBpmnModelInstance for the currently executed Bpmn Model
getBpmnModelInstance in interface BpmnModelExecutionContextBpmnModelInstancepublic ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAwareProcessEngineServices providing access to the
public API of the process engine.
getProcessEngineServices in interface ProcessEngineServicesAwareProcessEngineServices.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||