Class AbstractOperation

java.lang.Object
org.flowable.engine.impl.agenda.AbstractOperation
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ContinueMultiInstanceOperation, ContinueProcessOperation, DestroyScopeOperation, EndExecutionOperation, EvaluateConditionalEventsOperation, EvaluateVariableListenerEventDefinitionsOperation, ExecuteInactiveBehaviorsOperation, TakeOutgoingSequenceFlowsOperation, TriggerExecutionOperation

public abstract class AbstractOperation extends Object implements Runnable
Abstract superclass for all operation interfaces (which are 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.
Author:
Joram Barrez
  • Field Details

  • Constructor Details

    • AbstractOperation

      public AbstractOperation()
    • AbstractOperation

      public AbstractOperation(CommandContext commandContext, ExecutionEntity execution)
  • Method Details

    • getCurrentFlowElement

      protected 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(HasExecutionListeners elementWithExecutionListeners, String eventType)
      Executes the execution listeners defined on the given element, with the given event type. Uses the execution of this operation instance as argument for the execution listener.
    • executeExecutionListeners

      protected void executeExecutionListeners(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.
    • 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 FlowableEngineAgenda getAgenda()
    • setAgenda

      public void setAgenda(FlowableEngineAgenda agenda)
    • getExecution

      public ExecutionEntity getExecution()
    • setExecution

      public void setExecution(ExecutionEntity execution)