Intellij 无法识别 bpmn 的 xml

时间:2021-05-29 03:32:42

标签: intellij-idea

这突然开始发生。我有一个现有的 Activiti 项目。我安装了 Activiti BPMN Visualizer 插件。现在,在我的每个 .bpmn20.xml 文件中,Idea 都在说“必须声明元素 x”或“无法解析符号”这是一个示例:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn"
         xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
         xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
         typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
         targetNamespace="http://www.activiti.org/processdef">
<process id="test" name="test" isExecutable="true">
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_test">
    <bpmndi:BPMNPlane bpmnElement="test" id="BPMNPlane_test">
    </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

定义和流程的标签显示为红色,问题选项卡中有错误。命名空间标签,例如 bpmndi:BPMNDiagram,很好。发生了什么,我该如何解决?

1 个答案:

答案 0 :(得分:1)

如果它突然发生,请尝试 invalidate the cache 并重新启动 ide。