public class CommandInvocationContext extends Object
CommandContext
, this context holds resources that are only valid
during execution of a single command (i.e. the current command or an exception that was thrown
during its execution).Modifier and Type | Field and Description |
---|---|
protected BpmnStackTrace |
bpmnStackTrace |
protected Command<?> |
command |
protected boolean |
isExecuting |
protected List<AtomicOperationInvocation> |
queuedInvocations |
protected Throwable |
throwable |
Constructor and Description |
---|
CommandInvocationContext(Command<?> command) |
Modifier and Type | Method and Description |
---|---|
Command<?> |
getCommand() |
protected ProcessApplicationReference |
getTargetProcessApplication(ExecutionEntity execution) |
Throwable |
getThrowable() |
protected void |
invokeNext() |
protected void |
performNext() |
void |
performOperation(AtomicOperation executionOperation,
ExecutionEntity execution) |
void |
performOperation(AtomicOperation executionOperation,
ExecutionEntity execution,
boolean performAsync) |
void |
performOperationAsync(AtomicOperation executionOperation,
ExecutionEntity execution) |
protected boolean |
requiresContextSwitch(ProcessApplicationReference processApplicationReference) |
void |
rethrow() |
void |
trySetThrowable(Throwable t) |
protected Throwable throwable
protected Command<?> command
protected boolean isExecuting
protected List<AtomicOperationInvocation> queuedInvocations
protected BpmnStackTrace bpmnStackTrace
public CommandInvocationContext(Command<?> command)
public Throwable getThrowable()
public Command<?> getCommand()
public void trySetThrowable(Throwable t)
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution)
public void performOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution)
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync)
protected void performNext()
protected void invokeNext()
protected boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference)
protected ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)
public void rethrow()
Copyright © 2019. All rights reserved.