Class DelegateInvocation
- java.lang.Object
-
- org.activiti.engine.impl.delegate.invocation.DelegateInvocation
-
- Direct Known Subclasses:
ActivityBehaviorInvocation
,ExecutionListenerInvocation
,ExpressionInvocation
,JavaDelegateInvocation
,TaskListenerInvocation
,ThrowMessageDelegateInvocation
public abstract class DelegateInvocation extends java.lang.Object
Provides context about the invocation of usercode and handles the actual invocation- See Also:
DelegateInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object[]
invocationParameters
protected java.lang.Object
invocationResult
-
Constructor Summary
Constructors Constructor Description DelegateInvocation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getInvocationParameters()
java.lang.Object
getInvocationResult()
abstract java.lang.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.
-
-
-
Method Detail
-
proceed
public void proceed()
make the invocation proceed, performing the actual invocation of the user code.- Throws:
java.lang.Exception
- the exception thrown by the user code
-
invoke
protected abstract void invoke()
-
getInvocationResult
public java.lang.Object getInvocationResult()
- Returns:
- the result of the invocation (can be null if the invocation does not return a result)
-
getInvocationParameters
public java.lang.Object[] getInvocationParameters()
- Returns:
- an array of invocation parameters (null if the invocation takes no parameters)
-
getTarget
public abstract java.lang.Object getTarget()
returns the target of the current invocation, ie. JavaDelegate, ValueExpression ...
-
-