Class DefaultDelegateInterceptor
- java.lang.Object
-
- org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor
-
- All Implemented Interfaces:
DelegateInterceptor
public class DefaultDelegateInterceptor extends 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 ProcessApplicationReference
getProcessApplicationForInvocation(DelegateInvocation invocation)
void
handleInvocation(DelegateInvocation invocation)
protected void
handleInvocationInContext(DelegateInvocation invocation)
protected boolean
isCurrentContextExecution(BaseDelegateExecution execution)
protected boolean
setExecutionContext(BaseDelegateExecution execution)
-
-
-
Method Detail
-
handleInvocation
public void handleInvocation(DelegateInvocation invocation) throws Exception
- Specified by:
handleInvocation
in interfaceDelegateInterceptor
- Throws:
Exception
-
handleInvocationInContext
protected void handleInvocationInContext(DelegateInvocation invocation) throws Exception
- Throws:
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)
-
-