org.activiti.engine.impl.persistence.entity
类 ExecutionEntity

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.entity.VariableScopeImpl
      继承者 org.activiti.engine.impl.persistence.entity.ExecutionEntity
所有已实现的接口:
Serializable, DelegateExecution, VariableScope, HasRevision, PersistentObject, ActivityExecution, ExecutionListenerExecution, PvmExecution, PvmProcessInstance, InterpretableExecution, Execution, ProcessInstance

public class ExecutionEntity
extends VariableScopeImpl
implements ActivityExecution, ExecutionListenerExecution, Execution, PvmExecution, ProcessInstance, InterpretableExecution, PersistentObject, HasRevision

作者:
Tom Baeyens, Daniel Meyer, Falko Menge, Saeid Mirzaei
另请参见:
序列化表格

字段摘要
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  String deleteReason
           
protected  boolean deleteRoot
           
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  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  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  TransitionImpl transition
          current transition.
protected  TransitionImpl transitionBeingTaken
          transition that will be taken.
 
从类 org.activiti.engine.impl.persistence.entity.VariableScopeImpl 继承的字段
cachedElContext, id, variableInstances
 
构造方法摘要
ExecutionEntity()
           
ExecutionEntity(ActivityImpl activityImpl)
           
 
方法摘要
 void addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)
           
 IdentityLinkEntity addIdentityLink(String userId, String type)
           
 void addJob(JobEntity jobEntity)
           
 void addTask(TaskEntity taskEntity)
           
protected  boolean allExecutionsInSameActivity(List<ExecutionEntity> executions)
           
protected  void collectActiveActivityIds(List<String> activeActivityIds)
           
 ExecutionEntity createExecution()
          creates a new execution. properties processDefinition, processInstance and activity will be initialized.
 PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
          creates a new sub process instance.
 void deleteCascade(String deleteReason)
           
 void destroy()
           
 void destroyScope(String reason)
          Called when an execution is interrupted.
 void disposeStartingExecution()
           
 void end()
          removes an execution. if there are nested executions, those will be ended recursively.
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()
           
 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.
 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 for this execution.
 int getCachedEntityState()
           
 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.
 String getDeleteReason()
           
 EngineServices getEngineServices()
          All Activiti services can be accessed through this interface.
 String getEventName()
          The event name in case this execution is passed in for an ExecutionListener
 PvmProcessElement getEventSource()
           
 List<EventSubscriptionEntity> getEventSubscriptions()
           
 List<EventSubscriptionEntity> getEventSubscriptionsInternal()
           
 Integer getExecutionListenerIndex()
           
 List<ExecutionEntity> getExecutions()
          ensures initialization and returns the non-null executions list
 String getId()
          Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.
 List<IdentityLinkEntity> getIdentityLinks()
           
 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.
protected  VariableScopeImpl getParentVariableScope()
           
 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 process definition key for the process instance this execution is associated with.
 ExecutionEntity getProcessInstance()
          ensures initialization and returns the process instance.
 String getProcessInstanceId()
          Reference to the overall 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()
           
protected  ScopeImpl getScopeObject()
           
protected  ExecutionEntity getSourceActivityExecution()
          used to calculate the sourceActivityExecution for method #updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntity)
 StartingExecution getStartingExecution()
           
 ExecutionEntity getSubProcessInstance()
           
 ExecutionEntity getSuperExecution()
           
 String getSuperExecutionId()
           
 int getSuspensionState()
           
 List<TaskEntity> getTasks()
           
protected  List<TaskEntity> getTasksInternal()
           
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)
           
protected  boolean isActivityIdUsedForDetails()
          Execution variable updates have activity instance ids, but historic task variable updates don't.
 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 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)
           
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 setDeleteReason(String deleteReason)
           
 void setEventName(String eventName)
           
 void setEventScope(boolean isEventScope)
           
 void setEventSource(PvmProcessElement eventSource)
           
 void setExecutionListenerIndex(Integer executionListenerIndex)
           
 void setExecutions(List<ExecutionEntity> executions)
           
 void setId(String id)
           
 void setParent(InterpretableExecution parent)
           
 void setParentId(String parentId)
           
 void setProcessDefinition(ProcessDefinitionImpl processDefinition)
           
 void setProcessDefinitionId(String processDefinitionId)
           
 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 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 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)
          Update process business key if not null.
 
