我一直在阅读BPMN文件的XML,我已经了解了所有期望使用di:waypoint的东西。有人能解释一下它是干什么用的吗?下面是bpmn文件的一个小xml:
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition">
<process processType="Private" isExecutable="true" id="Minimal" name="Minimal Process" >
<!-- nodes -->
<startEvent id="_1" name="StartProcess" />
<scriptTask id="_2" name="Hello" >
<script>System.out.println("Hello World");</script>
</scriptTask>
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition/>
</endEvent>
<!-- connections -->
<sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />
</process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="Minimal" >
<bpmndi:BPMNShape bpmnElement="_1" >
<dc:Bounds x="15" y="91" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_2" >
<dc:Bounds x="95" y="88" width="83" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="258" y="86" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_1-_2" >
<di:waypoint x="39" y="115" />
<di:waypoint x="75" y="46" />
<di:waypoint x="136" y="112" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_2-_3" >
<di:waypoint x="136" y="112" />
<di:waypoint x="240" y="240" />
<di:waypoint x="282" y="110" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>发布于 2014-01-16 18:17:46
BPMN2.0规范(请参阅这里的pdf:http://www.omg.org/spec/BPMN/2.0/PDF/)将其描述如下:
边缘通常表示为坐标系统中有2个或多个点(即一个或多个连通线段)的直线,称为waypoints。第一点通常与边缘的源相交,而最后一点通常与边缘的目标相交。中间的任何点都会为这条线在图中的遍历建立一条路线。
在您的示例中,“边缘”是BPMN序列在开始事件和脚本任务之间以及脚本任务和结束事件之间流动的。
https://stackoverflow.com/questions/21168695
复制相似问题