Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fixes instanceof check for ExecutionListener delegates, closes #387
Browse files Browse the repository at this point in the history
  • Loading branch information
hhund committed Oct 13, 2022
1 parent 512d177 commit 2366e3c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.camunda.bpm.engine.ProcessEngineException;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.camunda.bpm.engine.delegate.TaskListener;
import org.camunda.bpm.engine.impl.ProcessEngineLogger;
import org.camunda.bpm.engine.impl.bpmn.delegate.ExecutionListenerInvocation;
import org.camunda.bpm.engine.impl.bpmn.listener.ClassDelegateExecutionListener;
Expand Down Expand Up @@ -55,7 +54,7 @@ protected ExecutionListener getExecutionListenerInstance(ProcessKeyAndVersion pr
{
Object delegateInstance = instantiateDelegate(processKeyAndVersion, className, fieldDeclarations);

if (delegateInstance instanceof TaskListener)
if (delegateInstance instanceof ExecutionListener)
{
return (ExecutionListener) delegateInstance;
}
Expand Down

0 comments on commit 2366e3c

Please sign in to comment.