问题:
用户任务节点绑定任务监听器,执行监听时报如下错误:
org.camunda.bpm.engine.ProcessEngineException: ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'ENGINE-09008 Exception while instantiating class '': ENGINE-09017 Cannot load class '': ''
解决办法:
部署时,用 managementService添加registerProcessApplication具体如下:
DeploymentDto deploymentDto = createDeployment(payload);
ManagementService managementService = processEngine.getManagementService();
managementService.registerProcessApplication(deploymentId, Context.getCurrentProcessApplication());
参考:
https://forum.camunda.org/t/bpmn-files-in-process-application-war-file/557/5