UPDATE `ACT_DE_MODEL` SET `name` = '请假流程', `model_key` = 'Leave', `form_key` = 'Leave', `description` = NULL, `model_comment` = NULL, `created` = '2021-06-01 22:14:07.363000', `created_by` = '1123598821738675201', `last_updated` = '2021-06-25 20:31:39.343000', `last_updated_by` = '1123598821738675201', `version` = 2, `xml` = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:activiti=\"http://activiti.org/bpmn\" xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n  <process id=\"Leave\" name=\"请假流程\" isExecutable=\"true\" flowable:skipFirstNode=\"true\" flowable:rollbackNode=\"Activity_0u3ywm0\">\n    <extensionElements>\n      <flowable:serial name=\"请假流水号\" prefix=\"Leave\" dateFormat=\"yyyyMMdd\" suffixLength=\"5\" startSequence=\"0\" connector=\"\" cycle=\"none\" />\n    </extensionElements>\n    <startEvent id=\"startEvent_1\" name=\"开始\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"true\" />\n      </extensionElements>\n      <outgoing>Flow_0myeljb</outgoing>\n    </startEvent>\n    <userTask id=\"Activity_0u3ywm0\" name=\"发起人\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"true\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:assignee type=\"custom\" value=\"applyUser\" text=\"流程发起人\" />\n      </extensionElements>\n      <incoming>Flow_0myeljb</incoming>\n      <outgoing>Flow_0bz2pj7</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0myeljb\" sourceRef=\"startEvent_1\" targetRef=\"Activity_0u3ywm0\" />\n    <userTask id=\"Activity_1hmjyx7\" name=\"人事\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:assignee type=\"role\" value=\"1123598816738675203\" text=\"人事\" />\n      </extensionElements>\n      <incoming>Flow_0bz2pj7</incoming>\n      <outgoing>Flow_1pf3fia</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0bz2pj7\" sourceRef=\"Activity_0u3ywm0\" targetRef=\"Activity_1hmjyx7\" />\n    <exclusiveGateway id=\"Gateway_1qc70vy\">\n      <incoming>Flow_1pf3fia</incoming>\n      <outgoing>Flow_0of3zct</outgoing>\n      <outgoing>Flow_139q6po</outgoing>\n    </exclusiveGateway>\n    <sequenceFlow id=\"Flow_1pf3fia\" sourceRef=\"Activity_1hmjyx7\" targetRef=\"Gateway_1qc70vy\" />\n    <userTask id=\"Activity_1r4xgdo\" name=\"经理\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:assignee type=\"role\" value=\"1123598816738675204\" text=\"经理\" />\n      </extensionElements>\n      <incoming>Flow_0of3zct</incoming>\n      <outgoing>Flow_1dmv86y</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0of3zct\" name=\"小于5天\" sourceRef=\"Gateway_1qc70vy\" targetRef=\"Activity_1r4xgdo\">\n      <conditionExpression xsi:type=\"tFormalExpression\">${days&lt;5}</conditionExpression>\n    </sequenceFlow>\n    <userTask id=\"Activity_1bt0gzy\" name=\"老板\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:assignee type=\"role\" value=\"1123598816738675205\" text=\"老板\" />\n      </extensionElements>\n      <incoming>Flow_139q6po</incoming>\n      <outgoing>Flow_1bugorc</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_139q6po\" name=\"大于5天\" sourceRef=\"Gateway_1qc70vy\" targetRef=\"Activity_1bt0gzy\">\n      <conditionExpression xsi:type=\"tFormalExpression\">${days&gt;=5}</conditionExpression>\n    </sequenceFlow>\n    <exclusiveGateway id=\"Gateway_0ciyfci\">\n      <incoming>Flow_1dmv86y</incoming>\n      <incoming>Flow_1bugorc</incoming>\n      <outgoing>Flow_0vtl8w4</outgoing>\n    </exclusiveGateway>\n    <sequenceFlow id=\"Flow_1dmv86y\" sourceRef=\"Activity_1r4xgdo\" targetRef=\"Gateway_0ciyfci\" />\n    <sequenceFlow id=\"Flow_1bugorc\" sourceRef=\"Activity_1bt0gzy\" targetRef=\"Gateway_0ciyfci\" />\n    <endEvent id=\"Event_1j9xjra\" name=\"结束\">\n      <incoming>Flow_0vtl8w4</incoming>\n    </endEvent>\n    <sequenceFlow id=\"Flow_0vtl8w4\" sourceRef=\"Gateway_0ciyfci\" targetRef=\"Event_1j9xjra\" />\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_flow\">\n    <bpmndi:BPMNPlane id=\"BPMNPlane_flow\" bpmnElement=\"Leave\">\n      <bpmndi:BPMNEdge id=\"Flow_0vtl8w4_di\" bpmnElement=\"Flow_0vtl8w4\">\n        <di:waypoint x=\"925\" y=\"215\" />\n        <di:waypoint x=\"992\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1bugorc_di\" bpmnElement=\"Flow_1bugorc\">\n        <di:waypoint x=\"830\" y=\"330\" />\n        <di:waypoint x=\"900\" y=\"330\" />\n        <di:waypoint x=\"900\" y=\"240\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1dmv86y_di\" bpmnElement=\"Flow_1dmv86y\">\n        <di:waypoint x=\"830\" y=\"110\" />\n        <di:waypoint x=\"900\" y=\"110\" />\n        <di:waypoint x=\"900\" y=\"190\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_139q6po_di\" bpmnElement=\"Flow_139q6po\">\n        <di:waypoint x=\"650\" y=\"240\" />\n        <di:waypoint x=\"650\" y=\"330\" />\n        <di:waypoint x=\"730\" y=\"330\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"600\" y=\"282\" width=\"40\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0of3zct_di\" bpmnElement=\"Flow_0of3zct\">\n        <di:waypoint x=\"650\" y=\"190\" />\n        <di:waypoint x=\"650\" y=\"110\" />\n        <di:waypoint x=\"730\" y=\"110\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"600\" y=\"147\" width=\"40\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1pf3fia_di\" bpmnElement=\"Flow_1pf3fia\">\n        <di:waypoint x=\"570\" y=\"215\" />\n        <di:waypoint x=\"625\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0bz2pj7_di\" bpmnElement=\"Flow_0bz2pj7\">\n        <di:waypoint x=\"420\" y=\"215\" />\n        <di:waypoint x=\"470\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0myeljb_di\" bpmnElement=\"Flow_0myeljb\">\n        <di:waypoint x=\"270\" y=\"215\" />\n        <di:waypoint x=\"320\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNShape id=\"BPMNShape_startEvent_1\" bpmnElement=\"startEvent_1\">\n        <dc:Bounds x=\"240\" y=\"200\" width=\"30\" height=\"30\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"243\" y=\"237\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0u3ywm0_di\" bpmnElement=\"Activity_0u3ywm0\">\n        <dc:Bounds x=\"320\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1hmjyx7_di\" bpmnElement=\"Activity_1hmjyx7\">\n        <dc:Bounds x=\"470\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Gateway_1qc70vy_di\" bpmnElement=\"Gateway_1qc70vy\" isMarkerVisible=\"true\">\n        <dc:Bounds x=\"625\" y=\"190\" width=\"50\" height=\"50\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1r4xgdo_di\" bpmnElement=\"Activity_1r4xgdo\">\n        <dc:Bounds x=\"730\" y=\"70\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1bt0gzy_di\" bpmnElement=\"Activity_1bt0gzy\">\n        <dc:Bounds x=\"730\" y=\"290\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Gateway_0ciyfci_di\" bpmnElement=\"Gateway_0ciyfci\" isMarkerVisible=\"true\">\n        <dc:Bounds x=\"875\" y=\"190\" width=\"50\" height=\"50\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Event_1j9xjra_di\" bpmnElement=\"Event_1j9xjra\">\n        <dc:Bounds x=\"992\" y=\"197\" width=\"36\" height=\"36\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"999\" y=\"240\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>\n', `model_editor_json` = '{\"bounds\":{\"lowerRight\":{\"x\":1485.0,\"y\":700.0},\"upperLeft\":{\"x\":0.0,\"y\":0.0}},\"resourceId\":\"canvas\",\"stencil\":{\"id\":\"BPMNDiagram\"},\"stencilset\":{\"namespace\":\"http://b3mn.org/stencilset/bpmn2.0#\",\"url\":\"../editor/stencilsets/bpmn2.0/bpmn2.0.json\"},\"properties\":{\"process_id\":\"Leave\",\"name\":\"请假流程\",\"process_namespace\":\"http://bpmn.io/schema/bpmn\",\"iseagerexecutionfetch\":false,\"messages\":[],\"executionlisteners\":{\"executionListeners\":[]},\"eventlisteners\":{\"eventListeners\":[]},\"signaldefinitions\":[],\"messagedefinitions\":[],\"escalationdefinitions\":[]},\"childShapes\":[{\"bounds\":{\"lowerRight\":{\"x\":270.0,\"y\":230.0},\"upperLeft\":{\"x\":240.0,\"y\":200.0}},\"resourceId\":\"startEvent_1\",\"childShapes\":[],\"stencil\":{\"id\":\"StartNoneEvent\"},\"properties\":{\"overrideid\":\"startEvent_1\",\"name\":\"开始\",\"interrupting\":true,\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0myeljb\"}]},{\"bounds\":{\"lowerRight\":{\"x\":420.0,\"y\":255.0},\"upperLeft\":{\"x\":320.0,\"y\":175.0}},\"resourceId\":\"Activity_0u3ywm0\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0u3ywm0\",\"name\":\"发起人\",\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0bz2pj7\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0myeljb\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":15.0,\"y\":15.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0u3ywm0\"}],\"target\":{\"resourceId\":\"Activity_0u3ywm0\"},\"properties\":{\"overrideid\":\"Flow_0myeljb\"}},{\"bounds\":{\"lowerRight\":{\"x\":570.0,\"y\":255.0},\"upperLeft\":{\"x\":470.0,\"y\":175.0}},\"resourceId\":\"Activity_1hmjyx7\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1hmjyx7\",\"name\":\"人事\",\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1pf3fia\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0bz2pj7\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1hmjyx7\"}],\"target\":{\"resourceId\":\"Activity_1hmjyx7\"},\"properties\":{\"overrideid\":\"Flow_0bz2pj7\"}},{\"bounds\":{\"lowerRight\":{\"x\":675.0,\"y\":240.0},\"upperLeft\":{\"x\":625.0,\"y\":190.0}},\"resourceId\":\"Gateway_1qc70vy\",\"childShapes\":[],\"stencil\":{\"id\":\"ExclusiveGateway\"},\"properties\":{\"overrideid\":\"Gateway_1qc70vy\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0of3zct\"},{\"resourceId\":\"Flow_139q6po\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1pf3fia\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_1qc70vy\"}],\"target\":{\"resourceId\":\"Gateway_1qc70vy\"},\"properties\":{\"overrideid\":\"Flow_1pf3fia\"}},{\"bounds\":{\"lowerRight\":{\"x\":830.0,\"y\":150.0},\"upperLeft\":{\"x\":730.0,\"y\":70.0}},\"resourceId\":\"Activity_1r4xgdo\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1r4xgdo\",\"name\":\"经理\",\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1dmv86y\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0of3zct\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":650.0,\"y\":110.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1r4xgdo\"}],\"target\":{\"resourceId\":\"Activity_1r4xgdo\"},\"properties\":{\"overrideid\":\"Flow_0of3zct\",\"name\":\"小于5天\",\"conditionsequenceflow\":\"${days<5}\"}},{\"bounds\":{\"lowerRight\":{\"x\":830.0,\"y\":370.0},\"upperLeft\":{\"x\":730.0,\"y\":290.0}},\"resourceId\":\"Activity_1bt0gzy\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1bt0gzy\",\"name\":\"老板\",\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1bugorc\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_139q6po\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":650.0,\"y\":330.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1bt0gzy\"}],\"target\":{\"resourceId\":\"Activity_1bt0gzy\"},\"properties\":{\"overrideid\":\"Flow_139q6po\",\"name\":\"大于5天\",\"conditionsequenceflow\":\"${days>=5}\"}},{\"bounds\":{\"lowerRight\":{\"x\":925.0,\"y\":240.0},\"upperLeft\":{\"x\":875.0,\"y\":190.0}},\"resourceId\":\"Gateway_0ciyfci\",\"childShapes\":[],\"stencil\":{\"id\":\"ExclusiveGateway\"},\"properties\":{\"overrideid\":\"Gateway_0ciyfci\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0vtl8w4\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1dmv86y\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":900.0,\"y\":110.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_0ciyfci\"}],\"target\":{\"resourceId\":\"Gateway_0ciyfci\"},\"properties\":{\"overrideid\":\"Flow_1dmv86y\"}},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1bugorc\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":900.0,\"y\":330.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_0ciyfci\"}],\"target\":{\"resourceId\":\"Gateway_0ciyfci\"},\"properties\":{\"overrideid\":\"Flow_1bugorc\"}},{\"bounds\":{\"lowerRight\":{\"x\":1028.0,\"y\":233.0},\"upperLeft\":{\"x\":992.0,\"y\":197.0}},\"resourceId\":\"Event_1j9xjra\",\"childShapes\":[],\"stencil\":{\"id\":\"EndNoneEvent\"},\"properties\":{\"overrideid\":\"Event_1j9xjra\",\"name\":\"结束\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0vtl8w4\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":18.0,\"y\":18.0}],\"outgoing\":[{\"resourceId\":\"Event_1j9xjra\"}],\"target\":{\"resourceId\":\"Event_1j9xjra\"},\"properties\":{\"overrideid\":\"Flow_0vtl8w4\"}}]}', `thumbnail` = NULL, `model_type` = 0, `tenant_id` = '000000' WHERE `id` = '2f6b3b6de24354bb5df5aad3a87789af';
INSERT INTO `ACT_DE_MODEL`(`id`, `name`, `model_key`, `form_key`, `description`, `model_comment`, `created`, `created_by`, `last_updated`, `last_updated_by`, `version`, `xml`, `model_editor_json`, `thumbnail`, `model_type`, `tenant_id`) VALUES ('5b7a367e1139f1ab5cb1e6210685fa91', '多实例示例', 'demo-multi-instance', 'demo-test', NULL, NULL, '2021-06-25 20:35:27.522000', '1123598821738675201', '2021-06-25 21:12:43.852000', '1123598821738675201', 1, '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:activiti=\"http://activiti.org/bpmn\" xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n  <process id=\"demo-multi-instance\" name=\"多实例示例\" isExecutable=\"true\" flowable:skipFirstNode=\"true\" flowable:rollbackNode=\"Activity_0srhxhz\">\n    <extensionElements>\n      <flowable:serial name=\"多实例流水号\" prefix=\"MT\" dateFormat=\"yyyyMMdd\" suffixLength=\"4\" startSequence=\"0\" connector=\"\" cycle=\"none\" />\n    </extensionElements>\n    <startEvent id=\"startEvent_1\" name=\"开始\">\n      <extensionElements>\n        <flowable:formProperty id=\"1624624365132_23209\" name=\"单行文本\" readable=\"true\" writable=\"true\" />\n      </extensionElements>\n      <outgoing>Flow_1i5g9nh</outgoing>\n    </startEvent>\n    <userTask id=\"Activity_0srhxhz\" name=\"发起人\">\n      <extensionElements>\n        <flowable:formProperty id=\"1624624365132_23209\" name=\"单行文本\" readable=\"true\" writable=\"true\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:assignee type=\"custom\" value=\"applyUser\" text=\"流程发起人\" />\n      </extensionElements>\n      <incoming>Flow_1i5g9nh</incoming>\n      <outgoing>Flow_15l5hak</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_1i5g9nh\" sourceRef=\"startEvent_1\" targetRef=\"Activity_0srhxhz\" />\n    <userTask id=\"Activity_1qj1out\" name=\"多实例（串行）\" flowable:assignee=\"${assignee}\">\n      <extensionElements>\n        <flowable:assignee type=\"custom\" value=\"leader\" text=\"上级部门领导\" />\n        <flowable:formProperty id=\"1624624365132_23209\" name=\"单行文本\" readable=\"true\" writable=\"true\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n      </extensionElements>\n      <incoming>Flow_15l5hak</incoming>\n      <outgoing>Flow_0afq5tt</outgoing>\n      <multiInstanceLoopCharacteristics isSequential=\"true\" flowable:collection=\"${wfMultiInstanceHandler.getList(execution)}\" flowable:elementVariable=\"assignee\">\n        <completionCondition xsi:type=\"tFormalExpression\">${nrOfCompletedInstances/nrOfInstances &gt;= 0.5}</completionCondition>\n      </multiInstanceLoopCharacteristics>\n    </userTask>\n    <sequenceFlow id=\"Flow_15l5hak\" sourceRef=\"Activity_0srhxhz\" targetRef=\"Activity_1qj1out\" />\n    <userTask id=\"Activity_0oh31om\" name=\"多实例（并行）\" flowable:assignee=\"${assignee}\">\n      <extensionElements>\n        <flowable:assignee type=\"dept\" value=\"1123598813738675202\" text=\"常州刀锋\" />\n        <flowable:formProperty id=\"1624624365132_23209\" name=\"单行文本\" readable=\"true\" writable=\"true\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n      </extensionElements>\n      <incoming>Flow_0afq5tt</incoming>\n      <outgoing>Flow_0dera7k</outgoing>\n      <multiInstanceLoopCharacteristics flowable:collection=\"${wfMultiInstanceHandler.getList(execution)}\" flowable:elementVariable=\"assignee\">\n        <completionCondition xsi:type=\"tFormalExpression\">${nrOfCompletedInstances/nrOfInstances &gt;= 1}</completionCondition>\n      </multiInstanceLoopCharacteristics>\n    </userTask>\n    <sequenceFlow id=\"Flow_0afq5tt\" sourceRef=\"Activity_1qj1out\" targetRef=\"Activity_0oh31om\" />\n    <endEvent id=\"Event_02858i0\" name=\"结束\">\n      <incoming>Flow_0dera7k</incoming>\n    </endEvent>\n    <sequenceFlow id=\"Flow_0dera7k\" sourceRef=\"Activity_0oh31om\" targetRef=\"Event_02858i0\" />\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_flow\">\n    <bpmndi:BPMNPlane id=\"BPMNPlane_flow\" bpmnElement=\"demo-multi-instance\">\n      <bpmndi:BPMNEdge id=\"Flow_0dera7k_di\" bpmnElement=\"Flow_0dera7k\">\n        <di:waypoint x=\"720\" y=\"215\" />\n        <di:waypoint x=\"772\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0afq5tt_di\" bpmnElement=\"Flow_0afq5tt\">\n        <di:waypoint x=\"570\" y=\"215\" />\n        <di:waypoint x=\"620\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_15l5hak_di\" bpmnElement=\"Flow_15l5hak\">\n        <di:waypoint x=\"420\" y=\"215\" />\n        <di:waypoint x=\"470\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1i5g9nh_di\" bpmnElement=\"Flow_1i5g9nh\">\n        <di:waypoint x=\"270\" y=\"215\" />\n        <di:waypoint x=\"320\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNShape id=\"BPMNShape_startEvent_1\" bpmnElement=\"startEvent_1\">\n        <dc:Bounds x=\"240\" y=\"200\" width=\"30\" height=\"30\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"243\" y=\"237\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0srhxhz_di\" bpmnElement=\"Activity_0srhxhz\">\n        <dc:Bounds x=\"320\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1qj1out_di\" bpmnElement=\"Activity_1qj1out\">\n        <dc:Bounds x=\"470\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0oh31om_di\" bpmnElement=\"Activity_0oh31om\">\n        <dc:Bounds x=\"620\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Event_02858i0_di\" bpmnElement=\"Event_02858i0\">\n        <dc:Bounds x=\"772\" y=\"197\" width=\"36\" height=\"36\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"779\" y=\"240\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>\n', '{\"bounds\":{\"lowerRight\":{\"x\":1485.0,\"y\":700.0},\"upperLeft\":{\"x\":0.0,\"y\":0.0}},\"resourceId\":\"canvas\",\"stencil\":{\"id\":\"BPMNDiagram\"},\"stencilset\":{\"namespace\":\"http://b3mn.org/stencilset/bpmn2.0#\",\"url\":\"../editor/stencilsets/bpmn2.0/bpmn2.0.json\"},\"properties\":{\"process_id\":\"demo-multi-instance\",\"name\":\"多实例示例\",\"process_namespace\":\"http://bpmn.io/schema/bpmn\",\"iseagerexecutionfetch\":false,\"messages\":[],\"executionlisteners\":{\"executionListeners\":[]},\"eventlisteners\":{\"eventListeners\":[]},\"signaldefinitions\":[],\"messagedefinitions\":[],\"escalationdefinitions\":[]},\"childShapes\":[{\"bounds\":{\"lowerRight\":{\"x\":270.0,\"y\":230.0},\"upperLeft\":{\"x\":240.0,\"y\":200.0}},\"resourceId\":\"startEvent_1\",\"childShapes\":[],\"stencil\":{\"id\":\"StartNoneEvent\"},\"properties\":{\"overrideid\":\"startEvent_1\",\"name\":\"开始\",\"interrupting\":true,\"formproperties\":{\"formProperties\":[{\"id\":\"1624624365132_23209\",\"name\":\"单行文本\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1i5g9nh\"}]},{\"bounds\":{\"lowerRight\":{\"x\":420.0,\"y\":255.0},\"upperLeft\":{\"x\":320.0,\"y\":175.0}},\"resourceId\":\"Activity_0srhxhz\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0srhxhz\",\"name\":\"发起人\",\"formproperties\":{\"formProperties\":[{\"id\":\"1624624365132_23209\",\"name\":\"单行文本\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_15l5hak\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1i5g9nh\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":15.0,\"y\":15.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0srhxhz\"}],\"target\":{\"resourceId\":\"Activity_0srhxhz\"},\"properties\":{\"overrideid\":\"Flow_1i5g9nh\"}},{\"bounds\":{\"lowerRight\":{\"x\":570.0,\"y\":255.0},\"upperLeft\":{\"x\":470.0,\"y\":175.0}},\"resourceId\":\"Activity_1qj1out\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1qj1out\",\"name\":\"多实例（串行）\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"assignee\":\"${assignee}\"}},\"formproperties\":{\"formProperties\":[{\"id\":\"1624624365132_23209\",\"name\":\"单行文本\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"multiinstance_type\":\"Sequential\",\"multiinstance_collection\":\"${wfMultiInstanceHandler.getList(execution)}\",\"multiinstance_variable\":\"assignee\",\"multiinstance_condition\":\"${nrOfCompletedInstances/nrOfInstances >= 0.5}\",\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0afq5tt\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_15l5hak\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1qj1out\"}],\"target\":{\"resourceId\":\"Activity_1qj1out\"},\"properties\":{\"overrideid\":\"Flow_15l5hak\"}},{\"bounds\":{\"lowerRight\":{\"x\":720.0,\"y\":255.0},\"upperLeft\":{\"x\":620.0,\"y\":175.0}},\"resourceId\":\"Activity_0oh31om\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0oh31om\",\"name\":\"多实例（并行）\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"assignee\":\"${assignee}\"}},\"formproperties\":{\"formProperties\":[{\"id\":\"1624624365132_23209\",\"name\":\"单行文本\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"multiinstance_type\":\"Parallel\",\"multiinstance_collection\":\"${wfMultiInstanceHandler.getList(execution)}\",\"multiinstance_variable\":\"assignee\",\"multiinstance_condition\":\"${nrOfCompletedInstances/nrOfInstances >= 1}\",\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0dera7k\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0afq5tt\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0oh31om\"}],\"target\":{\"resourceId\":\"Activity_0oh31om\"},\"properties\":{\"overrideid\":\"Flow_0afq5tt\"}},{\"bounds\":{\"lowerRight\":{\"x\":808.0,\"y\":233.0},\"upperLeft\":{\"x\":772.0,\"y\":197.0}},\"resourceId\":\"Event_02858i0\",\"childShapes\":[],\"stencil\":{\"id\":\"EndNoneEvent\"},\"properties\":{\"overrideid\":\"Event_02858i0\",\"name\":\"结束\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0dera7k\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":18.0,\"y\":18.0}],\"outgoing\":[{\"resourceId\":\"Event_02858i0\"}],\"target\":{\"resourceId\":\"Event_02858i0\"},\"properties\":{\"overrideid\":\"Flow_0dera7k\"}}]}', NULL, 0, '000000');
INSERT INTO `ACT_DE_MODEL_HISTORY`(`id`, `name`, `model_key`, `form_key`, `description`, `model_comment`, `created`, `created_by`, `last_updated`, `last_updated_by`, `removal_date`, `version`, `xml`, `model_editor_json`, `model_id`, `model_type`, `tenant_id`) VALUES ('35ab873fe08b69e3150188304de865d7', '请假流程', 'Leave', 'Leave', NULL, NULL, '2021-06-01 22:14:07.363000', '1123598821738675201', '2021-06-01 22:18:02.124000', '1123598821738675201', NULL, 1, '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:activiti=\"http://activiti.org/bpmn\" xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n  <process id=\"Leave\" name=\"请假流程\" isExecutable=\"true\" flowable:skipFirstNode=\"true\" flowable:rollbackNode=\"Activity_0u3ywm0\">\n    <extensionElements>\n      <flowable:serial name=\"请假流水号\" prefix=\"Leave\" dateFormat=\"yyyyMMdd\" suffixLength=\"5\" startSequence=\"0\" connector=\"\" cycle=\"none\" />\n    </extensionElements>\n    <startEvent id=\"startEvent_1\" name=\"开始\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"true\" />\n      </extensionElements>\n      <outgoing>Flow_0myeljb</outgoing>\n    </startEvent>\n    <userTask id=\"Activity_0u3ywm0\" name=\"发起人\" flowable:assignee=\"${applyUser}\">\n      <extensionElements>\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"true\" />\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n      </extensionElements>\n      <incoming>Flow_0myeljb</incoming>\n      <outgoing>Flow_0bz2pj7</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0myeljb\" sourceRef=\"startEvent_1\" targetRef=\"Activity_0u3ywm0\" />\n    <userTask id=\"Activity_1hmjyx7\" name=\"人事\" flowable:candidateGroups=\"hr\">\n      <extensionElements>\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n      </extensionElements>\n      <incoming>Flow_0bz2pj7</incoming>\n      <outgoing>Flow_1pf3fia</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0bz2pj7\" sourceRef=\"Activity_0u3ywm0\" targetRef=\"Activity_1hmjyx7\" />\n    <exclusiveGateway id=\"Gateway_1qc70vy\">\n      <incoming>Flow_1pf3fia</incoming>\n      <outgoing>Flow_0of3zct</outgoing>\n      <outgoing>Flow_139q6po</outgoing>\n    </exclusiveGateway>\n    <sequenceFlow id=\"Flow_1pf3fia\" sourceRef=\"Activity_1hmjyx7\" targetRef=\"Gateway_1qc70vy\" />\n    <userTask id=\"Activity_1r4xgdo\" name=\"经理\" flowable:candidateGroups=\"manager\">\n      <extensionElements>\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n      </extensionElements>\n      <incoming>Flow_0of3zct</incoming>\n      <outgoing>Flow_1dmv86y</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0of3zct\" name=\"小于5天\" sourceRef=\"Gateway_1qc70vy\" targetRef=\"Activity_1r4xgdo\">\n      <conditionExpression xsi:type=\"tFormalExpression\">${days&lt;5}</conditionExpression>\n    </sequenceFlow>\n    <userTask id=\"Activity_1bt0gzy\" name=\"老板\" flowable:candidateGroups=\"boss\">\n      <extensionElements>\n        <flowable:button label=\"通过\" prop=\"wf_pass\" display=\"true\" />\n        <flowable:button label=\"驳回\" prop=\"wf_reject\" display=\"true\" />\n        <flowable:button label=\"打印\" prop=\"wf_print\" display=\"true\" />\n        <flowable:button label=\"转办\" prop=\"wf_transfer\" display=\"true\" />\n        <flowable:button label=\"委托\" prop=\"wf_delegate\" display=\"true\" />\n        <flowable:button label=\"终止\" prop=\"wf_terminate\" display=\"true\" />\n        <flowable:button label=\"加签\" prop=\"wf_add_instance\" display=\"true\" />\n        <flowable:button label=\"减签\" prop=\"wf_del_instance\" display=\"true\" />\n        <flowable:button label=\"指定回退\" prop=\"wf_rollback\" display=\"true\" />\n        <flowable:formProperty id=\"datetime\" name=\"请假时间\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"false\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"false\" />\n      </extensionElements>\n      <incoming>Flow_139q6po</incoming>\n      <outgoing>Flow_1bugorc</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_139q6po\" name=\"大于5天\" sourceRef=\"Gateway_1qc70vy\" targetRef=\"Activity_1bt0gzy\">\n      <conditionExpression xsi:type=\"tFormalExpression\">${days&gt;=5}</conditionExpression>\n    </sequenceFlow>\n    <exclusiveGateway id=\"Gateway_0ciyfci\">\n      <incoming>Flow_1dmv86y</incoming>\n      <incoming>Flow_1bugorc</incoming>\n      <outgoing>Flow_0vtl8w4</outgoing>\n    </exclusiveGateway>\n    <sequenceFlow id=\"Flow_1dmv86y\" sourceRef=\"Activity_1r4xgdo\" targetRef=\"Gateway_0ciyfci\" />\n    <sequenceFlow id=\"Flow_1bugorc\" sourceRef=\"Activity_1bt0gzy\" targetRef=\"Gateway_0ciyfci\" />\n    <endEvent id=\"Event_1j9xjra\" name=\"结束\">\n      <incoming>Flow_0vtl8w4</incoming>\n    </endEvent>\n    <sequenceFlow id=\"Flow_0vtl8w4\" sourceRef=\"Gateway_0ciyfci\" targetRef=\"Event_1j9xjra\" />\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_flow\">\n    <bpmndi:BPMNPlane id=\"BPMNPlane_flow\" bpmnElement=\"Leave\">\n      <bpmndi:BPMNEdge id=\"Flow_0vtl8w4_di\" bpmnElement=\"Flow_0vtl8w4\">\n        <di:waypoint x=\"925\" y=\"215\" />\n        <di:waypoint x=\"992\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1bugorc_di\" bpmnElement=\"Flow_1bugorc\">\n        <di:waypoint x=\"830\" y=\"330\" />\n        <di:waypoint x=\"900\" y=\"330\" />\n        <di:waypoint x=\"900\" y=\"240\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1dmv86y_di\" bpmnElement=\"Flow_1dmv86y\">\n        <di:waypoint x=\"830\" y=\"110\" />\n        <di:waypoint x=\"900\" y=\"110\" />\n        <di:waypoint x=\"900\" y=\"190\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_139q6po_di\" bpmnElement=\"Flow_139q6po\">\n        <di:waypoint x=\"650\" y=\"240\" />\n        <di:waypoint x=\"650\" y=\"330\" />\n        <di:waypoint x=\"730\" y=\"330\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"600\" y=\"282\" width=\"40\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0of3zct_di\" bpmnElement=\"Flow_0of3zct\">\n        <di:waypoint x=\"650\" y=\"190\" />\n        <di:waypoint x=\"650\" y=\"110\" />\n        <di:waypoint x=\"730\" y=\"110\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"600\" y=\"147\" width=\"40\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1pf3fia_di\" bpmnElement=\"Flow_1pf3fia\">\n        <di:waypoint x=\"570\" y=\"215\" />\n        <di:waypoint x=\"625\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0bz2pj7_di\" bpmnElement=\"Flow_0bz2pj7\">\n        <di:waypoint x=\"420\" y=\"215\" />\n        <di:waypoint x=\"470\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_0myeljb_di\" bpmnElement=\"Flow_0myeljb\">\n        <di:waypoint x=\"270\" y=\"215\" />\n        <di:waypoint x=\"320\" y=\"215\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNShape id=\"BPMNShape_startEvent_1\" bpmnElement=\"startEvent_1\">\n        <dc:Bounds x=\"240\" y=\"200\" width=\"30\" height=\"30\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"243\" y=\"237\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0u3ywm0_di\" bpmnElement=\"Activity_0u3ywm0\">\n        <dc:Bounds x=\"320\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1hmjyx7_di\" bpmnElement=\"Activity_1hmjyx7\">\n        <dc:Bounds x=\"470\" y=\"175\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Gateway_1qc70vy_di\" bpmnElement=\"Gateway_1qc70vy\" isMarkerVisible=\"true\">\n        <dc:Bounds x=\"625\" y=\"190\" width=\"50\" height=\"50\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1r4xgdo_di\" bpmnElement=\"Activity_1r4xgdo\">\n        <dc:Bounds x=\"730\" y=\"70\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1bt0gzy_di\" bpmnElement=\"Activity_1bt0gzy\">\n        <dc:Bounds x=\"730\" y=\"290\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Gateway_0ciyfci_di\" bpmnElement=\"Gateway_0ciyfci\" isMarkerVisible=\"true\">\n        <dc:Bounds x=\"875\" y=\"190\" width=\"50\" height=\"50\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Event_1j9xjra_di\" bpmnElement=\"Event_1j9xjra\">\n        <dc:Bounds x=\"992\" y=\"197\" width=\"36\" height=\"36\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"999\" y=\"240\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>\n', '{\"bounds\":{\"lowerRight\":{\"x\":1485.0,\"y\":700.0},\"upperLeft\":{\"x\":0.0,\"y\":0.0}},\"resourceId\":\"canvas\",\"stencil\":{\"id\":\"BPMNDiagram\"},\"stencilset\":{\"namespace\":\"http://b3mn.org/stencilset/bpmn2.0#\",\"url\":\"../editor/stencilsets/bpmn2.0/bpmn2.0.json\"},\"properties\":{\"process_id\":\"Leave\",\"name\":\"请假流程\",\"process_namespace\":\"http://bpmn.io/schema/bpmn\",\"iseagerexecutionfetch\":false,\"messages\":[],\"executionlisteners\":{\"executionListeners\":[]},\"eventlisteners\":{\"eventListeners\":[]},\"signaldefinitions\":[],\"messagedefinitions\":[],\"escalationdefinitions\":[]},\"childShapes\":[{\"bounds\":{\"lowerRight\":{\"x\":270.0,\"y\":230.0},\"upperLeft\":{\"x\":240.0,\"y\":200.0}},\"resourceId\":\"startEvent_1\",\"childShapes\":[],\"stencil\":{\"id\":\"StartNoneEvent\"},\"properties\":{\"overrideid\":\"startEvent_1\",\"name\":\"开始\",\"interrupting\":true,\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0myeljb\"}]},{\"bounds\":{\"lowerRight\":{\"x\":420.0,\"y\":255.0},\"upperLeft\":{\"x\":320.0,\"y\":175.0}},\"resourceId\":\"Activity_0u3ywm0\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0u3ywm0\",\"name\":\"发起人\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"assignee\":\"${applyUser}\"}},\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0bz2pj7\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0myeljb\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":15.0,\"y\":15.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0u3ywm0\"}],\"target\":{\"resourceId\":\"Activity_0u3ywm0\"},\"properties\":{\"overrideid\":\"Flow_0myeljb\"}},{\"bounds\":{\"lowerRight\":{\"x\":570.0,\"y\":255.0},\"upperLeft\":{\"x\":470.0,\"y\":175.0}},\"resourceId\":\"Activity_1hmjyx7\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1hmjyx7\",\"name\":\"人事\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"candidateGroups\":[{\"value\":\"hr\"}]}},\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1pf3fia\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0bz2pj7\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1hmjyx7\"}],\"target\":{\"resourceId\":\"Activity_1hmjyx7\"},\"properties\":{\"overrideid\":\"Flow_0bz2pj7\"}},{\"bounds\":{\"lowerRight\":{\"x\":675.0,\"y\":240.0},\"upperLeft\":{\"x\":625.0,\"y\":190.0}},\"resourceId\":\"Gateway_1qc70vy\",\"childShapes\":[],\"stencil\":{\"id\":\"ExclusiveGateway\"},\"properties\":{\"overrideid\":\"Gateway_1qc70vy\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0of3zct\"},{\"resourceId\":\"Flow_139q6po\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1pf3fia\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_1qc70vy\"}],\"target\":{\"resourceId\":\"Gateway_1qc70vy\"},\"properties\":{\"overrideid\":\"Flow_1pf3fia\"}},{\"bounds\":{\"lowerRight\":{\"x\":830.0,\"y\":150.0},\"upperLeft\":{\"x\":730.0,\"y\":70.0}},\"resourceId\":\"Activity_1r4xgdo\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1r4xgdo\",\"name\":\"经理\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"candidateGroups\":[{\"value\":\"manager\"}]}},\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1dmv86y\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0of3zct\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":650.0,\"y\":110.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1r4xgdo\"}],\"target\":{\"resourceId\":\"Activity_1r4xgdo\"},\"properties\":{\"overrideid\":\"Flow_0of3zct\",\"name\":\"小于5天\",\"conditionsequenceflow\":\"${days<5}\"}},{\"bounds\":{\"lowerRight\":{\"x\":830.0,\"y\":370.0},\"upperLeft\":{\"x\":730.0,\"y\":290.0}},\"resourceId\":\"Activity_1bt0gzy\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1bt0gzy\",\"name\":\"老板\",\"usertaskassignment\":{\"assignment\":{\"type\":\"static\",\"candidateGroups\":[{\"value\":\"boss\"}]}},\"formproperties\":{\"formProperties\":[{\"id\":\"datetime\",\"name\":\"请假时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"days\",\"name\":\"请假天数\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false},{\"id\":\"reason\",\"name\":\"请假理由\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":false}]},\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1bugorc\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_139q6po\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":650.0,\"y\":330.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1bt0gzy\"}],\"target\":{\"resourceId\":\"Activity_1bt0gzy\"},\"properties\":{\"overrideid\":\"Flow_139q6po\",\"name\":\"大于5天\",\"conditionsequenceflow\":\"${days>=5}\"}},{\"bounds\":{\"lowerRight\":{\"x\":925.0,\"y\":240.0},\"upperLeft\":{\"x\":875.0,\"y\":190.0}},\"resourceId\":\"Gateway_0ciyfci\",\"childShapes\":[],\"stencil\":{\"id\":\"ExclusiveGateway\"},\"properties\":{\"overrideid\":\"Gateway_0ciyfci\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0vtl8w4\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1dmv86y\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":900.0,\"y\":110.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_0ciyfci\"}],\"target\":{\"resourceId\":\"Gateway_0ciyfci\"},\"properties\":{\"overrideid\":\"Flow_1dmv86y\"}},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1bugorc\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":900.0,\"y\":330.0},{\"x\":25.0,\"y\":25.0}],\"outgoing\":[{\"resourceId\":\"Gateway_0ciyfci\"}],\"target\":{\"resourceId\":\"Gateway_0ciyfci\"},\"properties\":{\"overrideid\":\"Flow_1bugorc\"}},{\"bounds\":{\"lowerRight\":{\"x\":1028.0,\"y\":233.0},\"upperLeft\":{\"x\":992.0,\"y\":197.0}},\"resourceId\":\"Event_1j9xjra\",\"childShapes\":[],\"stencil\":{\"id\":\"EndNoneEvent\"},\"properties\":{\"overrideid\":\"Event_1j9xjra\",\"name\":\"结束\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0vtl8w4\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":25.0,\"y\":25.0},{\"x\":18.0,\"y\":18.0}],\"outgoing\":[{\"resourceId\":\"Event_1j9xjra\"}],\"target\":{\"resourceId\":\"Event_1j9xjra\"},\"properties\":{\"overrideid\":\"Flow_0vtl8w4\"}}]}', '2f6b3b6de24354bb5df5aad3a87789af', 0, '000000');

