使用Activiti工作流发布流程图时报错:cvc-complex-type.4: Attribute ‘targetRef‘ must appear on element ‘sequence

问题

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute ‘targetRef’ must appear on element ‘sequenceFlow’

发布流程图时报以上错误

解决

1、查看是否真正指向了下一级
如下图的流程图,当把鼠标移到线上时,两个节点中间有一个浅红色的红点才算连接到,否则就会报这个错误
使用Activiti工作流发布流程图时报错:cvc-complex-type.4: Attribute ‘targetRef‘ must appear on element ‘sequence_第1张图片
2、看下图,基本上看不出来错
使用Activiti工作流发布流程图时报错:cvc-complex-type.4: Attribute ‘targetRef‘ must appear on element ‘sequence_第2张图片
拖开来一看,就知道问题了
使用Activiti工作流发布流程图时报错:cvc-complex-type.4: Attribute ‘targetRef‘ must appear on element ‘sequence_第3张图片
删除多余的流程线即可

你可能感兴趣的:(流程图,流程图)