Activiti7-创建流程定义

表结构解读:

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文件夹下即可,便于以后查看

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ZHOU_VIP

您的鼓励将是我创作最大的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值