INSERT INTO `blade_wf_form`(`id`, `key`, `name`, `content`, `version`, `remark`, `create_user`, `create_dept`, `create_time`, `update_user`, `update_time`, `status`, `is_deleted`, `tenant_id`) VALUES (1408402768310304770, 'demo-test', '测试简单表单', '{column:[{type:\'input\',label:\'单行文本\',span:24,display:true,prop:\'1624624365132_23209\'}],labelPosition:\'left\',labelSuffix:\'：\',labelWidth:120,gutter:0,menuBtn:true,submitBtn:true,submitText:\'提交\',emptyBtn:true,emptyText:\'清空\',menuPosition:\'center\'}', 1, '', 1123598821738675201, 1123598813738675201, '2021-06-25 20:32:41', 1123598821738675201, '2021-06-25 20:32:49', 1, 0, '000000');

CREATE TABLE `blade_wf_condition` (
                                      `id` bigint(64) NOT NULL,
                                      `name` varchar(255) DEFAULT NULL COMMENT '名称',
                                      `expression` varchar(255) DEFAULT NULL COMMENT '表达式',
                                      `type` varchar(255) DEFAULT NULL COMMENT '类型',
                                      `create_user` bigint(64) DEFAULT NULL COMMENT '创建人',
                                      `create_dept` bigint(64) DEFAULT NULL COMMENT '创建部门',
                                      `create_time` datetime DEFAULT NULL COMMENT '创建时间',
                                      `update_user` bigint(64) DEFAULT NULL COMMENT '修改人',
                                      `update_time` datetime DEFAULT NULL COMMENT '修改时间',
                                      `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态',
                                      `is_deleted` int(2) DEFAULT '0' COMMENT '是否已删除',
                                      `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
                                      PRIMARY KEY (`id`),
                                      UNIQUE KEY `uni` (`expression`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='流程表达式';

-- ----------------------------
-- Records of blade_wf_condition
-- ----------------------------
BEGIN;
INSERT INTO `blade_wf_condition` VALUES (1408267023015739393, '流程发起人', 'applyUser', 'user', 1123598821738675201, 1123598813738675201, '2021-06-25 11:33:17', 1123598821738675201, '2021-06-25 11:33:17', '1', 0, '000000');
INSERT INTO `blade_wf_condition` VALUES (1408267100878798850, '当前操作人', 'currentUser', 'user', 1123598821738675201, 1123598813738675201, '2021-06-25 11:33:36', 1123598821738675201, '2021-06-25 11:33:36', '1', 0, '000000');
INSERT INTO `blade_wf_condition` VALUES (1408305933398896641, '上级部门领导', 'leader', 'user', 1123598821738675201, 1123598813738675201, '2021-06-25 14:07:54', 1123598821738675201, '2021-06-25 14:07:54', '1', 0, '000000');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
