这是我的依赖项。
compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter-webapp', version: '3.0.0'
compile group: 'org.camunda.bpm.springboot', name: 'camunda-bpm-spring-boot-starter', version: '3.0.0'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.2', ext: 'pom'
这是错误消息,似乎找不到引擎。
org.camunda.bpm.engine.exception.NullValueException: Can't find scripting engine for 'groovy': scriptEngine is null
这是我的脚本任务 xml 格式。
<bpmn:scriptTask id="Task_17h6w6s" name="changeStatus" scriptFormat="groovy">
<bpmn:incoming>SequenceFlow_1mvf31j</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_19je5yh</bpmn:outgoing>
<bpmn:script>execution.setVariable("status", APPROVED);
</bpmn:script>
</bpmn:scriptTask>
有人能帮我吗 ?谢谢
我已经解决了。
只需添加这个依赖即可。
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.15'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)