org.camunda.bpm.engine.impl.delegate
Class DelegateInvocation

java.lang.Object
  extended by org.camunda.bpm.engine.impl.delegate.DelegateInvocation
Direct Known Subclasses:
ActivityBehaviorInvocation, ActivityBehaviorSignalInvocation, CaseExecutionListenerInvocation, CaseVariableListenerInvocation, CreateStartFormInvocation, CreateTaskFormInvocation, ExecutionListenerInvocation, ExpressionInvocation, FormFieldValidatorInvocation, JavaDelegateInvocation, ScriptInvocation, SubmitFormVariablesInvocation, TaskListenerInvocation

public abstract class DelegateInvocation
extends Object

Provides context about the invocation of usercode and handles the actual invocation

Author:
Daniel Meyer
See Also:
DelegateInterceptor

Field Summary
protected  BaseDelegateExecution contextExecution
           
protected  Object[] invocationParameters
           
protected  Object invocationResult
           
 
Constructor Summary
DelegateInvocation()
           
 
Method Summary
 BaseDelegateExecution getContextExecution()
          returns the execution in which context this delegate is invoked.
 Object[] getInvocationParameters()
           
 Object getInvocationResult()
           
abstract  Object getTarget()
          returns the target of the current invocation, ie.
protected abstract  void invoke()
           
 void proceed()
          make the invocation proceed, performing the actual invocation of the user code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invocationResult

protected Object invocationResult

invocationParameters

protected Object[] invocationParameters

contextExecution

protected BaseDelegateExecution contextExecution
Constructor Detail

DelegateInvocation

public DelegateInvocation()
Method Detail

proceed

public void proceed()
             throws Exception
make the invocation proceed, performing the actual invocation of the user code.

Throws:
Exception - the exception thrown by the user code

invoke

protected abstract void invoke()
                        throws Exception
Throws:
Exception

getInvocationResult

public Object getInvocationResult()
Returns:
the result of the invocation (can be null if the invocation does not return a result)

getInvocationParameters

public Object[] getInvocationParameters()
Returns:
an array of invocation parameters (null if the invocation takes no parameters)

getTarget

public abstract Object getTarget()
returns the target of the current invocation, ie. JavaDelegate, ValueExpression ...


getContextExecution

public BaseDelegateExecution getContextExecution()
returns the execution in which context this delegate is invoked. may be null



Copyright © 2015 camunda services GmbH. All rights reserved.