Class CommandInvocationContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext
-
public class CommandInvocationContext extends java.lang.ObjectIn 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 BpmnStackTracebpmnStackTraceprotected Command<?>commandprotected booleanisExecutingprotected ProcessDataContextprocessDataContextprotected java.util.List<AtomicOperationInvocation>queuedInvocationsprotected java.lang.Throwablethrowable
-
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()ProcessDataContextgetProcessDataContext()protected ProcessApplicationReferencegetTargetProcessApplication(ExecutionEntity execution)java.lang.ThrowablegetThrowable()protected voidinvokeNext()protected voidperformNext()voidperformOperation(AtomicOperation executionOperation, ExecutionEntity execution)voidperformOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync)voidperformOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution)protected booleanrequiresContextSwitch(ProcessApplicationReference processApplicationReference)voidrethrow()voidtrySetThrowable(java.lang.Throwable t)
-
-
-
Field Detail
-
throwable
protected java.lang.Throwable throwable
-
command
protected Command<?> command
-
isExecuting
protected boolean isExecuting
-
queuedInvocations
protected java.util.List<AtomicOperationInvocation> queuedInvocations
-
bpmnStackTrace
protected BpmnStackTrace bpmnStackTrace
-
processDataContext
protected ProcessDataContext processDataContext
-
-
Constructor Detail
-
CommandInvocationContext
public CommandInvocationContext(Command<?> command, ProcessEngineConfigurationImpl configuration)
-
-
Method Detail
-
getThrowable
public java.lang.Throwable getThrowable()
-
getCommand
public Command<?> getCommand()
-
trySetThrowable
public void trySetThrowable(java.lang.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()
-
-