public class DefaultFlowableEngineAgenda extends Object implements FlowableEngineAgenda
Command
) being executed, a new agenda instance is created. On this agenda, operations are put, which the CommandExecutor
will keep executing until all
are executed.
The agenda also gives easy access to methods to plan new operations when writing ActivityBehavior
implementations.
During a Command
execution, the agenda can always be fetched using Context.getAgenda()
.Modifier and Type | Field and Description |
---|---|
protected CommandContext |
commandContext |
protected LinkedList<Runnable> |
operations |
Constructor and Description |
---|
DefaultFlowableEngineAgenda(CommandContext commandContext) |
protected CommandContext commandContext
protected LinkedList<Runnable> operations
public DefaultFlowableEngineAgenda(CommandContext commandContext)
public Runnable getNextOperation()
Agenda
getNextOperation
in interface Agenda
public Runnable peekOperation()
Agenda
peekOperation
in interface Agenda
public void planOperation(Runnable operation)
Runnable
.planOperation
in interface Agenda
operation
- operation to runpublic void planOperation(Runnable operation, ExecutionEntity executionEntity)
Runnable
.planOperation
in interface FlowableEngineAgenda
public void planContinueProcessOperation(ExecutionEntity execution)
planContinueProcessOperation
in interface FlowableEngineAgenda
public void planContinueProcessSynchronousOperation(ExecutionEntity execution)
planContinueProcessSynchronousOperation
in interface FlowableEngineAgenda
public void planContinueProcessInCompensation(ExecutionEntity execution)
planContinueProcessInCompensation
in interface FlowableEngineAgenda
public void planContinueMultiInstanceOperation(ExecutionEntity execution)
planContinueMultiInstanceOperation
in interface FlowableEngineAgenda
public void planTakeOutgoingSequenceFlowsOperation(ExecutionEntity execution, boolean evaluateConditions)
planTakeOutgoingSequenceFlowsOperation
in interface FlowableEngineAgenda
public void planEndExecutionOperation(ExecutionEntity execution)
planEndExecutionOperation
in interface FlowableEngineAgenda
public void planTriggerExecutionOperation(ExecutionEntity execution)
planTriggerExecutionOperation
in interface FlowableEngineAgenda
public void planDestroyScopeOperation(ExecutionEntity execution)
planDestroyScopeOperation
in interface FlowableEngineAgenda
public void planExecuteInactiveBehaviorsOperation()
planExecuteInactiveBehaviorsOperation
in interface FlowableEngineAgenda
public CommandContext getCommandContext()
public void setCommandContext(CommandContext commandContext)
public LinkedList<Runnable> getOperations()
Copyright © 2017 Flowable. All rights reserved.