问题描述
今天,小伙伴在使用云程低代码平台创建流程模板时,出现了报错,如下图:
后台堆栈信息如下:
ENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:
* src-resolve: Cannot resolve the name 'extension' to a(n) 'element declaration' component. | aa.bpmn | line 15 | column 70
* src-resolve: Cannot resolve the name 'rootElement' to a(n) 'element declaration' component. | aa.bpmn | line 16 | column 72
* src-resolve: Cannot resolve the name 'bpmndi:BPMNDiagram' to a(n) 'element declaration' component. | aa.bpmn | line 17 | column 79
* src-resolve: Cannot resolve the name 'relationship' to a(n) 'element declaration' component. | aa.bpmn | line 18 | column 73
* cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn:process'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":import}' is expected. | aa.bpmn | line 3 | column 68
org.camunda.bpm.engine.ProcessEngineException: ENGINE-09005 Could not parse BPMN process. Errors:
* src-resolve: Cannot resolve the name 'extension' to a(n) 'element declaration' component. | aa.bpmn | line 15 | column 70
* src-resolve: Cannot resolve the name 'rootElement' to a(n) 'element declaration' component. | aa.bpmn | line 16 | column 72
* src-resolve: Cannot resolve the name 'bpmndi:BPMNDiagram' to a(n) 'element declaration' component. | aa.bpmn | line 17 | column 79
* src-resolve: Cannot resolve the name 'relationship' to a(n) 'element declaration' component. | aa.bpmn | line 18 | column 73
* cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn:process'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":import}' is expected. | aa.bpmn | line 3 | column 68
小伙伴是本地开发环境启动的,只有他有这个问题,其他人没有这个问题。
云程低代码平台的流程引擎是基于Camunda7进行封装的,查到了网上有人遇到过flowable出现过的类似问题,使用相同的方式解决camunda的问题,果然解决了。
解决方法
原因是应用的部署目录有中文,我们把应用部署在没有中文的路径下,就可以了。