从类 org.activiti.engine.impl.persistence.entity.VariableScopeImpl 继承的方法
collectVariableNames, collectVariables, createVariableInstance, createVariableLocal, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, deleteVariablesInstanceForLeavingScope, ensureVariableInstancesInitialized, getCachedElContext, getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal, updateVariableInstance
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.activiti.engine.delegate.VariableScope 继承的方法
createVariableLocal, getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
 
从接口 org.activiti.engine.impl.pvm.PvmExecution 继承的方法
getVariable, getVariables, hasVariable, setVariable
 

字段详细信息

EVENT_SUBSCRIPTIONS_STATE_BIT

protected static final int EVENT_SUBSCRIPTIONS_STATE_BIT
另请参见:
常量字段值

TASKS_STATE_BIT

protected static final int TASKS_STATE_BIT
另请参见:
常量字段值

JOBS_STATE_BIT

protected static final int JOBS_STATE_BIT
另请参见:
常量字段值

processDefinition

protected ProcessDefinitionImpl processDefinition

activity

protected ActivityImpl activity
current activity


transition

protected TransitionImpl transition
current transition. is null when there is no transition being taken.


transitionBeingTaken

protected TransitionImpl transitionBeingTaken
transition that will be taken. is null when there is no transition being taken.


processInstance

protected ExecutionEntity processInstance
the process instance. this is the root of the execution tree. the processInstance of a process instance is a self reference.


parent

protected ExecutionEntity parent
the parent execution


executions

protected List<ExecutionEntity> executions
nested executions representing scopes or concurrent paths


superExecution

protected ExecutionEntity superExecution
super execution, not-null if this execution is part of a subprocess


subProcessInstance

protected ExecutionEntity subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution


startingExecution

protected StartingExecution startingExecution

isActive

protected boolean isActive
indicates if this execution represents an active path of execution. Executions are made inactive in the following situations:


isScope

protected boolean isScope

isConcurrent

protected boolean isConcurrent

isEnded

protected boolean isEnded

isEventScope

protected boolean isEventScope

eventName

protected String eventName

eventSource

protected PvmProcessElement eventSource

executionListenerIndex

protected int executionListenerIndex

eventSubscriptions

protected List<EventSubscriptionEntity> eventSubscriptions

jobs

protected List<JobEntity> jobs

tasks

protected List<TaskEntity> tasks

identityLinks

protected List<IdentityLinkEntity> identityLinks

cachedEntityState

protected int cachedEntityState

deleteRoot

protected boolean deleteRoot

deleteReason

protected String deleteReason

replacedBy

protected ExecutionEntity replacedBy
when execution structure is pruned during a takeAll, then the original execution has to be resolved to the replaced execution.

另请参见:
#takeAll(List, List)} {@link OutgoingExecution}

nextOperation

protected AtomicOperation nextOperation
next operation. process execution is in fact runtime interpretation of the process model. each operation is a logical unit of interpretation of the process. so sequentially processing the operations drives the interpretation or execution of a process.

另请参见:
AtomicOperation, performOperation(AtomicOperation)

isOperating

protected boolean isOperating

revision

protected int revision

suspensionState

protected int suspensionState

processDefinitionId

protected String processDefinitionId
persisted reference to the processDefinition.

另请参见:
processDefinition, setProcessDefinition(ProcessDefinitionImpl), getProcessDefinition()

activityId

protected String activityId
persisted reference to the current position in the diagram within the processDefinition.

另请参见:
activity, setActivity(ActivityImpl), getActivity()

activityName

protected String activityName
The name of the current activity position


processInstanceId

protected String processInstanceId
persisted reference to the process instance.

另请参见:
getProcessInstance()

businessKey

protected String businessKey
persisted reference to the business key.


parentId

protected String parentId
persisted reference to the parent of this execution.

另请参见:
getParent(), #setParent(ExecutionEntity)

superExecutionId

protected String superExecutionId
persisted reference to the super execution of this execution

另请参见:
setSuperExecution(ExecutionEntity)

forcedUpdate

protected boolean forcedUpdate

queryVariables

protected List<VariableInstanceEntity> queryVariables
构造方法详细信息

ExecutionEntity

public ExecutionEntity()

ExecutionEntity

public ExecutionEntity(ActivityImpl activityImpl)
方法详细信息

createExecution

public ExecutionEntity createExecution()
creates a new execution. properties processDefinition, processInstance and activity will be initialized.

指定者:
接口 ActivityExecution 中的 createExecution

createSubProcessInstance

public PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
从接口 ActivityExecution 复制的描述
creates a new sub process instance. The current execution will be the super execution of the created execution.

指定者:
接口 ActivityExecution 中的 createSubProcessInstance
参数:
processDefinition - The PvmProcessDefinition of the subprocess.

newExecution

protected ExecutionEntity newExecution()

initialize

public void initialize()
指定者:
接口 InterpretableExecution 中的 initialize

start

public void start()
指定者:
接口 PvmProcessInstance 中的 start

destroy

public void destroy()
指定者:
接口 InterpretableExecution 中的 destroy

end

public void end()
removes an execution. if there are nested executions, those will be ended recursively. if there is a parent, this method removes the bidirectional relation between parent and this execution.

指定者:
接口 ActivityExecution 中的 end

signal

public void signal(String signalName,
                   Object signalData)
指定者:
接口 PvmExecution 中的 signal

take

public void take(PvmTransition transition)
从接口 ActivityExecution 复制的描述
leaves the current activity by taking the given transition.

指定者:
接口 ActivityExecution 中的 take
指定者:
接口 InterpretableExecution 中的 take

executeActivity

public void executeActivity(PvmActivity activity)
从接口 ActivityExecution 复制的描述
Executes the ActivityBehavior associated with the given activity.

指定者:
接口 ActivityExecution 中的 executeActivity

findInactiveConcurrentExecutions

public List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
从接口 ActivityExecution 复制的描述
Retrieves all executions which are concurrent and inactive at the given activity.

指定者:
接口 ActivityExecution 中的 findInactiveConcurrentExecutions

getAllChildExecutions

protected List<ExecutionEntity> getAllChildExecutions()

takeAll

public void takeAll(List<PvmTransition> transitions,
                    List<ActivityExecution> recyclableExecutions)
从接口 ActivityExecution 复制的描述
Takes the given outgoing transitions, and potentially reusing the given list of executions that were previously joined.

指定者:
接口 ActivityExecution 中的 takeAll

allExecutionsInSameActivity

protected boolean allExecutionsInSameActivity(List<ExecutionEntity> executions)

performOperation

public void performOperation(AtomicOperation executionOperation)
指定者:
接口 InterpretableExecution 中的 performOperation

performOperationSync

protected void performOperationSync(AtomicOperation executionOperation)

scheduleAtomicOperationAsync

protected void scheduleAtomicOperationAsync(AtomicOperation executionOperation)

isActive

public boolean isActive(String activityId)

inactivate

public void inactivate()
从接口 ActivityExecution 复制的描述
Inactivates this execution. This is useful for example in a join: the execution still exists, but it is not longer active.

指定者:
接口 ActivityExecution 中的 inactivate

getExecutions

public List<ExecutionEntity> getExecutions()
ensures initialization and returns the non-null executions list

指定者:
接口 ActivityExecution 中的 getExecutions

ensureExecutionsInitialized

protected void ensureExecutionsInitialized()

setExecutions

public void setExecutions(List<ExecutionEntity> executions)

findExecution

public ExecutionEntity findExecution(String activityId)
searches for an execution positioned in the given activity

指定者:
接口 PvmProcessInstance 中的 findExecution

findActiveActivityIds

public List<String> findActiveActivityIds()
指定者:
接口 PvmProcessInstance 中的 findActiveActivityIds

collectActiveActivityIds

protected void collectActiveActivityIds(List<String> activeActivityIds)

getBusinessKey

public String getBusinessKey()
从接口 DelegateExecution 复制的描述
The business key for this execution. Only returns a value if the delegate execution is a process instance.

指定者:
接口 DelegateExecution 中的 getBusinessKey
指定者:
接口 ProcessInstance 中的 getBusinessKey

setBusinessKey

public void setBusinessKey(String businessKey)

getProcessBusinessKey

public String getProcessBusinessKey()
从接口 DelegateExecution 复制的描述
The business key for the process instance this execution is associated with.

指定者:
接口 DelegateExecution 中的 getProcessBusinessKey

getProcessDefinition

public ProcessDefinitionImpl getProcessDefinition()
ensures initialization and returns the process definition.

指定者:
接口 InterpretableExecution 中的 getProcessDefinition

setProcessDefinitionId

public void setProcessDefinitionId(String processDefinitionId)

getProcessDefinitionId

public String getProcessDefinitionId()
从接口 DelegateExecution 复制的描述
The process definition key for the process instance this execution is associated with.

