I have created a war file in which i have written deployment code in a java delegate. I have deployed a new bpmn using this and once i start the process I am able to run the recently deployed process using java api. But when I restart the server or redeploying the war and then tried to run the process which i deployed earlier using java api ,I am getting the error. So is there any configuration i need to enable to handle this issue. I am using camunda with tomcat distribution.
The process could not be started. :
Cannot instantiate process definition demo-process2:1:0b87ff8e-108f-11e8-9188-9cad97d34f79: ENGINE-09008 Exception while instantiating class ‘com.sp.demo.camunda_poc.ServiceTask4Delegate’: ENGINE-09017 Cannot load class ‘com.sp.demo.camunda_poc.ServiceTask4Delegate’: com.sp.demo.camunda_poc.ServiceTask4Delegate
Please find below my code to deploy the bpmn.
String deploymentID = execution.getProcessEngineServices().getRepositoryService().createDeployment().name(resourceName).enableDuplicateFiltering(false)