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 ProcessDataContext |
processDataContext |
protected List<AtomicOperationInvocation> |
queuedInvocations |
protected Throwable |
throwable |
Constructor and Description |
---|
CommandInvocationContext(Command<?> command,
ProcessEngineConfigurationImpl configuration) |
Modifier and Type | Method and Description |
---|---|
Command<?> |
getCommand() |
ProcessDataContext |
getProcessDataContext() |
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
protected ProcessDataContext processDataContext
public CommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration)
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()
public ProcessDataContext getProcessDataContext()
Copyright © 2021. All rights reserved.