Hello everyone,
I am trying to implement an interceptor that will be executed before and after each task execution. For that, I have implemented the interface DelegateInterceptor.
public class Foo implements DelegateInterceptor {
public void handleInvocation(DelegateInvocation invocation) throws Exception {
System.out.println("Foo.handleInvocation called");
invocation.proceed();
}
}
And I have changed the Process Engine configuration so that Foo class will be set as the default Delegate Interceptor.
@Override
public void postInit( ProcessEngineConfigurationImpl processEngineConfiguration ) {
processEngineConfiguration.setDelegateInterceptor(new Foo());
}
I have noticed that the handleInvocation method of the interceptor is executed only once at the start of the process execution, can someone please tell me if this correct?
Thank you,