public class Agenda extends Object
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 |
|---|
Agenda(CommandContext commandContext) |
protected CommandContext commandContext
protected LinkedList<Runnable> operations
public Agenda(CommandContext commandContext)
public boolean isEmpty()
public Runnable getNextOperation()
public void planOperation(Runnable operation, ExecutionEntity executionEntity)
Runnable.public void planContinueProcessOperation(ExecutionEntity execution)
public void planContinueProcessSynchronousOperation(ExecutionEntity execution)
public void planContinueProcessInCompensation(ExecutionEntity execution)
public void planContinueMultiInstanceOperation(ExecutionEntity execution)
public void planTakeOutgoingSequenceFlowsOperation(ExecutionEntity execution, boolean evaluateConditions)
public void planEndExecutionOperation(ExecutionEntity execution)
public void planTriggerExecutionOperation(ExecutionEntity execution)
public void planDestroyScopeOperation(ExecutionEntity execution)
public void planExecuteInactiveBehaviorsOperation()
public CommandContext getCommandContext()
public void setCommandContext(CommandContext commandContext)
public LinkedList<Runnable> getOperations()
Copyright © 2016 Alfresco. All rights reserved.