Package org.activiti.engine.impl.agenda
Class AbstractOperation
- java.lang.Object
-
- org.activiti.engine.impl.agenda.AbstractOperation
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ContinueMultiInstanceOperation,ContinueProcessOperation,DestroyScopeOperation,EndExecutionOperation,ExecuteInactiveBehaviorsOperation,TakeOutgoingSequenceFlowsOperation,TriggerExecutionOperation
public abstract class AbstractOperation extends java.lang.Object implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected Agendaagendaprotected CommandContextcommandContextprotected ExecutionEntityexecution
-
Constructor Summary
Constructors Constructor Description AbstractOperation()AbstractOperation(CommandContext commandContext, ExecutionEntity execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners, java.lang.String eventType)Executes the execution listeners defined on the given element, with the given event type.protected voidexecuteExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners, ExecutionEntity executionEntity, java.lang.String eventType)Executes the execution listeners defined on the given element, with the given event type, and passing the provided execution to theExecutionListenerinstances.protected ExecutionEntityfindFirstParentScopeExecution(ExecutionEntity executionEntity)Returns the first parent execution of the provided execution that is a scope.AgendagetAgenda()CommandContextgetCommandContext()protected org.activiti.bpmn.model.FlowElementgetCurrentFlowElement(ExecutionEntity execution)Helper method to match the activityId of an execution with a FlowElement of the process definition referenced by the execution.ExecutionEntitygetExecution()voidsetAgenda(DefaultActivitiEngineAgenda agenda)voidsetCommandContext(CommandContext commandContext)voidsetExecution(ExecutionEntity execution)
-
-
-
Field Detail
-
commandContext
protected CommandContext commandContext
-
agenda
protected Agenda agenda
-
execution
protected ExecutionEntity execution
-
-
Constructor Detail
-
AbstractOperation
public AbstractOperation()
-
AbstractOperation
public AbstractOperation(CommandContext commandContext, ExecutionEntity execution)
-
-
Method Detail
-
getCurrentFlowElement
protected org.activiti.bpmn.model.FlowElement getCurrentFlowElement(ExecutionEntity execution)
Helper method to match the activityId of an execution with a FlowElement of the process definition referenced by the execution.
-
executeExecutionListeners
protected void executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners, java.lang.String eventType)Executes the execution listeners defined on the given element, with the given event type. Uses theexecutionof this operation instance as argument for the execution listener.
-
executeExecutionListeners
protected void executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners, ExecutionEntity executionEntity, java.lang.String eventType)Executes the execution listeners defined on the given element, with the given event type, and passing the provided execution to theExecutionListenerinstances.
-
findFirstParentScopeExecution
protected ExecutionEntity findFirstParentScopeExecution(ExecutionEntity executionEntity)
Returns the first parent execution of the provided execution that is a scope.
-
getCommandContext
public CommandContext getCommandContext()
-
setCommandContext
public void setCommandContext(CommandContext commandContext)
-
getAgenda
public Agenda getAgenda()
-
setAgenda
public void setAgenda(DefaultActivitiEngineAgenda agenda)
-
getExecution
public ExecutionEntity getExecution()
-
setExecution
public void setExecution(ExecutionEntity execution)
-
-