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  Command<?> command
           
protected  Throwable throwable
           
 
Constructor Summary
CommandInvocationContext(Command<?> command)
           
 
Method Summary
 Command<?> getCommand()
           
 Throwable getThrowable()
           
 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
Constructor Detail

CommandInvocationContext

public CommandInvocationContext(Command<?> command)
Method Detail

getThrowable

public Throwable getThrowable()

getCommand

public Command<?> getCommand()

trySetThrowable

public void trySetThrowable(Throwable t)

rethrow

public void rethrow()


Copyright © 2015 camunda services GmbH. All rights reserved.