指定者:
接口 DelegateExecution 中的 getProcessDefinitionId
指定者:
接口 ProcessInstance 中的 getProcessDefinitionId

ensureProcessDefinitionInitialized

protected void ensureProcessDefinitionInitialized()
for setting the process definition, this setter must be used as subclasses can override


setProcessDefinition

public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
指定者:
接口 InterpretableExecution 中的 setProcessDefinition

getProcessInstance

public ExecutionEntity getProcessInstance()
ensures initialization and returns the process instance.


ensureProcessInstanceInitialized

protected void ensureProcessInstanceInitialized()

setProcessInstance

public void setProcessInstance(InterpretableExecution processInstance)
指定者:
接口 InterpretableExecution 中的 setProcessInstance

isProcessInstanceType

public boolean isProcessInstanceType()
从接口 ActivityExecution 复制的描述
returns whether this execution is a process instance or not.

指定者:
接口 ActivityExecution 中的 isProcessInstanceType

getActivity

public ActivityImpl getActivity()
ensures initialization and returns the activity

指定者:
接口 ActivityExecution 中的 getActivity
指定者:
接口 PvmExecution 中的 getActivity

ensureActivityInitialized

protected void ensureActivityInitialized()
must be called before the activity member field or getActivity() is called


setActivity

public void setActivity(ActivityImpl activity)
指定者:
接口 InterpretableExecution 中的 setActivity

getParent

public ExecutionEntity getParent()
ensures initialization and returns the parent

指定者:
接口 ActivityExecution 中的 getParent

ensureParentInitialized

protected void ensureParentInitialized()

setParent

public void setParent(InterpretableExecution parent)
指定者:
接口 InterpretableExecution 中的 setParent

getSuperExecutionId

public String getSuperExecutionId()

getSuperExecution

public ExecutionEntity getSuperExecution()
指定者:
接口 InterpretableExecution 中的 getSuperExecution

setSuperExecution

public void setSuperExecution(ExecutionEntity superExecution)

ensureSuperExecutionInitialized

protected void ensureSuperExecutionInitialized()

getSubProcessInstance

public ExecutionEntity getSubProcessInstance()
指定者:
接口 InterpretableExecution 中的 getSubProcessInstance

setSubProcessInstance

public void setSubProcessInstance(InterpretableExecution subProcessInstance)
指定者:
接口 InterpretableExecution 中的 setSubProcessInstance

ensureSubProcessInstanceInitialized

protected void ensureSubProcessInstanceInitialized()

getScopeObject

protected ScopeImpl getScopeObject()

isScope

public boolean isScope()
从接口 ActivityExecution 复制的描述
Returns whether this execution is a scope.

指定者:
接口 ActivityExecution 中的 isScope
指定者:
接口 InterpretableExecution 中的 isScope

setScope

public void setScope(boolean isScope)
从接口 ActivityExecution 复制的描述
Changes whether this execution is a scope or not

指定者:
接口 ActivityExecution 中的 setScope

remove

public void remove()
指定者:
接口 InterpretableExecution 中的 remove

destroyScope

public void destroyScope(String reason)
从接口 ActivityExecution 复制的描述
Called when an execution is interrupted. Performs destroy scope behavior: all child executions and sub-process instances and other related resources are removed. The execution itself can continue execution.

指定者:
接口 ActivityExecution 中的 destroyScope

getReplacedBy

public ExecutionEntity getReplacedBy()
指定者:
接口 InterpretableExecution 中的 getReplacedBy

setReplacedBy

public void setReplacedBy(InterpretableExecution replacedBy)
指定者:
接口 InterpretableExecution 中的 setReplacedBy

initializeVariableInstanceBackPointer

protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
指定者:
VariableScopeImpl 中的 initializeVariableInstanceBackPointer

loadVariableInstances

protected List<VariableInstanceEntity> loadVariableInstances()
指定者:
VariableScopeImpl 中的 loadVariableInstances

getParentVariableScope

protected VariableScopeImpl getParentVariableScope()
指定者:
VariableScopeImpl 中的 getParentVariableScope

getSourceActivityExecution

protected ExecutionEntity getSourceActivityExecution()
used to calculate the sourceActivityExecution for method #updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntity)

覆盖:
VariableScopeImpl 中的 getSourceActivityExecution

isActivityIdUsedForDetails

protected boolean isActivityIdUsedForDetails()
从类 VariableScopeImpl 复制的描述
Execution variable updates have activity instance ids, but historic task variable updates don't.

