ALTER TABLE `blade_wf_deployment_form` ADD COLUMN `task_key` varchar(255) NULL COMMENT '节点key' AFTER `content`;
ALTER TABLE `blade_wf_deployment_form` ADD COLUMN `task_name` varchar(255) NULL COMMENT '节点名称' AFTER `task_key`;

INSERT INTO `ACT_DE_MODEL` VALUES ('d71049b6ba4eda39cacf9baf984274ac', '节点独立表单示例', 'indep-form', 'wf_indep_default-value', NULL, NULL, NULL, '2021-10-11 21:32:41.567000', '1123598821738675201', '2021-10-11 21:32:41.567000', '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:activiti=\"http://activiti.org/bpmn\" xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n  <process id=\"indep-form\" name=\"节点独立表单示例\" isExecutable=\"true\">\n    <startEvent id=\"startEvent_1\" name=\"开始\">\n      <extensionElements>\n        <flowable:indepFormKey value=\"default-value\" />\n        <flowable:formProperty id=\"1622472547203_21841\" name=\"人事姓名\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622553629767_65211\" name=\"人事职位\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622472547375_86557\" name=\"人事部门\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622553629949_3168\" name=\"当前日期\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622553631752_15562\" name=\"当前时间\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622553691156_69886\" name=\"人事姓名和日期\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622472547780_5707\" name=\"经理姓名\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622472547975_90560\" name=\"经理部门\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622472548372_60141\" name=\"老板姓名\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"1622472548560_32474\" name=\"老板部门\" readable=\"true\" writable=\"true\" />\n      </extensionElements>\n      <outgoing>Flow_0u2w7hr</outgoing>\n    </startEvent>\n    <userTask id=\"Activity_0a06fpe\" name=\"节点1\" flowable:indepFormKey=\"leave\" flowable:indepFormSummary=\"0\">\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=\"true\" />\n        <flowable:formProperty id=\"days\" name=\"请假天数\" readable=\"true\" writable=\"true\" />\n        <flowable:formProperty id=\"reason\" name=\"请假理由\" readable=\"true\" writable=\"true\" />\n        <flowable:assignee type=\"user\" value=\"1123598821738675201\" text=\"管理员\" />\n      </extensionElements>\n      <incoming>Flow_0u2w7hr</incoming>\n      <outgoing>Flow_1gfy6oq</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_0u2w7hr\" sourceRef=\"startEvent_1\" targetRef=\"Activity_0a06fpe\" />\n    <userTask id=\"Activity_0k3kp91\" name=\"节点2\" flowable:indepFormKey=\"demo-test\" flowable:indepFormSummary=\"0\">\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=\"user\" value=\"1123598821738675201\" text=\"管理员\" />\n      </extensionElements>\n      <incoming>Flow_1gfy6oq</incoming>\n      <outgoing>Flow_016wlba</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_1gfy6oq\" sourceRef=\"Activity_0a06fpe\" targetRef=\"Activity_0k3kp91\" />\n    <userTask id=\"Activity_1yv7km2\" name=\"汇总\" flowable:indepFormSummary=\"1\">\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:assignee type=\"user\" value=\"1123598821738675201\" text=\"管理员\" />\n      </extensionElements>\n      <incoming>Flow_016wlba</incoming>\n      <outgoing>Flow_1omx17n</outgoing>\n    </userTask>\n    <sequenceFlow id=\"Flow_016wlba\" sourceRef=\"Activity_0k3kp91\" targetRef=\"Activity_1yv7km2\" />\n    <endEvent id=\"Event_1vr1neq\" name=\"结束\">\n      <incoming>Flow_1omx17n</incoming>\n    </endEvent>\n    <sequenceFlow id=\"Flow_1omx17n\" sourceRef=\"Activity_1yv7km2\" targetRef=\"Event_1vr1neq\" />\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_flow\">\n    <bpmndi:BPMNPlane id=\"BPMNPlane_flow\" bpmnElement=\"indep-form\">\n      <bpmndi:BPMNEdge id=\"Flow_0u2w7hr_di\" bpmnElement=\"Flow_0u2w7hr\">\n        <di:waypoint x=\"276\" y=\"218\" />\n        <di:waypoint x=\"330\" y=\"218\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1gfy6oq_di\" bpmnElement=\"Flow_1gfy6oq\">\n        <di:waypoint x=\"430\" y=\"218\" />\n        <di:waypoint x=\"490\" y=\"218\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_016wlba_di\" bpmnElement=\"Flow_016wlba\">\n        <di:waypoint x=\"590\" y=\"218\" />\n        <di:waypoint x=\"650\" y=\"218\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"Flow_1omx17n_di\" bpmnElement=\"Flow_1omx17n\">\n        <di:waypoint x=\"750\" y=\"218\" />\n        <di:waypoint x=\"812\" y=\"218\" />\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNShape id=\"BPMNShape_startEvent_1\" bpmnElement=\"startEvent_1\">\n        <dc:Bounds x=\"240\" y=\"200\" width=\"36\" height=\"36\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"247\" y=\"243\" width=\"22\" height=\"14\" />\n        </bpmndi:BPMNLabel>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0a06fpe_di\" bpmnElement=\"Activity_0a06fpe\">\n        <dc:Bounds x=\"330\" y=\"178\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_0k3kp91_di\" bpmnElement=\"Activity_0k3kp91\">\n        <dc:Bounds x=\"490\" y=\"178\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Activity_1yv7km2_di\" bpmnElement=\"Activity_1yv7km2\">\n        <dc:Bounds x=\"650\" y=\"178\" width=\"100\" height=\"80\" />\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"Event_1vr1neq_di\" bpmnElement=\"Event_1vr1neq\">\n        <dc:Bounds x=\"812\" y=\"200\" width=\"36\" height=\"36\" />\n        <bpmndi:BPMNLabel>\n          <dc:Bounds x=\"819\" y=\"243\" 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\":\"indep-form\",\"name\":\"节点独立表单示例\",\"process_namespace\":\"http://bpmn.io/schema/bpmn\",\"iseagerexecutionfetch\":false,\"messages\":[],\"executionlisteners\":{\"executionListeners\":[]},\"eventlisteners\":{\"eventListeners\":[]},\"signaldefinitions\":[],\"messagedefinitions\":[],\"escalationdefinitions\":[]},\"childShapes\":[{\"bounds\":{\"lowerRight\":{\"x\":276.0,\"y\":236.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\":\"1622472547203_21841\",\"name\":\"人事姓名\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622553629767_65211\",\"name\":\"人事职位\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622472547375_86557\",\"name\":\"人事部门\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622553629949_3168\",\"name\":\"当前日期\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622553631752_15562\",\"name\":\"当前时间\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622553691156_69886\",\"name\":\"人事姓名和日期\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622472547780_5707\",\"name\":\"经理姓名\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622472547975_90560\",\"name\":\"经理部门\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622472548372_60141\",\"name\":\"老板姓名\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true},{\"id\":\"1622472548560_32474\",\"name\":\"老板部门\",\"type\":null,\"expression\":null,\"variable\":null,\"default\":null,\"required\":false,\"readable\":true,\"writable\":true}]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_0u2w7hr\"}]},{\"bounds\":{\"lowerRight\":{\"x\":430.0,\"y\":258.0},\"upperLeft\":{\"x\":330.0,\"y\":178.0}},\"resourceId\":\"Activity_0a06fpe\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0a06fpe\",\"name\":\"节点1\",\"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_1gfy6oq\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_0u2w7hr\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":18.0,\"y\":18.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0a06fpe\"}],\"target\":{\"resourceId\":\"Activity_0a06fpe\"},\"properties\":{\"overrideid\":\"Flow_0u2w7hr\"}},{\"bounds\":{\"lowerRight\":{\"x\":590.0,\"y\":258.0},\"upperLeft\":{\"x\":490.0,\"y\":178.0}},\"resourceId\":\"Activity_0k3kp91\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_0k3kp91\",\"name\":\"节点2\",\"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_016wlba\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1gfy6oq\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_0k3kp91\"}],\"target\":{\"resourceId\":\"Activity_0k3kp91\"},\"properties\":{\"overrideid\":\"Flow_1gfy6oq\"}},{\"bounds\":{\"lowerRight\":{\"x\":750.0,\"y\":258.0},\"upperLeft\":{\"x\":650.0,\"y\":178.0}},\"resourceId\":\"Activity_1yv7km2\",\"childShapes\":[],\"stencil\":{\"id\":\"UserTask\"},\"properties\":{\"overrideid\":\"Activity_1yv7km2\",\"name\":\"汇总\",\"asynchronousdefinition\":false,\"exclusivedefinition\":true,\"isforcompensation\":false,\"tasklisteners\":{\"taskListeners\":[]},\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[{\"resourceId\":\"Flow_1omx17n\"}]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_016wlba\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":50.0,\"y\":40.0}],\"outgoing\":[{\"resourceId\":\"Activity_1yv7km2\"}],\"target\":{\"resourceId\":\"Activity_1yv7km2\"},\"properties\":{\"overrideid\":\"Flow_016wlba\"}},{\"bounds\":{\"lowerRight\":{\"x\":848.0,\"y\":236.0},\"upperLeft\":{\"x\":812.0,\"y\":200.0}},\"resourceId\":\"Event_1vr1neq\",\"childShapes\":[],\"stencil\":{\"id\":\"EndNoneEvent\"},\"properties\":{\"overrideid\":\"Event_1vr1neq\",\"name\":\"结束\",\"executionlisteners\":{\"executionListeners\":[]}},\"outgoing\":[]},{\"bounds\":{\"lowerRight\":{\"x\":172.0,\"y\":212.0},\"upperLeft\":{\"x\":128.0,\"y\":212.0}},\"resourceId\":\"Flow_1omx17n\",\"childShapes\":[],\"stencil\":{\"id\":\"SequenceFlow\"},\"dockers\":[{\"x\":50.0,\"y\":40.0},{\"x\":18.0,\"y\":18.0}],\"outgoing\":[{\"resourceId\":\"Event_1vr1neq\"}],\"target\":{\"resourceId\":\"Event_1vr1neq\"},\"properties\":{\"overrideid\":\"Flow_1omx17n\"}}]}', NULL, 0, '000000');
INSERT INTO `blade_wf_model_scope` VALUES (1447556025547763714, 'd71049b6ba4eda39cacf9baf984274ac', 'indep-form', 'role', '1123598816738675201,1123598816738675202,1123598816738675203,1123598816738675204,1123598816738675205', '超级管理员,用户,人事,经理,老板');
