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 FlowableEngineAgenda during the execution of a Command.| Modifier and Type | Field and Description |
|---|---|
protected FlowableEngineAgenda |
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.flowable.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.flowable.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.
|
FlowableEngineAgenda |
getAgenda() |
CommandContext |
getCommandContext() |
protected org.flowable.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(FlowableEngineAgenda agenda) |
void |
setCommandContext(CommandContext commandContext) |
void |
setExecution(ExecutionEntity execution) |
protected CommandContext commandContext
protected FlowableEngineAgenda agenda
protected ExecutionEntity execution
public AbstractOperation()
public AbstractOperation(CommandContext commandContext, ExecutionEntity execution)
protected org.flowable.bpmn.model.FlowElement getCurrentFlowElement(ExecutionEntity execution)
protected void executeExecutionListeners(org.flowable.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
String eventType)
execution of this operation instance as argument for the execution listener.protected void executeExecutionListeners(org.flowable.bpmn.model.HasExecutionListeners elementWithExecutionListeners,
ExecutionEntity executionEntity,
String eventType)
ExecutionListener instances.protected ExecutionEntity findFirstParentScopeExecution(ExecutionEntity executionEntity)
public CommandContext getCommandContext()
public void setCommandContext(CommandContext commandContext)
public FlowableEngineAgenda getAgenda()
public void setAgenda(FlowableEngineAgenda agenda)
public ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
Copyright © 2018 Flowable. All rights reserved.