public class ExecutionEntity extends VariableScopeImpl implements ActivityExecution, ExecutionListenerExecution, Execution, PvmExecution, ProcessInstance, InterpretableExecution, PersistentObject, HasRevision
| Modifier and Type | Field and Description |
|---|---|
protected ActivityImpl |
activity
current activity
|
protected String |
activityId
persisted reference to the current position in the diagram within the
processDefinition. |
protected String |
activityName
The name of the current activity position
|
protected String |
businessKey
persisted reference to the business key.
|
protected int |
cachedEntityState |
protected org.flowable.bpmn.model.FlowElement |
currentFlowElement |
protected String |
deleteReason |
protected boolean |
deleteRoot |
protected String |
deploymentId
persisted reference to the deployment id.
|
protected String |
description |
protected static int |
EVENT_SUBSCRIPTIONS_STATE_BIT |
protected String |
eventName |
protected PvmProcessElement |
eventSource |
protected List<EventSubscriptionEntity> |
eventSubscriptions |
protected int |
executionListenerIndex |
protected List<ExecutionEntity> |
executions
nested executions representing scopes or concurrent paths
|
protected boolean |
forcedUpdate |
protected List<IdentityLinkEntity> |
identityLinks |
protected boolean |
isActive
indicates if this execution represents an active path of execution.
|
protected boolean |
isConcurrent |
protected boolean |
isEnded |
protected boolean |
isEventScope |
protected boolean |
isOperating |
protected boolean |
isScope |
protected List<JobEntity> |
jobs |
protected static int |
JOBS_STATE_BIT |
protected String |
localizedDescription |
protected String |
localizedName |
protected Date |
lockTime |
protected String |
name |
protected AtomicOperation |
nextOperation
next operation.
|
protected ExecutionEntity |
parent
the parent execution
|
protected String |
parentId
persisted reference to the parent of this execution.
|
protected ProcessDefinitionImpl |
processDefinition |
protected String |
processDefinitionId
persisted reference to the processDefinition.
|
protected String |
processDefinitionKey
persisted reference to the process definition key.
|
protected String |
processDefinitionName
persisted reference to the process definition name.
|
protected Integer |
processDefinitionVersion
persisted reference to the process definition version.
|
protected ExecutionEntity |
processInstance
the process instance.
|
protected String |
processInstanceId
persisted reference to the process instance.
|
protected List<VariableInstanceEntity> |
queryVariables |
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 StartingExecution |
startingExecution |
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 |
protected static int |
TASKS_STATE_BIT |
protected String |
tenantId
The tenant identifier (if any)
|
protected List<TimerJobEntity> |
timerJobs |
protected TransitionImpl |
transition
current transition.
|
protected TransitionImpl |
transitionBeingTaken
transition that will be taken.
|
cachedElContext, id, transientVariabes, usedVariablesCache, variableInstances| Constructor and Description |
|---|
ExecutionEntity() |
ExecutionEntity(ActivityImpl activityImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity) |
IdentityLinkEntity |
addIdentityLink(String userId,
String groupId,
String type) |
void |
addJob(JobEntity jobEntity) |
void |
addTask(TaskEntity taskEntity) |
void |
addTimerJob(TimerJobEntity jobEntity) |
protected boolean |
allExecutionsInSameActivity(List<ExecutionEntity> executions) |
protected void |
callJobProcessors(JobProcessorContext.Phase processorType,
AbstractJobEntity abstractJobEntity,
ProcessEngineConfigurationImpl processEngineConfiguration) |
protected void |
collectActiveActivityIds(List<String> activeActivityIds) |
ExecutionEntity |
createExecution()
creates a new execution.
|
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance.
|
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value,
ExecutionEntity sourceActivityExecution) |
void |
deleteCascade(String deleteReason) |
void |
deleteIdentityLink(String userId,
String groupId,
String type) |
void |
destroy() |
void |
destroyScope(String reason)
Called when an execution is interrupted.
|
void |
disposeStartingExecution() |
void |
end()
removes an execution.
|
protected void |
ensureActivityInitialized()
must be called before the activity member field or getActivity() is called
|
protected void |
ensureEventSubscriptionsInitialized() |
protected void |
ensureExecutionsInitialized() |
protected void |
ensureJobsInitialized() |
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() |
protected void |
ensureTimerJobsInitialized() |
void |
executeActivity(PvmActivity activity)
Executes the
ActivityBehavior associated with the given activity. |
List<String> |
findActiveActivityIds() |
ExecutionEntity |
findExecution(String activityId)
searches for an execution positioned in the given activity
|
List<ActivityExecution> |
findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity.
|
protected void |
fireActivityCompletedEvent() |
void |
forceUpdate() |
ActivityImpl |
getActivity()
ensures initialization and returns the activity
|
String |
getActivityId()
Returns the id of the activity where the execution currently is at.
|
protected List<ExecutionEntity> |
getAllChildExecutions() |
String |
getBusinessKey()
The business key of this process instance.
|
int |
getCachedEntityState() |
List<CompensateEventSubscriptionEntity> |
getCompensateEventSubscriptions() |
List<CompensateEventSubscriptionEntity> |
getCompensateEventSubscriptions(String activityId) |
String |
getCurrentActivityId() |
String |
getCurrentActivityName() |
org.flowable.bpmn.model.FlowableListener |
getCurrentFlowableListener() |
org.flowable.bpmn.model.FlowElement |
getCurrentFlowElement() |
String |
getDeleteReason() |
String |
getDeploymentId()
The deployment id of the process definition of the process instance.
|
String |
getDescription()
Returns the description of this process instance.
|
String |
getEventName() |
PvmProcessElement |
getEventSource() |
List<EventSubscriptionEntity> |
getEventSubscriptions() |
List<EventSubscriptionEntity> |
getEventSubscriptionsInternal() |
Integer |
getExecutionListenerIndex() |
List<ExecutionEntity> |
getExecutions()
ensures initialization and returns the non-null executions list
|
List<IdentityLinkEntity> |
getIdentityLinks() |
List<JobEntity> |
getJobs() |
protected List<JobEntity> |
getJobsInternal() |
String |
getLocalizedDescription()
Returns the localized description of this process instance.
|
String |
getLocalizedName()
Returns the localized name of this process instance.
|
Date |
getLockTime() |
String |
getName()
Returns the name of this process instance.
|
ExecutionEntity |
getParent()
ensures initialization and returns the parent
|
String |
getParentId()
Gets the id of the parent of this execution.
|
protected VariableScopeImpl |
getParentVariableScope() |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database.
|
String |
getProcessBusinessKey() |
ProcessDefinitionImpl |
getProcessDefinition()
ensures initialization and returns the process definition.
|
String |
getProcessDefinitionId()
The id of the process definition of the process instance.
|
String |
getProcessDefinitionKey()
The key of the process definition of the process instance.
|
String |
getProcessDefinitionName()
The name of the process definition of the process instance.
|
Integer |
getProcessDefinitionVersion()
The version of the process definition of the process instance.
|
ExecutionEntity |
getProcessInstance()
ensures initialization and returns the process instance.
|
String |
getProcessInstanceBusinessKey() |
String |
getProcessInstanceId()
Id of the root of the execution tree representing the process instance.
|
Map<String,Object> |
getProcessVariables()
Returns the process variables if requested in the process instance query
|
List<VariableInstanceEntity> |
getQueryVariables() |
ExecutionEntity |
getReplacedBy() |
int |
getRevision() |
int |
getRevisionNext() |
String |
getRootProcessInstanceId() |
protected ScopeImpl |
getScopeObject() |
protected ExecutionEntity |
getSourceActivityExecution()
used to calculate the sourceActivityExecution for method
#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntity) |
protected VariableInstanceEntity |
getSpecificVariable(String variableName) |
protected List<VariableInstanceEntity> |
getSpecificVariables(Collection<String> variableNames) |
StartingExecution |
getStartingExecution() |
ExecutionEntity |
getSubProcessInstance() |
ExecutionEntity |
getSuperExecution() |
String |
getSuperExecutionId()
Gets the id of the super execution of this execution.
|
int |
getSuspensionState() |
List<TaskEntity> |
getTasks() |
protected List<TaskEntity> |
getTasksInternal() |
String |
getTenantId()
The tenant identifier of this process instance
|
List<TimerJobEntity> |
getTimerJobs() |
protected List<TimerJobEntity> |
getTimerJobsInternal() |
protected String |
getToStringIdentity() |
TransitionImpl |
getTransition() |
TransitionImpl |
getTransitionBeingTaken() |
void |
inactivate()
Inactivates this execution.
|
void |
initialize() |
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
void |
insert() |
IdentityLinkEntity |
involveUser(String userId,
String type)
Adds an IdentityLink for this user with the specified type, but only if the user is not associated with this instance yet.
|
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isActive(String activityId) |
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 |
isMultiInstanceRoot() |
boolean |
isProcessInstanceType()
returns whether this execution is a process instance or not.
|
boolean |
isScope()
Returns whether this execution is a scope.
|
boolean |
isSuspended()
Indicates if the execution is suspended.
|
protected List<VariableInstanceEntity> |
loadVariableInstances() |
protected ExecutionEntity |
newExecution() |
void |
performOperation(AtomicOperation executionOperation) |
protected void |
performOperationSync(AtomicOperation executionOperation) |
void |
remove() |
void |
removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity) |
void |
removeIdentityLinks() |
void |
removeJob(JobEntity job) |
void |
removeTask(TaskEntity task) |
void |
removeTimerJob(TimerJobEntity job) |
protected void |
scheduleAtomicOperationAsync(AtomicOperation executionOperation) |
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setActivity(ActivityImpl activity) |
void |
setBusinessKey(String businessKey) |
void |
setCachedEntityState(int cachedEntityState) |
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setCurrentFlowableListener(org.flowable.bpmn.model.FlowableListener currentListener) |
void |
setCurrentFlowElement(org.flowable.bpmn.model.FlowElement currentFlowElement) |
void |
setDeleteReason(String deleteReason) |
void |
setDeleteRoot(boolean deleteRoot) |
void |
setDeploymentId(String deploymentId) |
void |
setDescription(String description) |
void |
setEnded(boolean ended)
Sets whether this execution is ended or not.
|
void |
setEventName(String eventName) |
void |
setEventScope(boolean isEventScope) |
void |
setEventSource(PvmProcessElement eventSource) |
void |
setExecutionListenerIndex(Integer executionListenerIndex) |
void |
setExecutions(List<ExecutionEntity> executions) |
void |
setLocalizedDescription(String localizedDescription) |
void |
setLocalizedName(String localizedName) |
void |
setLockTime(Date lockTime) |
void |
setMultiInstanceRoot(boolean isMultiInstanceRoot) |
void |
setName(String name) |
void |
setParent(InterpretableExecution parent) |
void |
setParentId(String parentId) |
void |
setProcessDefinition(ProcessDefinitionImpl processDefinition) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessDefinitionKey(String processDefinitionKey) |
void |
setProcessDefinitionName(String processDefinitionName) |
void |
setProcessDefinitionVersion(Integer processDefinitionVersion) |
void |
setProcessInstance(InterpretableExecution processInstance) |
void |
setQueryVariables(List<VariableInstanceEntity> queryVariables) |
void |
setReplacedBy(InterpretableExecution replacedBy) |
void |
setRevision(int revision) |
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not
|
void |
setSubProcessInstance(InterpretableExecution subProcessInstance) |
void |
setSuperExecution(ExecutionEntity superExecution) |
void |
setSuspensionState(int suspensionState) |
void |
setTenantId(String tenantId) |
void |
setTransition(TransitionImpl transition) |
void |
setTransitionBeingTaken(TransitionImpl transitionBeingTaken) |
void |
signal(String signalName,
Object signalData) |
void |
start() |
void |
take(PvmTransition transition)
leaves the current activity by taking the given transition.
|
void |
take(PvmTransition transition,
boolean fireActivityCompletionEvent) |
void |
takeAll(List<PvmTransition> transitions,
List<ActivityExecution> recyclableExecutions)
Takes the given outgoing transitions, and potentially reusing the given list of executions that were previously joined.
|
String |
toString() |
String |
updateProcessBusinessKey(String bzKey) |
protected void |
updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
ExecutionEntity sourceActivityExecution) |
collectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, deleteVariablesInstanceForLeavingScope, ensureVariableInstancesInitialized, getCachedElContext, getId, getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getUsedVariablesCache, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceEntities, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, isActivityIdUsedForDetails, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setId, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdgetTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalgetVariable, getVariables, hasVariable, setVariablegetId, setIdprotected static final int EVENT_SUBSCRIPTIONS_STATE_BIT
protected static final int TASKS_STATE_BIT
protected static final int JOBS_STATE_BIT
protected ProcessDefinitionImpl processDefinition
protected ActivityImpl activity
protected org.flowable.bpmn.model.FlowElement currentFlowElement
protected TransitionImpl transition
protected TransitionImpl transitionBeingTaken
protected ExecutionEntity processInstance
protected ExecutionEntity parent
protected List<ExecutionEntity> executions
protected ExecutionEntity superExecution
protected ExecutionEntity subProcessInstance
protected StartingExecution startingExecution
protected String tenantId
protected String name
protected String description
protected String localizedName
protected String localizedDescription
protected Date lockTime
protected boolean isActive
protected boolean isScope
protected boolean isConcurrent
protected boolean isEnded
protected boolean isEventScope
protected String eventName
protected PvmProcessElement eventSource
protected int executionListenerIndex
protected List<EventSubscriptionEntity> eventSubscriptions
protected List<TimerJobEntity> timerJobs
protected List<TaskEntity> tasks
protected List<IdentityLinkEntity> identityLinks
protected int cachedEntityState
protected boolean deleteRoot
protected String deleteReason
protected ExecutionEntity replacedBy
{@link OutgoingExecution}protected AtomicOperation nextOperation
AtomicOperation,
performOperation(AtomicOperation)protected boolean isOperating
protected int revision
protected int suspensionState
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionName
protected Integer processDefinitionVersion
protected String deploymentId
protected String activityId
processDefinition.activity,
setActivity(ActivityImpl),
getActivity()protected String activityName
protected String processInstanceId
getProcessInstance()protected String businessKey
protected String parentId
getParent(),
setParentId(String)protected String superExecutionId
protected boolean forcedUpdate
protected List<VariableInstanceEntity> queryVariables
public ExecutionEntity(ActivityImpl activityImpl)
public ExecutionEntity()
public ExecutionEntity createExecution()
createExecution in interface ActivityExecutionpublic PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
ActivityExecutioncreateSubProcessInstance in interface ActivityExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.protected ExecutionEntity newExecution()
public void initialize()
initialize in interface InterpretableExecutionpublic void start()
start in interface PvmProcessInstancepublic void destroy()
destroy in interface InterpretableExecutionpublic void end()
end in interface ActivityExecutionpublic void signal(String signalName, Object signalData)
signal in interface PvmExecutionpublic void take(PvmTransition transition)
ActivityExecutiontake in interface ActivityExecutiontake in interface InterpretableExecutionpublic void take(PvmTransition transition, boolean fireActivityCompletionEvent)
take in interface InterpretableExecutionfireActivityCompletionEvent - This method can be called from other places (like takeAll(List, List)), where the event is already fired. In that case, false is passed an no second event is fired.public void executeActivity(PvmActivity activity)
ActivityExecutionActivityBehavior associated with the given activity.executeActivity in interface ActivityExecutionpublic List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
ActivityExecutionfindInactiveConcurrentExecutions in interface ActivityExecutionprotected List<ExecutionEntity> getAllChildExecutions()
public void takeAll(List<PvmTransition> transitions, List<ActivityExecution> recyclableExecutions)
ActivityExecutiontakeAll in interface ActivityExecutionprotected void fireActivityCompletedEvent()
protected boolean allExecutionsInSameActivity(List<ExecutionEntity> executions)
public void performOperation(AtomicOperation executionOperation)
performOperation in interface InterpretableExecutionprotected void performOperationSync(AtomicOperation executionOperation)
protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation)
public boolean isActive(String activityId)
public void inactivate()
ActivityExecutioninactivate in interface ActivityExecutioninactivate in interface DelegateExecutionpublic List<ExecutionEntity> getExecutions()
getExecutions in interface ActivityExecutiongetExecutions in interface DelegateExecutionprotected void ensureExecutionsInitialized()
public void setExecutions(List<ExecutionEntity> executions)
public ExecutionEntity findExecution(String activityId)
findExecution in interface PvmProcessInstancepublic List<String> findActiveActivityIds()
findActiveActivityIds in interface PvmProcessInstancepublic String getBusinessKey()
ProcessInstancegetBusinessKey in interface ProcessInstancepublic void setBusinessKey(String businessKey)
public String getProcessBusinessKey()
public String getProcessInstanceBusinessKey()
getProcessInstanceBusinessKey in interface DelegateExecutionpublic ProcessDefinitionImpl getProcessDefinition()
getProcessDefinition in interface InterpretableExecutionpublic void setProcessDefinitionId(String processDefinitionId)
public String getProcessDefinitionId()
ProcessInstancegetProcessDefinitionId in interface ProcessInstancegetProcessDefinitionId in interface DelegateExecutionpublic String getProcessDefinitionKey()
ProcessInstancegetProcessDefinitionKey in interface ProcessInstancepublic void setProcessDefinitionKey(String processDefinitionKey)
public String getProcessDefinitionName()
ProcessInstancegetProcessDefinitionName in interface ProcessInstancepublic void setProcessDefinitionName(String processDefinitionName)
public Integer getProcessDefinitionVersion()
ProcessInstancegetProcessDefinitionVersion in interface ProcessInstancepublic void setProcessDefinitionVersion(Integer processDefinitionVersion)
public String getDeploymentId()
ProcessInstancegetDeploymentId in interface ProcessInstancepublic void setDeploymentId(String deploymentId)
protected void ensureProcessDefinitionInitialized()
public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
setProcessDefinition in interface InterpretableExecutionpublic ExecutionEntity getProcessInstance()
getProcessInstance in interface ActivityExecutionprotected void ensureProcessInstanceInitialized()
public void setProcessInstance(InterpretableExecution processInstance)
setProcessInstance in interface InterpretableExecutionpublic boolean isProcessInstanceType()
ActivityExecutionisProcessInstanceType in interface ActivityExecutionisProcessInstanceType in interface DelegateExecutionpublic ActivityImpl getActivity()
getActivity in interface ActivityExecutiongetActivity in interface PvmExecutionprotected void ensureActivityInitialized()
public void setActivity(ActivityImpl activity)
setActivity in interface InterpretableExecutionpublic ExecutionEntity getParent()
getParent in interface ActivityExecutiongetParent in interface DelegateExecutionprotected void ensureParentInitialized()
public void setParent(InterpretableExecution parent)
setParent in interface InterpretableExecutionpublic String getSuperExecutionId()
ExecutiongetSuperExecutionId in interface ExecutiongetSuperExecutionId in interface DelegateExecutionpublic ExecutionEntity getSuperExecution()
getSuperExecution in interface InterpretableExecutionpublic void setSuperExecution(ExecutionEntity superExecution)
protected void ensureSuperExecutionInitialized()
public ExecutionEntity getSubProcessInstance()
getSubProcessInstance in interface InterpretableExecutionpublic void setSubProcessInstance(InterpretableExecution subProcessInstance)
setSubProcessInstance in interface InterpretableExecutionprotected void ensureSubProcessInstanceInitialized()
protected ScopeImpl getScopeObject()
public boolean isScope()
ActivityExecutionisScope in interface ActivityExecutionisScope in interface InterpretableExecutionisScope in interface DelegateExecutionpublic void setScope(boolean isScope)
ActivityExecutionsetScope in interface ActivityExecutionsetScope in interface DelegateExecutionpublic void remove()
remove in interface InterpretableExecutionpublic void destroyScope(String reason)
ActivityExecutiondestroyScope in interface ActivityExecutionpublic ExecutionEntity getReplacedBy()
getReplacedBy in interface InterpretableExecutionpublic void setReplacedBy(InterpretableExecution replacedBy)
setReplacedBy in interface InterpretableExecutionprotected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
initializeVariableInstanceBackPointer in class VariableScopeImplprotected List<VariableInstanceEntity> loadVariableInstances()
loadVariableInstances in class VariableScopeImplprotected VariableScopeImpl getParentVariableScope()
getParentVariableScope in class VariableScopeImplprotected ExecutionEntity getSourceActivityExecution()
#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntity)getSourceActivityExecution in class VariableScopeImplprotected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceActivityExecution)
createVariableInstance in class VariableScopeImplprotected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceActivityExecution)
updateVariableInstance in class VariableScopeImplprotected VariableInstanceEntity getSpecificVariable(String variableName)
getSpecificVariable in class VariableScopeImplprotected List<VariableInstanceEntity> getSpecificVariables(Collection<String> variableNames)
getSpecificVariables in class VariableScopeImplpublic Object getPersistentState()
PersistentObjectgetPersistentState in interface PersistentObjectpublic org.flowable.bpmn.model.FlowElement getCurrentFlowElement()
getCurrentFlowElement in interface DelegateExecutionpublic void setCurrentFlowElement(org.flowable.bpmn.model.FlowElement currentFlowElement)
setCurrentFlowElement in interface DelegateExecutionpublic org.flowable.bpmn.model.FlowableListener getCurrentFlowableListener()
getCurrentFlowableListener in interface DelegateExecutionpublic void setCurrentFlowableListener(org.flowable.bpmn.model.FlowableListener currentListener)
setCurrentFlowableListener in interface DelegateExecutionpublic void insert()
public void deleteCascade(String deleteReason)
deleteCascade in interface PvmProcessInstancedeleteCascade in interface InterpretableExecutionpublic void setDeleteRoot(boolean deleteRoot)
public int getRevisionNext()
getRevisionNext in interface HasRevisionpublic void forceUpdate()
protected String getToStringIdentity()
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 ensureTimerJobsInitialized()
protected List<TimerJobEntity> getTimerJobsInternal()
public List<TimerJobEntity> getTimerJobs()
public void addTimerJob(TimerJobEntity jobEntity)
public void removeTimerJob(TimerJobEntity job)
protected void ensureTasksInitialized()
protected List<TaskEntity> getTasksInternal()
public List<TaskEntity> getTasks()
public void addTask(TaskEntity taskEntity)
public void removeTask(TaskEntity task)
public List<IdentityLinkEntity> getIdentityLinks()
public IdentityLinkEntity addIdentityLink(String userId, String groupId, String type)
public IdentityLinkEntity involveUser(String userId, String type)
public void removeIdentityLinks()
public void setCachedEntityState(int cachedEntityState)
public int getCachedEntityState()
public String getProcessInstanceId()
ExecutionExecution.getId() if this execution is the process instance.getProcessInstanceId in interface ExecutiongetProcessInstanceId in interface DelegateExecutionpublic String getRootProcessInstanceId()
getRootProcessInstanceId in interface DelegateExecutionpublic String getParentId()
ExecutiongetParentId in interface ExecutiongetParentId in interface DelegateExecutionpublic void setParentId(String parentId)
public int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic String getActivityId()
ExecutiongetActivityId in interface Executionpublic TransitionImpl getTransition()
getTransition in interface InterpretableExecutionpublic void setTransition(TransitionImpl transition)
setTransition in interface InterpretableExecutionpublic TransitionImpl getTransitionBeingTaken()
public void setTransitionBeingTaken(TransitionImpl transitionBeingTaken)
public Integer getExecutionListenerIndex()
getExecutionListenerIndex in interface InterpretableExecutionpublic void setExecutionListenerIndex(Integer executionListenerIndex)
setExecutionListenerIndex in interface InterpretableExecutionpublic boolean isConcurrent()
ActivityExecutionisConcurrent in interface ActivityExecutionisConcurrent in interface DelegateExecutionpublic void setConcurrent(boolean isConcurrent)
ActivityExecutionsetConcurrent in interface ActivityExecutionsetConcurrent in interface DelegateExecutionpublic boolean isActive()
ActivityExecutionisActive in interface ActivityExecutionisActive in interface DelegateExecutionpublic void setActive(boolean isActive)
ActivityExecutionsetActive in interface ActivityExecutionsetActive in interface DelegateExecutionpublic boolean isEnded()
ActivityExecutionisEnded in interface ActivityExecutionisEnded in interface PvmProcessInstanceisEnded in interface ExecutionisEnded in interface DelegateExecutionpublic void setEnded(boolean ended)
ActivityExecutionActivityExecution.end() to set the boolean and execution removal methods.setEnded in interface ActivityExecutionpublic String getEventName()
getEventName in interface ExecutionListenerExecutiongetEventName in interface DelegateExecutionpublic void setEventName(String eventName)
setEventName in interface InterpretableExecutionsetEventName in interface DelegateExecutionpublic PvmProcessElement getEventSource()
getEventSource in interface ExecutionListenerExecutionpublic void setEventSource(PvmProcessElement eventSource)
setEventSource in interface InterpretableExecutionpublic String getDeleteReason()
getDeleteReason in interface ExecutionListenerExecutionpublic void setDeleteReason(String deleteReason)
public boolean isDeleteRoot()
isDeleteRoot in interface InterpretableExecutionpublic int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
ExecutionisSuspended in interface ExecutionisSuspended in interface ProcessInstancepublic boolean isEventScope()
isEventScope in interface InterpretableExecutionpublic void setEventScope(boolean isEventScope)
setEventScope in interface InterpretableExecutionpublic StartingExecution getStartingExecution()
getStartingExecution in interface InterpretableExecutionpublic void disposeStartingExecution()
disposeStartingExecution in interface InterpretableExecutionpublic String getCurrentActivityId()
getCurrentActivityId in interface DelegateExecutionpublic String getCurrentActivityName()
public String getName()
ProcessInstancegetName in interface ProcessInstancepublic void setName(String name)
public String getDescription()
ProcessInstancegetDescription in interface ProcessInstancepublic void setDescription(String description)
public String getLocalizedName()
ProcessInstancegetLocalizedName in interface ProcessInstancepublic void setLocalizedName(String localizedName)
public String getLocalizedDescription()
ProcessInstancegetLocalizedDescription in interface ProcessInstancepublic void setLocalizedDescription(String localizedDescription)
public String getTenantId()
ExecutiongetTenantId in interface ExecutiongetTenantId in interface ProcessInstancegetTenantId in interface DelegateExecutionpublic void setTenantId(String tenantId)
public Date getLockTime()
public void setLockTime(Date lockTime)
public Map<String,Object> getProcessVariables()
ProcessInstancegetProcessVariables in interface ProcessInstancepublic List<VariableInstanceEntity> getQueryVariables()
public void setQueryVariables(List<VariableInstanceEntity> queryVariables)
public boolean isMultiInstanceRoot()
isMultiInstanceRoot in interface DelegateExecutionpublic void setMultiInstanceRoot(boolean isMultiInstanceRoot)
setMultiInstanceRoot in interface DelegateExecutionprotected void callJobProcessors(JobProcessorContext.Phase processorType, AbstractJobEntity abstractJobEntity, ProcessEngineConfigurationImpl processEngineConfiguration)
Copyright © 2018 Flowable. All rights reserved.