AnsweredAssumed Answered

Execution Listener works on event=start but crashes when i change it to event=end

Question asked by jhahn on Apr 7, 2015
Latest reply on Apr 15, 2015 by martin.grofcik
I need to delete certain tasks when this receiveTask ends.

     <receiveTask id="waitAPI" name="Wait for API response">
          <activiti:executionListener event="end" class="com.____.executionListeners.DeleteTasksOnMessageReceive">
            <activiti:field name="deleteTaskDefinitionKey">

If I have it to event="start", it calls the class notify function fine with "test" being assigned to the Private Expression deleteTaskDefinitionKey in the class. But when I switch it to event="end", it throws a class not found exception and fails to call the function.

I spent few hours this morning trying to figure this out and I am pretty much stuck on this issue.

01:52:04,673 [pool-2-thread-1] ERROR org.activiti.engine.impl.cmd.JobRetryCmd  - activitiy or FailedJobRetryTimerCycleValue is null in job 10782290'. only decrementing retries.
01:52:04,677 [pool-2-thread-1] ERROR org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable  - Job 10782290 failed

Caused by: org.activiti.engine.ActivitiClassLoadingException: Class not found: com.____.executionListeners.DeleteTasksOnMessageReceive
   at org.activiti.engine.impl.util.ReflectUtil.loadClass(
   at org.activiti.engine.impl.util.ReflectUtil.instantiate(
   … 44 more
Caused by: java.lang.ClassNotFoundException: com.____.executionListeners.DeleteTasksOnMessageReceive
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
   at org.apache.catalina.loader.WebappClassLoader.loadClass(