public abstract class AbstractOperation extends Object implements Runnable
Runnable instances),
exposing some shared helper methods and member fields to subclasses.
An operations is a Runnable instance that is put on the Agenda during
the execution of a Command.| Modifier and Type | Field and Description |
|---|---|
protected Agenda |
agenda |
protected CommandContext |
commandContext |
protected ExecutionEntity |
execution |
| Constructor and Description |
|---|
AbstractOperation() |
AbstractOperation(CommandContext commandContext,
ExecutionEntity execution) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
ExecutionEntity executionEntity,
String eventType)
Executes the execution listeners defined on the given element, with the given event type,
and passing the provided execution to the
ExecutionListener instances. |
protected void |
executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
String eventType)
Executes the execution listeners defined on the given element, with the given event type.
|
protected ExecutionEntity |
findFirstParentScopeExecution(ExecutionEntity executionEntity)
Returns the first parent execution of the provided execution that is a scope.
|
Agenda |
getAgenda() |
CommandContext |
getCommandContext() |
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.
|
ExecutionEntity |
getExecution() |
void |
setAgenda(Agenda agenda) |
void |
setCommandContext(CommandContext commandContext) |
void |
setExecution(ExecutionEntity execution) |
protected CommandContext commandContext
protected Agenda agenda
protected ExecutionEntity execution
public AbstractOperation()
public AbstractOperation(CommandContext commandContext, ExecutionEntity execution)
protected org.activiti.bpmn.model.FlowElement getCurrentFlowElement(ExecutionEntity execution)
protected void executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
String eventType)
execution of this operation instance as argument for the execution listener.protected void executeExecutionListeners(org.activiti.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
ExecutionEntity executionEntity,
String eventType)
ExecutionListener instances.protected ExecutionEntity findFirstParentScopeExecution(ExecutionEntity executionEntity)
public CommandContext getCommandContext()
public void setCommandContext(CommandContext commandContext)
public Agenda getAgenda()
public void setAgenda(Agenda agenda)
public ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
Copyright © 2016 Alfresco. All rights reserved.