Class DelegateInvocation
- java.lang.Object
-
- org.camunda.bpm.engine.impl.delegate.DelegateInvocation
-
- Direct Known Subclasses:
ActivityBehaviorInvocation
,ActivityBehaviorSignalInvocation
,CaseExecutionListenerInvocation
,CaseVariableListenerInvocation
,CreateStartFormInvocation
,CreateTaskFormInvocation
,DecisionInvocation
,ExecutionListenerInvocation
,ExpressionGetInvocation
,ExpressionSetInvocation
,FormFieldValidatorInvocation
,JavaDelegateInvocation
,ScriptInvocation
,SubmitFormVariablesInvocation
,TaskListenerInvocation
public abstract class DelegateInvocation extends java.lang.Object
Provides context about the invocation of usercode and handles the actual invocation- Author:
- Daniel Meyer
- See Also:
DelegateInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseDelegateExecution
contextExecution
protected ResourceDefinitionEntity
contextResource
protected java.lang.Object
invocationResult
-
Constructor Summary
Constructors Constructor Description DelegateInvocation(BaseDelegateExecution contextExecution, ResourceDefinitionEntity contextResource)
Provide a context execution or resource definition in which context the invocation should be performed.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BaseDelegateExecution
getContextExecution()
returns the execution in which context this delegate is invoked.ResourceDefinitionEntity
getContextResource()
java.lang.Object
getInvocationResult()
protected abstract void
invoke()
void
proceed()
make the invocation proceed, performing the actual invocation of the user code.
-
-
-
Field Detail
-
invocationResult
protected java.lang.Object invocationResult
-
contextExecution
protected BaseDelegateExecution contextExecution
-
contextResource
protected ResourceDefinitionEntity contextResource
-
-
Constructor Detail
-
DelegateInvocation
public DelegateInvocation(BaseDelegateExecution contextExecution, ResourceDefinitionEntity contextResource)
Provide a context execution or resource definition in which context the invocation should be performed. If both parameters are null, the invocation is performed in the current context.- Parameters:
contextExecution
- set to an execution
-
-
Method Detail
-
proceed
public void proceed() throws java.lang.Exception
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() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getInvocationResult
public java.lang.Object getInvocationResult()
- Returns:
- the result of the invocation (can be null if the invocation does not return a result)
-
getContextExecution
public BaseDelegateExecution getContextExecution()
returns the execution in which context this delegate is invoked. may be null
-
getContextResource
public ResourceDefinitionEntity getContextResource()
-
-