|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.pvm.runtime.ExecutionImpl
public class ExecutionImpl
字段摘要 | |
---|---|
protected ActivityImpl |
activity
current activity |
protected String |
deleteReason
|
protected boolean |
deleteRoot
|
protected String |
eventName
|
protected PvmProcessElement |
eventSource
|
protected int |
executionListenerIndex
|
protected List<ExecutionImpl> |
executions
nested executions representing scopes or concurrent paths |
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 AtomicOperation |
nextOperation
next operation. |
protected ExecutionImpl |
parent
the parent execution |
protected ProcessDefinitionImpl |
processDefinition
|
protected ExecutionImpl |
processInstance
the process instance. |
protected ExecutionImpl |
replacedBy
when execution structure is pruned during a takeAll, then the original execution has to be resolved to the replaced execution. |
protected StartingExecution |
startingExecution
only available until the process instance is started |
protected ExecutionImpl |
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution |
protected ExecutionImpl |
superExecution
super execution, not-null if this execution is part of a subprocess |
protected TransitionImpl |
transition
current transition. |
protected Map<String,Object> |
variables
|
构造方法摘要 | |
---|---|
ExecutionImpl()
|
|
ExecutionImpl(ActivityImpl initial)
|
方法摘要 | |
---|---|
protected void |
collectActiveActivityIds(List<String> activeActivityIds)
|
protected void |
collectVariables(Map<String,Object> collectedVariables)
|
ExecutionImpl |
createExecution()
creates a new execution. properties processDefinition, processInstance and activity will be initialized. |
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance. |
void |
createVariableLocal(String variableName,
Object value)
|
void |
createVariablesLocal(Map<String,? extends Object> variables)
|
void |
deleteCascade(String deleteReason)
|
void |
deleteVariablesLocal()
|
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 |
ensureExecutionsInitialized()
must be called before memberfield executions is used. |
protected void |
ensureParentInitialized()
must be called before memberfield parent is used. |
protected void |
ensureProcessDefinitionInitialized()
must be called before memberfield processDefinition is used. |
protected void |
ensureProcessInstanceInitialized()
must be called before memberfield processInstance is used. |
protected void |
ensureScopeInitialized()
|
protected void |
ensureSubProcessInstanceInitialized()
|
protected void |
ensureSuperExecutionInitialized()
|
protected void |
ensureVariablesInitialized()
|
void |
executeActivity(PvmActivity activity)
Executes the ActivityBehavior associated with the given activity. |
List<String> |
findActiveActivityIds()
|
ExecutionImpl |
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. |
ActivityImpl |
getActivity()
ensures initialization and returns the activity |
String |
getBusinessKey()
The business key for this execution. |
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()
|
Integer |
getExecutionListenerIndex()
|
List<ExecutionImpl> |
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. |
ExecutionImpl |
getParent()
ensures initialization and returns the parent |
String |
getParentId()
Gets the id of the parent of this execution. |
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. |
ExecutionImpl |
getProcessInstance()
ensures initialization and returns the process instance. |
String |
getProcessInstanceId()
Reference to the overall process instance |
ExecutionImpl |
getReplacedBy()
|
StartingExecution |
getStartingExecution()
|
ExecutionImpl |
getSubProcessInstance()
|
ExecutionImpl |
getSuperExecution()
|
protected String |
getToStringIdentity()
|
TransitionImpl |
getTransition()
|
Object |
getVariable(String variableName)
|
Object |
getVariableLocal(String variableName)
|
Set<String> |
getVariableNames()
|
Set<String> |
getVariableNamesLocal()
|
Map<String,Object> |
getVariables()
|
Map<String,Object> |
getVariablesLocal()
|
boolean |
hasVariable(String variableName)
|
boolean |
hasVariableLocal(String variableName)
|
boolean |
hasVariables()
|
boolean |
hasVariablesLocal()
|
void |
inactivate()
Inactivates this execution. |
void |
initialize()
|
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 |
isProcessInstanceType()
returns whether this execution is a process instance or not. |
boolean |
isScope()
Returns whether this execution is a scope. |
protected ExecutionImpl |
newExecution()
instantiates a new execution. |
void |
performOperation(AtomicOperation executionOperation)
|
void |
remove()
|
void |
removeVariable(String variableName)
Removes the variable and creates a new HistoricVariableUpdateEntity . |
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new HistoricVariableUpdateEntity . |
void |
removeVariables()
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariables(Collection<String> variableNames)
Removes the variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal()
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal(Collection<String> variableNames)
Removes the local variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
setActive(boolean isActive)
makes this execution active or inactive. |
void |
setActivity(ActivityImpl activity)
sets the current activity. |
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<ExecutionImpl> executions)
|
void |
setParent(InterpretableExecution parent)
all updates need to go through this setter as subclasses can override this method |
void |
setProcessDefinition(ProcessDefinitionImpl processDefinition)
|
void |
setProcessInstance(InterpretableExecution processInstance)
for setting the process instance, this setter must be used as subclasses can override |
void |
setReplacedBy(InterpretableExecution replacedBy)
|
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not |
void |
setSubProcessInstance(InterpretableExecution subProcessInstance)
|
void |
setSuperExecution(ExecutionImpl superExecution)
|
void |
setTransition(TransitionImpl transition)
|
void |
setVariable(String variableName,
Object value)
|
Object |
setVariableLocal(String variableName,
Object value)
|
void |
setVariableLocally(String variableName,
Object value)
|
void |
setVariables(Map<String,? extends Object> variables)
|
void |
setVariablesLocal(Map<String,? extends Object> variables)
|
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. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
protected ProcessDefinitionImpl processDefinition
protected ActivityImpl activity
protected TransitionImpl transition
protected ExecutionImpl processInstance
protected ExecutionImpl parent
protected List<ExecutionImpl> executions
protected ExecutionImpl superExecution
protected ExecutionImpl subProcessInstance
protected StartingExecution startingExecution
protected boolean isActive
protected boolean isScope
protected boolean isConcurrent
protected boolean isEnded
protected boolean isEventScope
protected Map<String,Object> variables
protected String eventName
protected PvmProcessElement eventSource
protected int executionListenerIndex
protected boolean deleteRoot
protected String deleteReason
protected ExecutionImpl replacedBy
#takeAll(List, List)} {@link OutgoingExecution}
protected AtomicOperation nextOperation
AtomicOperation
,
performOperation(AtomicOperation)
protected boolean isOperating
构造方法详细信息 |
---|
public ExecutionImpl()
public ExecutionImpl(ActivityImpl initial)
方法详细信息 |
---|
public ExecutionImpl createExecution()
ActivityExecution
中的 createExecution
protected ExecutionImpl newExecution()
public PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
ActivityExecution
复制的描述
ActivityExecution
中的 createSubProcessInstance
processDefinition
- The PvmProcessDefinition
of the subprocess.public void initialize()
InterpretableExecution
中的 initialize
public void destroy()
InterpretableExecution
中的 destroy
public void remove()
InterpretableExecution
中的 remove
public void destroyScope(String reason)
ActivityExecution
复制的描述
ActivityExecution
中的 destroyScope
public ExecutionImpl getParent()
ActivityExecution
中的 getParent
public String getParentId()
DelegateExecution
复制的描述
DelegateExecution
中的 getParentId
public void setParent(InterpretableExecution parent)
InterpretableExecution
中的 setParent
protected void ensureParentInitialized()
public List<ExecutionImpl> getExecutions()
ActivityExecution
中的 getExecutions
public ExecutionImpl getSuperExecution()
InterpretableExecution
中的 getSuperExecution
public void setSuperExecution(ExecutionImpl superExecution)
protected void ensureSuperExecutionInitialized()
public ExecutionImpl getSubProcessInstance()
InterpretableExecution
中的 getSubProcessInstance
public void setSubProcessInstance(InterpretableExecution subProcessInstance)
InterpretableExecution
中的 setSubProcessInstance
protected void ensureSubProcessInstanceInitialized()
public void deleteCascade(String deleteReason)
PvmProcessInstance
中的 deleteCascade
InterpretableExecution
中的 deleteCascade
public void end()
ActivityExecution
中的 end
public ExecutionImpl findExecution(String activityId)
PvmProcessInstance
中的 findExecution
public List<String> findActiveActivityIds()
PvmProcessInstance
中的 findActiveActivityIds
protected void collectActiveActivityIds(List<String> activeActivityIds)
protected void ensureExecutionsInitialized()
public ProcessDefinitionImpl getProcessDefinition()
InterpretableExecution
中的 getProcessDefinition
public String getProcessDefinitionId()
DelegateExecution
复制的描述
DelegateExecution
中的 getProcessDefinitionId
protected void ensureProcessDefinitionInitialized()
public ExecutionImpl getProcessInstance()
public String getProcessInstanceId()
DelegateExecution
复制的描述
DelegateExecution
中的 getProcessInstanceId
public String getBusinessKey()
DelegateExecution
复制的描述
DelegateExecution
中的 getBusinessKey
public String getProcessBusinessKey()
DelegateExecution
复制的描述
DelegateExecution
中的 getProcessBusinessKey
public void setProcessInstance(InterpretableExecution processInstance)
InterpretableExecution
中的 setProcessInstance
protected void ensureProcessInstanceInitialized()
public ActivityImpl getActivity()
ActivityExecution
中的 getActivity
PvmExecution
中的 getActivity
public void setActivity(ActivityImpl activity)
InterpretableExecution
中的 setActivity
protected void ensureActivityInitialized()
protected void ensureScopeInitialized()
public boolean isScope()
ActivityExecution
复制的描述
ActivityExecution
中的 isScope
InterpretableExecution
中的 isScope
public void setScope(boolean isScope)
ActivityExecution
复制的描述
ActivityExecution
中的 setScope
public void start()
PvmProcessInstance
中的 start
public void signal(String signalName, Object signalData)
PvmExecution
中的 signal
public void take(PvmTransition transition)
ActivityExecution
复制的描述
ActivityExecution
中的 take
InterpretableExecution
中的 take
public void executeActivity(PvmActivity activity)
ActivityExecution
复制的描述ActivityBehavior
associated with the given activity.
ActivityExecution
中的 executeActivity
public List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
ActivityExecution
复制的描述
ActivityExecution
中的 findInactiveConcurrentExecutions
public void takeAll(List<PvmTransition> transitions, List<ActivityExecution> recyclableExecutions)
ActivityExecution
复制的描述
ActivityExecution
中的 takeAll
public void performOperation(AtomicOperation executionOperation)
InterpretableExecution
中的 performOperation
public boolean isActive(String activityId)
public Object getVariable(String variableName)
VariableScope
中的 getVariable
PvmExecution
中的 getVariable
public Map<String,Object> getVariables()
VariableScope
中的 getVariables
PvmExecution
中的 getVariables
protected void collectVariables(Map<String,Object> collectedVariables)
public void setVariables(Map<String,? extends Object> variables)
VariableScope
中的 setVariables
public void setVariable(String variableName, Object value)
VariableScope
中的 setVariable
PvmExecution
中的 setVariable
public void setVariableLocally(String variableName, Object value)
public boolean hasVariable(String variableName)
VariableScope
中的 hasVariable
PvmExecution
中的 hasVariable
protected void ensureVariablesInitialized()
public EngineServices getEngineServices()
DelegateExecution
复制的描述
DelegateExecution
中的 getEngineServices
public String toString()
Object
中的 toString
protected String getToStringIdentity()
public boolean isProcessInstanceType()
ActivityExecution
复制的描述
ActivityExecution
中的 isProcessInstanceType
public void inactivate()
ActivityExecution
复制的描述
ActivityExecution
中的 inactivate
public String getId()
DelegateExecution
复制的描述
DelegateExecution
中的 getId
public TransitionImpl getTransition()
InterpretableExecution
中的 getTransition
public void setTransition(TransitionImpl transition)
InterpretableExecution
中的 setTransition
public Integer getExecutionListenerIndex()
InterpretableExecution
中的 getExecutionListenerIndex
public void setExecutionListenerIndex(Integer executionListenerIndex)
InterpretableExecution
中的 setExecutionListenerIndex
public boolean isConcurrent()
ActivityExecution
复制的描述
ActivityExecution
中的 isConcurrent
public void setConcurrent(boolean isConcurrent)
ActivityExecution
复制的描述
ActivityExecution
中的 setConcurrent
public boolean isActive()
ActivityExecution
复制的描述
ActivityExecution
中的 isActive
public void setActive(boolean isActive)
ActivityExecution
复制的描述
ActivityExecution
中的 setActive
public boolean isEnded()
ActivityExecution
复制的描述
ActivityExecution
中的 isEnded
PvmProcessInstance
中的 isEnded
public void setProcessDefinition(ProcessDefinitionImpl processDefinition)
InterpretableExecution
中的 setProcessDefinition
public String getEventName()
DelegateExecution
复制的描述event name
in case this execution is passed in for an ExecutionListener
DelegateExecution
中的 getEventName
ExecutionListenerExecution
中的 getEventName
public void setEventName(String eventName)
InterpretableExecution
中的 setEventName
public PvmProcessElement getEventSource()
ExecutionListenerExecution
中的 getEventSource
public void setEventSource(PvmProcessElement eventSource)
InterpretableExecution
中的 setEventSource
public String getDeleteReason()
ExecutionListenerExecution
中的 getDeleteReason
public void setDeleteReason(String deleteReason)
public ExecutionImpl getReplacedBy()
InterpretableExecution
中的 getReplacedBy
public void setReplacedBy(InterpretableExecution replacedBy)
InterpretableExecution
中的 setReplacedBy
public void setExecutions(List<ExecutionImpl> executions)
public boolean isDeleteRoot()
InterpretableExecution
中的 isDeleteRoot
public String getCurrentActivityId()
DelegateExecution
复制的描述
DelegateExecution
中的 getCurrentActivityId
public String getCurrentActivityName()
DelegateExecution
复制的描述
DelegateExecution
中的 getCurrentActivityName
public void createVariableLocal(String variableName, Object value)
VariableScope
中的 createVariableLocal
public void createVariablesLocal(Map<String,? extends Object> variables)
public Object getVariableLocal(String variableName)
VariableScope
中的 getVariableLocal
public Set<String> getVariableNames()
VariableScope
中的 getVariableNames
public Set<String> getVariableNamesLocal()
VariableScope
中的 getVariableNamesLocal
public Map<String,Object> getVariablesLocal()
VariableScope
中的 getVariablesLocal
public boolean hasVariableLocal(String variableName)
VariableScope
中的 hasVariableLocal
public boolean hasVariables()
VariableScope
中的 hasVariables
public boolean hasVariablesLocal()
VariableScope
中的 hasVariablesLocal
public void removeVariable(String variableName)
VariableScope
复制的描述HistoricVariableUpdateEntity
.
VariableScope
中的 removeVariable
public void removeVariableLocal(String variableName)
VariableScope
复制的描述HistoricVariableUpdateEntity
.
VariableScope
中的 removeVariableLocal
public void removeVariables(Collection<String> variableNames)
VariableScope
复制的描述HistoricVariableUpdateEntity
for each of them.
VariableScope
中的 removeVariables
public void removeVariablesLocal(Collection<String> variableNames)
VariableScope
复制的描述HistoricVariableUpdateEntity
for each of them.
VariableScope
中的 removeVariablesLocal
public void removeVariables()
VariableScope
复制的描述HistoricVariableUpdateEntity
for each of them.
VariableScope
中的 removeVariables
public void removeVariablesLocal()
VariableScope
复制的描述HistoricVariableUpdateEntity
for each of them.
VariableScope
中的 removeVariablesLocal
public void deleteVariablesLocal()
public Object setVariableLocal(String variableName, Object value)
VariableScope
中的 setVariableLocal
public void setVariablesLocal(Map<String,? extends Object> variables)
VariableScope
中的 setVariablesLocal
public boolean isEventScope()
InterpretableExecution
中的 isEventScope
public void setEventScope(boolean isEventScope)
InterpretableExecution
中的 setEventScope
public StartingExecution getStartingExecution()
InterpretableExecution
中的 getStartingExecution
public void disposeStartingExecution()
InterpretableExecution
中的 disposeStartingExecution
public String updateProcessBusinessKey(String bzKey)
DelegateExecution
复制的描述
DelegateExecution
中的 updateProcessBusinessKey
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |