org.activiti.engine.impl.pvm.delegate
接口 ActivityExecution

所有超级接口:
DelegateExecution, VariableScope
所有已知子接口:
InterpretableExecution
所有已知实现类:
ExecutionEntity, ExecutionImpl

public interface ActivityExecution
extends DelegateExecution

作者:
Tom Baeyens, Joram Barrez, Daniel Meyer, Falko Menge

方法摘要
 ActivityExecution createExecution()
          creates a new execution.
 PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
          creates a new sub process instance.
 void destroyScope(String string)
          Called when an execution is interrupted.
 void end()
          ends this execution.
 void executeActivity(PvmActivity activity)
          Executes the ActivityBehavior associated with the given activity.
 List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
          Retrieves all executions which are concurrent and inactive at the given activity.
 PvmActivity getActivity()
          returns the current PvmActivity of the execution.
 List<? extends ActivityExecution> getExecutions()
          returns the list of execution of which this execution the parent of.
 ActivityExecution getParent()
          returns the parent of this execution, or null if there no parent.
 void inactivate()
          Inactivates this execution.
 boolean isActive()
          returns whether this execution is currently active.
 boolean isConcurrent()
          returns whether this execution is concurrent or not.
 boolean isEnded()
          returns whether this execution has ended or not.
 boolean isProcessInstanceType()
          returns whether this execution is a process instance or not.
 boolean isScope()
          Returns whether this execution is a scope.
 void setActive(boolean isActive)
          makes this execution active or inactive.
 void setConcurrent(boolean isConcurrent)
          changes the concurrent indicator on this execution.
 void setScope(boolean isScope)
          Changes whether this execution is a scope or not
 void take(PvmTransition transition)
          leaves the current activity by taking the given transition.
 void takeAll(List<PvmTransition> outgoingTransitions, List<ActivityExecution> joinedExecutions)
          Takes the given outgoing transitions, and potentially reusing the given list of executions that were previously joined.
 
从接口 org.activiti.engine.delegate.DelegateExecution 继承的方法
getBusinessKey, getCurrentActivityId, getCurrentActivityName, getEngineServices, getEventName, getId, getParentId, getProcessBusinessKey, getProcessDefinitionId, getProcessInstanceId, updateProcessBusinessKey
 
从接口 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
 

方法详细信息

getActivity

PvmActivity getActivity()
returns the current PvmActivity of the execution.


take

void take(PvmTransition transition)
leaves the current activity by taking the given transition.


createExecution

ActivityExecution createExecution()
creates a new execution. This execution will be the parent of the newly created execution. properties processDefinition, processInstance and activity will be initialized.


createSubProcessInstance

PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance. The current execution will be the super execution of the created execution.

参数:
processDefinition - The PvmProcessDefinition of the subprocess.

getParent

ActivityExecution getParent()
returns the parent of this execution, or null if there no parent.


getExecutions

List<? extends ActivityExecution> getExecutions()
returns the list of execution of which this execution the parent of.


end

void end()
ends this execution.


setActive

void setActive(boolean isActive)
makes this execution active or inactive.


isActive

boolean isActive()
returns whether this execution is currently active.


isEnded

boolean isEnded()
returns whether this execution has ended or not.


setConcurrent

void setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.


isConcurrent

boolean isConcurrent()
returns whether this execution is concurrent or not.


isProcessInstanceType

boolean isProcessInstanceType()
returns whether this execution is a process instance or not.


inactivate

void inactivate()
Inactivates this execution. This is useful for example in a join: the execution still exists, but it is not longer active.


isScope

boolean isScope()
Returns whether this execution is a scope.


setScope

void setScope(boolean isScope)
Changes whether this execution is a scope or not


findInactiveConcurrentExecutions

List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity.


takeAll

void takeAll(List<PvmTransition> outgoingTransitions,
             List<ActivityExecution> joinedExecutions)
Takes the given outgoing transitions, and potentially reusing the given list of executions that were previously joined.


executeActivity

void executeActivity(PvmActivity activity)
Executes the ActivityBehavior associated with the given activity.


destroyScope

void destroyScope(String string)
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.



Copyright © 2013 Alfresco. All rights reserved.