表结构解读:
Activiti核心类
画流程图:
<?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="myleave" name="员工请假流程" isExecutable="true">
<startEvent id="sid-00226793-722a-4725-853f-e71e69eab6a1"/>
<userTask id="sid-e9b2c810-00bf-4b55-941e-ee33bdd9f0db" name="部门经理审批" activiti:assignee="manager"/>
<sequenceFlow id="sid-6fcfc799-4488-4d38-9ba9-aafe85daa65e" sourceRef="sid-00226793-722a-4725-853f-e71e69eab6a1" targetRef="sid-dafe664c-88e5-4d70-a499-f26e1fd680ca"/>
<userTask id="sid-bd020d7c-97dc-48ce-bf39-4eba2f5dbfe4" name="总经理审批" activiti:assignee="leader"/>
<sequenceFlow id="sid-c6775f4b-f631-4604-a3bc-0580485d52f1" sourceRef="sid-e9b2c810-00bf-4b55-941e-ee33bdd9f0db" targetRef="sid-bd020d7c-97dc-48ce-bf39-4eba2f5dbfe4"/>
<endEvent id="sid-55d21af5-a3f2-4a8f-9428-8356136119df"/>
<sequenceFlow id="sid-08e1c8e6-1322-4080-adf5-37b6223703e6" sourceRef="sid-bd020d7c-97dc-48ce-bf39-4eba2f5dbfe4" targetRef="sid-55d21af5-a3f2-4a8f-9428-8356136119df"/>
<userTask id="sid-dafe664c-88e5-4d70-a499-f26e1fd680ca" name="提交请假申请" activiti:assignee="worker"/>
<sequenceFlow id="sid-9db62b19-2d7f-4147-bdb2-6ea8544ee6f1" sourceRef="sid-dafe664c-88e5-4d70-a499-f26e1fd680ca" targetRef="sid-e9b2c810-00bf-4b55-941e-ee33bdd9f0db"/>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_hello">
<bpmndi:BPMNPlane bpmnElement="myleave" id="BPMNPlane_hello">
<bpmndi:BPMNShape id="shape-e3267270-4433-4d4c-b1f2-988fed0adcc7" bpmnElement="sid-00226793-722a-4725-853f-e71e69eab6a1">
<omgdc:Bounds x="40.00001" y="-245.0" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape-24f822fd-7b14-4f0e-9191-08e159b1929d" bpmnElement="sid-e9b2c810-00bf-4b55-941e-ee33bdd9f0db">
<omgdc:Bounds x="5.0" y="-45.0" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-38245e42-0ca0-435e-bff5-1c3bae5200f9" bpmnElement="sid-6fcfc799-4488-4d38-9ba9-aafe85daa65e">
<omgdi:waypoint x="55.00001" y="-215.0"/>
<omgdi:waypoint x="54.999992" y="-163.42105"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-c2b4f383-c28c-447a-ac98-c2616762586e" bpmnElement="sid-bd020d7c-97dc-48ce-bf39-4eba2f5dbfe4">
<omgdc:Bounds x="5.0000076" y="70.0" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-aecd14ad-4b9f-44c8-8867-2815bae2f757" bpmnElement="sid-c6775f4b-f631-4604-a3bc-0580485d52f1">
<omgdi:waypoint x="55.0" y="35.0"/>
<omgdi:waypoint x="55.000008" y="70.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-2afd6487-7830-46a9-99de-8a7a562c00af" bpmnElement="sid-55d21af5-a3f2-4a8f-9428-8356136119df">
<omgdc:Bounds x="40.000008" y="200.0" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-ae613ba9-7999-4c23-a726-22295f0a9323" bpmnElement="sid-08e1c8e6-1322-4080-adf5-37b6223703e6">
<omgdi:waypoint x="55.000008" y="150.0"/>
<omgdi:waypoint x="55.000008" y="200.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="sid-cfe0c145-08b5-4f4b-a765-fcb5025038f9" bpmnElement="sid-dafe664c-88e5-4d70-a499-f26e1fd680ca">
<omgdc:Bounds x="5.0000076" y="-163.42105" width="100.0" height="80.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-91efa692-c3ff-4c2c-8416-419f7afc16ea" bpmnElement="sid-9db62b19-2d7f-4147-bdb2-6ea8544ee6f1">
<omgdi:waypoint x="55.000008" y="-83.42105"/>
<omgdi:waypoint x="55.0" y="-45.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
可以右击导出png图片
保存在resources文件夹下即可,便于以后查看