org.camunda.bpm.engine.impl.interceptor
Class CommandInvocationContext

java.lang.Object
  extended by org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext

public class CommandInvocationContext
extends Object

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
protected  BpmnStackTrace bpmnStackTrace
           
protected  Command<?> command
           
protected  boolean isExecuting
           
protected  List<AtomicOperationInvocation> queuedInvocations
           
protected  Throwable throwable
           
 
Constructor Summary
CommandInvocationContext(Command<?> command)
           
 
Method Summary
 Command<?> getCommand()
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

throwable

protected Throwable throwable

command

protected Command<?> command

isExecuting

protected boolean isExecuting

queuedInvocations

protected List<AtomicOperationInvocation> queuedInvocations

bpmnStackTrace

protected BpmnStackTrace bpmnStackTrace
Constructor Detail

CommandInvocationContext

public CommandInvocationContext(Command<?> command)
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()


Copyright © 2017 camunda services GmbH. All rights reserved.