Class CommandInvocationContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext
-
public class CommandInvocationContext extends Object
In contrast toCommandContext
, 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
Fields Modifier and Type Field Description protected BpmnStackTrace
bpmnStackTrace
protected Command<?>
command
protected boolean
isExecuting
protected ProcessDataContext
processDataContext
protected List<AtomicOperationInvocation>
queuedInvocations
protected Throwable
throwable
-
Constructor Summary
Constructors Constructor Description CommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
throwable
protected Throwable throwable
-
command
protected Command<?> command
-
isExecuting
protected boolean isExecuting
-
queuedInvocations
protected List<AtomicOperationInvocation> queuedInvocations
-
bpmnStackTrace
protected BpmnStackTrace bpmnStackTrace
-
processDataContext
protected ProcessDataContext processDataContext
-
-
Constructor Detail
-
CommandInvocationContext
public CommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration)
-
-
Method Detail
-
getThrowable
public Throwable getThrowable()
-
getCommand
public Command<?> getCommand()
-
trySetThrowable
public void trySetThrowable(Throwable t)
-
performOperation
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution)
-
performOperationAsync
public void performOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution)
-
performOperation
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync)
-
performNext
protected void performNext()
-
invokeNext
protected void invokeNext()
-
requiresContextSwitch
protected boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference)
-
getTargetProcessApplication
protected ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)
-
rethrow
public void rethrow()
-
getProcessDataContext
public ProcessDataContext getProcessDataContext()
-
-