Closed zukxu closed 2 years ago
使用的是IDEA 2021.2 插件版本为Activiti BPMN Visualizer 0.4.8
@zukxu 谢谢你的报告。你能提供一个示例 BPMN 文件来重现吗?
Thanks for the report. Can you please provide an example BPMN file to reproduce?
文件如下: `<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 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">
<bpmndi:BPMNDiagram id="BPMNDiagram_Leave-1">
<bpmndi:BPMNPlane bpmnElement="Leave-1" id="BPMNPlane_Leave-1">
<bpmndi:BPMNShape id="shape-66b7bea9-5319-46c0-baa0-b919a90e474d" bpmnElement="sid-1">
<omgdc:Bounds x="-45.0" y="-25.0" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape-4b467210-1634-45b6-a11c-25a8e8a9dae0" bpmnElement="sid-2">
<omgdc:Bounds x="60.0" y="-50.0" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape-6fb0dd0f-92b2-4517-a1c6-c1d40e19a244" bpmnElement="sid-3">
<omgdc:Bounds x="215.0" y="-50.0" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-6825d0c3-faf6-440f-a20e-6ecf4f2f671e"
bpmnElement="sid-ab618f97-1499-4352-80d6-2800d7d64619">
<omgdi:waypoint x="-15.0" y="-10.0"/>
<omgdi:waypoint x="60.0" y="-10.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-3a4e223f-1c1c-4c2c-a5f3-7f6ef48f48f7" bpmnElement="sid-4">
<omgdc:Bounds x="381.0" y="-105.5" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape-62338220-257c-45fc-bf86-0c76a41f9b0d" bpmnElement="sid-5">
<omgdc:Bounds x="522.5" y="-25.0" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-9805aa33-fe9d-4964-8b3c-8e2c6079d2dd"
bpmnElement="sid-63fe35c9-3b51-468a-bbb8-177607428020">
<omgdi:waypoint x="160.0" y="-10.0"/>
<omgdi:waypoint x="215.0" y="-10.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge-7fbd0e23-7511-40e6-839d-6d071e6d3c06"
bpmnElement="sid-00106e3f-2d62-404f-a80a-0a64653855c7">
<omgdi:waypoint x="315.0" y="-10.0"/>
<omgdi:waypoint x="381.0" y="-65.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge-c37a20b0-5f2f-4e36-83dd-569e19ecbfe3"
bpmnElement="sid-7c9755c8-97fd-4ef1-95ba-df9f76b1573e">
<omgdi:waypoint x="481.0" y="-65.5"/>
<omgdi:waypoint x="581.6107" y="-11.749992"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-caa7dae9-2025-4816-9726-3f719afe074c" bpmnElement="sid-5">
<omgdc:Bounds x="381.0" y="10.750008" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-bbd843e2-d57d-4e3c-bcaa-b958fa755612"
bpmnElement="sid-fe7b2f87-db0d-4e30-901f-e2fc55757eb7">
<omgdi:waypoint x="315.0" y="10.0"/>
<omgdi:waypoint x="381.0" y="50.750008"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-48dcda23-73da-4360-8fec-2f34384a76c7" bpmnElement="sid-100">
<omgdc:Bounds x="581.6107" y="-19.249992" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-7da46fa8-b859-4a2e-8116-a5fdf7c91873"
bpmnElement="sid-b09e0f04-7634-485a-a5da-f3c42b47963b">
<omgdi:waypoint x="481.0" y="50.750008"/>
<omgdi:waypoint x="581.6107" y="3.2500076"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
`
@zukxu
您提供的原始异常应该是由于分配给 SequenceElement 的重复 ID 而发生的。您提供的示例有其他因缺少 xsi:type
而导致的异常 - 我将修复您当前示例引发的异常。
The original exception that you provided should have happened due to duplicate ID assigned to SequenceElement. The example you have provided has other exception caused by missing xsi:type
- I'll fix the exception that is thrown by your current example.
@zukxu
这个文件有修复了 xsi:type
错误的插件,所以你可以尝试:
This file has plugin with xsi:type
bug fixed, so you can try:
activiti-bpmn-plugin.zip
要安装基于文件的插件,您可以按照以下说明操作: To install file based plugin you can follow these instructions: https://github.com/valb3r/flowable-bpmn-intellij-plugin/#from-github-releases
Describe the bug 设置了流程变量之后,就无法使用插件显示流程图象 具体错误如下: java.lang.IllegalArgumentException: Unknown shape: class com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.elements.BpmnSequenceFlow at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.mapFromShape(DefaultBpmnProcessRenderer.kt:268) at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.createShapes(DefaultBpmnProcessRenderer.kt:180) at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.buildRenderTree(DefaultBpmnProcessRenderer.kt:159) at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.doRender(DefaultBpmnProcessRenderer.kt:120) at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.doRender$default(DefaultBpmnProcessRenderer.kt:105) at com.valb3r.bpmn.intellij.plugin.core.render.DefaultBpmnProcessRenderer.render(DefaultBpmnProcessRenderer.kt:98) at com.valb3r.bpmn.intellij.plugin.core.render.Canvas$paintComponent$1.invoke(Canvas.kt:125) at com.valb3r.bpmn.intellij.plugin.core.render.Canvas$paintComponent$1.invoke(Canvas.kt:118) at com.valb3r.bpmn.intellij.plugin.core.render.Canvas.withFps(Canvas.kt:645) at com.valb3r.bpmn.intellij.plugin.core.render.Canvas.paintComponent(Canvas.kt:118) at java.desktop/javax.swing.JComponent.paint(JComponent.java:1077) at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5263) at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1654) at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1629) at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1566) at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1333) at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5211) at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5021) at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:868) at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:851) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:851) at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:826) at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:775) at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1901) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:886) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:755) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:442) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:441) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:483) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)