覆盖:
VariableScopeImpl 中的 isActivityIdUsedForDetails

getPersistentState

public Object getPersistentState()
从接口 PersistentObject 复制的描述
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.

指定者:
接口 PersistentObject 中的 getPersistentState

insert

public void insert()

deleteCascade

public void deleteCascade(String deleteReason)
指定者:
接口 PvmProcessInstance 中的 deleteCascade
指定者:
接口 InterpretableExecution 中的 deleteCascade

getRevisionNext

public int getRevisionNext()
指定者:
接口 HasRevision 中的 getRevisionNext

forceUpdate

public void forceUpdate()

getEngineServices

public EngineServices getEngineServices()
从接口 DelegateExecution 复制的描述
All Activiti services can be accessed through this interface.

指定者:
接口 DelegateExecution 中的 getEngineServices

toString

public String toString()
覆盖:
Object 中的 toString

getToStringIdentity

protected String getToStringIdentity()

getEventSubscriptionsInternal

public List<EventSubscriptionEntity> getEventSubscriptionsInternal()

getEventSubscriptions

public List<EventSubscriptionEntity> getEventSubscriptions()

getCompensateEventSubscriptions

public List<CompensateEventSubscriptionEntity> getCompensateEventSubscriptions()

getCompensateEventSubscriptions

public List<CompensateEventSubscriptionEntity> getCompensateEventSubscriptions(String activityId)

ensureEventSubscriptionsInitialized

protected void ensureEventSubscriptionsInitialized()

addEventSubscription

public void addEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)

removeEventSubscription

public void removeEventSubscription(EventSubscriptionEntity eventSubscriptionEntity)

ensureJobsInitialized

protected void ensureJobsInitialized()

getJobsInternal

protected List<JobEntity> getJobsInternal()

getJobs

public List<JobEntity> getJobs()

addJob

public void addJob(JobEntity jobEntity)

removeJob

public void removeJob(JobEntity job)

ensureTasksInitialized

protected void ensureTasksInitialized()

getTasksInternal

protected List<TaskEntity> getTasksInternal()

getTasks

public List<TaskEntity> getTasks()

addTask

public void addTask(TaskEntity taskEntity)

removeTask

public void removeTask(TaskEntity task)

getIdentityLinks

public List<IdentityLinkEntity> getIdentityLinks()

addIdentityLink

public IdentityLinkEntity addIdentityLink(String userId,
                                          String type)

involveUser

public 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.


removeIdentityLinks

public void removeIdentityLinks()

setCachedEntityState

public void setCachedEntityState(int cachedEntityState)

getCachedEntityState

public int getCachedEntityState()

getProcessInstanceId

public String getProcessInstanceId()
从接口 DelegateExecution 复制的描述
Reference to the overall process instance

指定者:
接口 DelegateExecution 中的 getProcessInstanceId
指定者:
接口 Execution 中的 getProcessInstanceId

getParentId

public String getParentId()
从接口 DelegateExecution 复制的描述
Gets the id of the parent of this execution. If null, the execution represents a process-instance.

指定者:
接口 DelegateExecution 中的 getParentId
指定者:
接口 Execution 中的 getParentId

setParentId

public void setParentId(String parentId)

getId

public String getId()
从接口 DelegateExecution 复制的描述
Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.

指定者:
接口 DelegateExecution 中的 getId
指定者:
接口 PersistentObject 中的 getId
指定者:
接口 Execution 中的 getId
覆盖:
VariableScopeImpl 中的 getId

setId

public void setId(String id)
指定者:
接口 PersistentObject 中的 setId
覆盖:
VariableScopeImpl 中的 setId

getRevision

public int getRevision()
指定者:
接口 HasRevision 中的 getRevision

setRevision

public void setRevision(int revision)
指定者:
接口 HasRevision 中的 setRevision

getActivityId

public String getActivityId()
从接口 Execution 复制的描述
Returns the id of the activity where the execution currently is at. Returns null if the execution is not a 'leaf' execution (eg concurrent parent).

指定者:
接口 Execution 中的 getActivityId

getTransition

public TransitionImpl getTransition()
指定者:
接口 InterpretableExecution 中的 getTransition

setTransition

public void setTransition(TransitionImpl transition)
指定者:
接口 InterpretableExecution 中的 setTransition

getTransitionBeingTaken

public TransitionImpl getTransitionBeingTaken()

