Class DefaultDelegateInterceptor
- java.lang.Object
-
- org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor
-
- All Implemented Interfaces:
DelegateInterceptor
public class DefaultDelegateInterceptor extends java.lang.Object implements DelegateInterceptor
The default implementation of the DelegateInterceptor. This implementation has the following features:- it performs context switch into the target process application (if applicable)
- it checks autorizations if
ProcessEngineConfiguration.isAuthorizationEnabledForCustomCode()is true
- Author:
- Daniel Meyer, Roman Smirnov
-
-
Constructor Summary
Constructors Constructor Description DefaultDelegateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProcessApplicationReferencegetProcessApplicationForInvocation(DelegateInvocation invocation)voidhandleInvocation(DelegateInvocation invocation)protected voidhandleInvocationInContext(DelegateInvocation invocation)protected booleanisCurrentContextExecution(BaseDelegateExecution execution)protected booleansetExecutionContext(BaseDelegateExecution execution)
-
-
-
Method Detail
-
handleInvocation
public void handleInvocation(DelegateInvocation invocation) throws java.lang.Exception
- Specified by:
handleInvocationin interfaceDelegateInterceptor- Throws:
java.lang.Exception
-
handleInvocationInContext
protected void handleInvocationInContext(DelegateInvocation invocation) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setExecutionContext
protected boolean setExecutionContext(BaseDelegateExecution execution)
- Returns:
- true if the execution context is modified by this invocation
-
isCurrentContextExecution
protected boolean isCurrentContextExecution(BaseDelegateExecution execution)
-
getProcessApplicationForInvocation
protected ProcessApplicationReference getProcessApplicationForInvocation(DelegateInvocation invocation)
-
-