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
FieldsModifier and TypeFieldDescriptionprotected BpmnStackTraceprotected Command<?>protected booleanprotected ProcessDataContextprotected List<AtomicOperationInvocation>protected Throwable -
Constructor Summary
ConstructorsConstructorDescriptionCommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration, boolean isOuterCommand) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionCommand<?>protected ProcessApplicationReferencegetTargetProcessApplication(ExecutionEntity execution) protected voidprotected voidvoidperformOperation(AtomicOperation executionOperation, ExecutionEntity execution) voidperformOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync) voidperformOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution) protected booleanrequiresContextSwitch(ProcessApplicationReference processApplicationReference) voidrethrow()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
-