Class CommandInvocationContext
java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext
In contrast to
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).- Author:
- Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected BpmnStackTrace
protected Command<?>
protected boolean
protected ProcessDataContext
protected List<AtomicOperationInvocation>
protected Throwable
-
Constructor Summary
ConstructorDescriptionCommandInvocationContext
(Command<?> command, ProcessEngineConfigurationImpl configuration, boolean isOuterCommand) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionCommand<?>
protected ProcessApplicationReference
getTargetProcessApplication
(ExecutionEntity execution) protected void
protected void
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
-
Field Details
-
throwable
-
command
-
isExecuting
protected boolean isExecuting -
queuedInvocations
-
bpmnStackTrace
-
processDataContext
-
-
Constructor Details
-
CommandInvocationContext
public CommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration, boolean isOuterCommand) All-args constructor.- Parameters:
command
- the associated command of this command invocation context.configuration
- the process engine configurationisOuterCommand
- when true, the flag marks this command invocation context as outer and parks any MDC value associated with the Logging Context Parameters as external properties. when set to false, this command invocation context will be associated to an inner command, no external properties will be parked
-
-
Method Details
-
getThrowable
-
getCommand
-
trySetThrowable
-
performOperation
-
performOperationAsync
-
performOperation
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync) -
performNext
protected void performNext() -
invokeNext
protected void invokeNext() -
requiresContextSwitch
-
getTargetProcessApplication
-
rethrow
public void rethrow() -
getProcessDataContext
-