setTransitionBeingTaken

public void setTransitionBeingTaken(TransitionImpl transitionBeingTaken)

getExecutionListenerIndex

public Integer getExecutionListenerIndex()
指定者:
接口 InterpretableExecution 中的 getExecutionListenerIndex

setExecutionListenerIndex

public void setExecutionListenerIndex(Integer executionListenerIndex)
指定者:
接口 InterpretableExecution 中的 setExecutionListenerIndex

isConcurrent

public boolean isConcurrent()
从接口 ActivityExecution 复制的描述
returns whether this execution is concurrent or not.

指定者:
接口 ActivityExecution 中的 isConcurrent

setConcurrent

public void setConcurrent(boolean isConcurrent)
从接口 ActivityExecution 复制的描述
changes the concurrent indicator on this execution.

指定者:
接口 ActivityExecution 中的 setConcurrent

isActive

public boolean isActive()
从接口 ActivityExecution 复制的描述
returns whether this execution is currently active.

指定者:
接口 ActivityExecution 中的 isActive

setActive

public void setActive(boolean isActive)
从接口 ActivityExecution 复制的描述
makes this execution active or inactive.

指定者:
接口 ActivityExecution 中的 setActive

isEnded

public boolean isEnded()
从接口 ActivityExecution 复制的描述
returns whether this execution has ended or not.

指定者:
接口 ActivityExecution 中的 isEnded
指定者:
接口 PvmProcessInstance 中的 isEnded
指定者:
接口 Execution 中的 isEnded

getEventName

public String getEventName()
从接口 DelegateExecution 复制的描述
The event name in case this execution is passed in for an ExecutionListener

指定者:
接口 DelegateExecution 中的 getEventName
指定者:
接口 ExecutionListenerExecution 中的 getEventName

setEventName

public void setEventName(String eventName)
指定者:
接口 InterpretableExecution 中的 setEventName

getEventSource

public PvmProcessElement getEventSource()
指定者:
接口 ExecutionListenerExecution 中的 getEventSource

setEventSource

public void setEventSource(PvmProcessElement eventSource)
指定者:
接口 InterpretableExecution 中的 setEventSource

getDeleteReason

public String getDeleteReason()
指定者:
接口 ExecutionListenerExecution 中的 getDeleteReason

setDeleteReason

public void setDeleteReason(String deleteReason)

isDeleteRoot

public boolean isDeleteRoot()
指定者:
接口 InterpretableExecution 中的 isDeleteRoot

getSuspensionState

public int getSuspensionState()

setSuspensionState

public void setSuspensionState(int suspensionState)

isSuspended

public boolean isSuspended()
从接口 Execution 复制的描述
Indicates if the execution is suspended.

指定者:
接口 Execution 中的 isSuspended
指定者:
接口 ProcessInstance 中的 isSuspended

isEventScope

public boolean isEventScope()
指定者:
接口 InterpretableExecution 中的 isEventScope

setEventScope

public void setEventScope(boolean isEventScope)
指定者:
接口 InterpretableExecution 中的 setEventScope

getStartingExecution

public StartingExecution getStartingExecution()
指定者:
接口 InterpretableExecution 中的 getStartingExecution

disposeStartingExecution

public void disposeStartingExecution()
指定者:
接口 InterpretableExecution 中的 disposeStartingExecution

getCurrentActivityId

public String getCurrentActivityId()
从接口 DelegateExecution 复制的描述
Gets the id of the current activity.

指定者:
接口 DelegateExecution 中的 getCurrentActivityId

getCurrentActivityName

public String getCurrentActivityName()
从接口 DelegateExecution 复制的描述
Gets the name of the current activity.

指定者:
接口 DelegateExecution 中的 getCurrentActivityName

getProcessVariables

public Map<String,Object> getProcessVariables()
从接口 ProcessInstance 复制的描述
Returns the process variables if requested in the process instance query

指定者:
接口 ProcessInstance 中的 getProcessVariables

getQueryVariables

public List<VariableInstanceEntity> getQueryVariables()

setQueryVariables

public void setQueryVariables(List<VariableInstanceEntity> queryVariables)

updateProcessBusinessKey

public String updateProcessBusinessKey(String bzKey)
从接口 DelegateExecution 复制的描述
Update process business key if not null. Returns null if not updated

指定者:
接口 DelegateExecution 中的 updateProcessBusinessKey


Copyright © 2013 Alfresco. All rights reserved.