首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >什么是BPMN中的"di:waypoint“?

什么是BPMN中的"di:waypoint“?
EN

Stack Overflow用户
提问于 2014-01-16 17:27:07
回答 1查看 1.2K关注 0票数 3

我一直在阅读BPMN文件的XML,我已经了解了所有期望使用di:waypoint的东西。有人能解释一下它是干什么用的吗?下面是bpmn文件的一个小xml:

代码语言:javascript
复制
<?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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-16 18:17:46

BPMN2.0规范(请参阅这里的pdf:http://www.omg.org/spec/BPMN/2.0/PDF/)将其描述如下:

边缘通常表示为坐标系统中有2个或多个点(即一个或多个连通线段)的直线,称为waypoints。第一点通常与边缘的源相交,而最后一点通常与边缘的目标相交。中间的任何点都会为这条线在图中的遍历建立一条路线。

在您的示例中,“边缘”是BPMN序列在开始事件和脚本任务之间以及脚本任务和结束事件之间流动的。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21168695

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档