Hi, I have a process with an execution listener that invokes a custom java class that invokes a web service. So far it was working fine, but I changed the process to start asynchronously and now, it cannot find the java class with the delegate code.
The class is in a jar β¦/webapps/camunda-engine/WEB-INF/lib/delegates.jar and it has been working fine in syncronous processes. But apparently, the job executor cannot find it. The configuration of the job-executor is the default one, I use a shared engine (version 7.5) and using REST to deploy and start process instances.
The exception got registered in /history/job-log:
{"id": "147d63d5-856d-11e6-a3f2-d8cb8ae5ad7b", "timestamp": "2016-09-28T13:17:02", "jobId": "147107be-856d-11e6-a3f2-d8cb8ae5ad7b", "jobDueDate": null, "jobRetries": 3, "jobPriority": 0, "jobExceptionMessage": "ENGINE-09008 Exception while instantiating class 'delegates.ProgressNotification': ENGINE-09017 Cannot load class 'delegates.ProgressNotification': delegates.ProgressNotification","jobDefinitionId": "324fc731-856c-11e6-a3f2-d8cb8ae5ad7b", "jobDefinitionType": "async-continuation", "jobDefinitionConfiguration": "async-before", "activityId": "StartEvent_10n649d", "executionId": "1470e0ab-856d-11e6-a3f2-d8cb8ae5ad7b", "processInstanceId": "1470e0ab-856d-11e6-a3f2-d8cb8ae5ad7b", "processDefinitionId": "Process_1046:1:324fc730-856c-11e6-a3f2-d8cb8ae5ad7b", "processDefinitionKey": "Process_1046", "deploymentId": "32462a3e-856c-11e6-a3f2-d8cb8ae5ad7b", "tenantId": "local", "creationLog": false, "failureLog": true, "successLog": false, "deletionLog": false}
The execution listener is placed in the end event of the task just after the start event.
Any ideas how to solve it? I red in the documentation about asynchronous and it mentioned that " execution listeners will not be invoked synchronously" but didnβt find anything else about it. Does it have anything to do with my problem?
Thanks for your time,
Gonzalo