I need to delete certain tasks when this receiveTask ends.
….
<receiveTask id="waitAPI" name="Wait for API response">
<extensionElements>
<activiti:executionListener event="end" class="com.____.executionListeners.DeleteTasksOnMessageReceive">
<activiti:field name="deleteTaskDefinitionKey">
<activiti:string><![CDATA[test]]></activiti:string>
</activiti:field>
</activiti:executionListener>
</extensionElements>
</receiveTask>
….
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(ReflectUtil.java:87)
at org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:134)
… 44 more
Caused by: java.lang.ClassNotFoundException: com.____.executionListeners.DeleteTasksOnMessageReceive
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)