当我们绘制了一个bpmn图表,实质是创建了一个xml文件,

右键bpmn文件open  with   xml edit

<?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/test">
  <process >
    <startEvent ></startEvent>
    <endEvent ></endEvent>
    <userTask ></userTask>
    <sequenceFlow ></sequenceFlow>
    <sequenceFlow ></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram >
    <bpmndi:BPMNPlane bpmnElement="myProcess" >
      <bpmndi:BPMNShape bpmnElement="startevent1" >
        <omgdc:Bounds height="35.0" width="41.0" x="220.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" >
        <omgdc:Bounds height="35.0" width="35.0" x="640.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" >
        <omgdc:Bounds height="55.0" width="105.0" x="390.0" y="170.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" >
        <omgdi:waypoint x="261.0" y="197.0"></omgdi:waypoint>
        <omgdi:waypoint x="390.0" y="197.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" >
        <omgdi:waypoint x="495.0" y="197.0"></omgdi:waypoint>
        <omgdi:waypoint x="640.0" y="197.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

  bpmndi:BPMNDiagram中是具体点线坐标的定义,

  process则是具体的流程定义

  

  这里startEvent对应开始节点; endEvent对应结束节点; 

  userTask对应用户任务节点; sequenceFlow对应用户任务节点

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-06-17
  • 2021-08-02
  • 2021-04-19
猜你喜欢
  • 2021-09-14
  • 2021-07-29
  • 2021-07-05
  • 2021-11-15
  • 2022-12-23
  • 2021-05-26
  • 2022-02-08
相关资源
相似解决方案