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
Provides context about the invocation of usercode and handles the actual
invocation
- Author:
- Daniel Meyer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected BaseDelegateExecution
protected ResourceDefinitionEntity
protected Object
-
Constructor Summary
ConstructorDescriptionDelegateInvocation
(BaseDelegateExecution contextExecution, ResourceDefinitionEntity contextResource) Provide a context execution or resource definition in which context the invocation should be performed. -
Method Summary
-
Field Details
-
invocationResult
-
contextExecution
-
contextResource
-
-
Constructor Details
-
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 Details
-
proceed
make the invocation proceed, performing the actual invocation of the user code.- Throws:
Exception
- the exception thrown by the user code
-
invoke
- Throws:
Exception
-
getInvocationResult
- Returns:
- the result of the invocation (can be null if the invocation does not return a result)
-
getContextExecution
returns the execution in which context this delegate is invoked. may be null -
getContextResource
-