flowData.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. const flowData = {
  2. nodeData: [
  3. {
  4. key: 'Event_bd987f6e-9659-4624-9d0c-c1804d9dd73b',
  5. completed: true,
  6. },
  7. {
  8. key: 'Activity_98180a47-5854-405a-82e8-75378ee3936b',
  9. completed: true,
  10. },
  11. {
  12. key: 'Activity_117cb232-ec7c-4b57-a04b-81f256b00a09',
  13. completed: false,
  14. },
  15. {
  16. key: 'Activity_24128e99-5622-49ac-9578-8c8182fe1659',
  17. completed: false,
  18. },
  19. ],
  20. xmlData: `<?xml version="1.0" encoding="UTF-8"?>
  21. <bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="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:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0001">
  22. <bpmn:process id="Process_1703658160159" name="MES测试流程" isExecutable="true" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="" camunda:virtuallyRole="838317c0-e76b-475e-a78b-070df94d0d1b" camunda:nodeExecuteType="false">
  23. <bpmn:startEvent id="Event_bd987f6e-9659-4624-9d0c-c1804d9dd73b" name="开始" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="" camunda:virtuallyRole="7b51acae-de8f-4a60-8229-7f9e2cfe77fe" camunda:nodeExecuteType="false" camunda:IndustryType="0" camunda:NormalScriptKey="commonStartNodeProductionScheduling" camunda:NormalScriptTriggerType="1">
  24. <bpmn:outgoing>Flow_9ad9e6ec-b2ef-433e-aff8-a6607b5cb0e4</bpmn:outgoing>
  25. </bpmn:startEvent>
  26. <bpmn:userTask id="Activity_98180a47-5854-405a-82e8-75378ee3936b" name="工艺校验" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="f3b2b6ad-842a-461a-a6e8-dbe0d25449da" camunda:nodeExecuteType="false" camunda:asyncIndustryType="4" camunda:nodeFormKey="NodeShow" camunda:IndustryType="5" camunda:NormalScriptKey="38508d71-ce2a-41de-b1e4-7c48f4f4ff7e" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  27. <bpmn:incoming>Flow_9ad9e6ec-b2ef-433e-aff8-a6607b5cb0e4</bpmn:incoming>
  28. <bpmn:outgoing>Flow_d70d6a63-c165-48c4-a7e9-2b5ba89c018a</bpmn:outgoing>
  29. </bpmn:userTask>
  30. <bpmn:sequenceFlow id="Flow_9ad9e6ec-b2ef-433e-aff8-a6607b5cb0e4" sourceRef="Event_bd987f6e-9659-4624-9d0c-c1804d9dd73b" targetRef="Activity_98180a47-5854-405a-82e8-75378ee3936b" />
  31. <bpmn:userTask id="Activity_117cb232-ec7c-4b57-a04b-81f256b00a09" name="绑定主制班组" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="817182cd-b962-4f55-b63c-f5395ce2ae2c" camunda:nodeExecuteType="false" camunda:nodeFormKey="AssignEmployees" camunda:IndustryType="5" camunda:NormalScriptKey="b83c419b-59cb-4f56-9b53-fd85811be20d" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  32. <bpmn:extensionElements>
  33. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  34. </bpmn:extensionElements>
  35. <bpmn:incoming>Flow_d70d6a63-c165-48c4-a7e9-2b5ba89c018a</bpmn:incoming>
  36. <bpmn:outgoing>Flow_ac85664a-1c98-4a4c-8113-3c9deec61961</bpmn:outgoing>
  37. </bpmn:userTask>
  38. <bpmn:sequenceFlow id="Flow_d70d6a63-c165-48c4-a7e9-2b5ba89c018a" sourceRef="Activity_98180a47-5854-405a-82e8-75378ee3936b" targetRef="Activity_117cb232-ec7c-4b57-a04b-81f256b00a09" />
  39. <bpmn:userTask id="Activity_24128e99-5622-49ac-9578-8c8182fe1659" name="物料配套" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="e13382ff-659f-42fa-8a0c-c52a6725fe27" camunda:nodeExecuteType="false" camunda:nodeFormKey="Notes" camunda:IndustryType="5" camunda:NormalScriptKey="a4ca30eb-805c-4c83-a71a-ccdf0f568fb2" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  40. <bpmn:extensionElements>
  41. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  42. </bpmn:extensionElements>
  43. <bpmn:incoming>Flow_ac85664a-1c98-4a4c-8113-3c9deec61961</bpmn:incoming>
  44. <bpmn:outgoing>Flow_6ed2baa6-4379-47ed-90ba-52d8b5fdc410</bpmn:outgoing>
  45. </bpmn:userTask>
  46. <bpmn:sequenceFlow id="Flow_ac85664a-1c98-4a4c-8113-3c9deec61961" sourceRef="Activity_117cb232-ec7c-4b57-a04b-81f256b00a09" targetRef="Activity_24128e99-5622-49ac-9578-8c8182fe1659" />
  47. <bpmn:userTask id="Activity_f0325f77-e328-4428-a52d-6ac2addba361" name="记录质控卡" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="94b51d4a-179e-493a-8a2f-44cf83792c26" camunda:nodeExecuteType="false" camunda:nodeFormKey="RecordQuality" camunda:IndustryType="5" camunda:NormalScriptKey="ca0e7a45-ea6b-45f7-b721-cfb28d106735" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  48. <bpmn:extensionElements>
  49. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  50. </bpmn:extensionElements>
  51. <bpmn:incoming>Flow_6ed2baa6-4379-47ed-90ba-52d8b5fdc410</bpmn:incoming>
  52. <bpmn:outgoing>Flow_50b622d4-fe74-42d8-9454-59fab1d6d04a</bpmn:outgoing>
  53. </bpmn:userTask>
  54. <bpmn:sequenceFlow id="Flow_6ed2baa6-4379-47ed-90ba-52d8b5fdc410" sourceRef="Activity_24128e99-5622-49ac-9578-8c8182fe1659" targetRef="Activity_f0325f77-e328-4428-a52d-6ac2addba361" />
  55. <bpmn:userTask id="Activity_fc91a2e3-373b-4d1c-bea7-0c980d60b2fb" name="工序1:领料" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="cb1afa03-fb8e-40ad-86f9-df778798a697" camunda:nodeExecuteType="false" camunda:nodeFormKey="ProductionProcesses" camunda:IndustryType="5" camunda:NormalScriptKey="d16766d9-d568-4776-b05c-6fe144e89321" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  56. <bpmn:extensionElements>
  57. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  58. </bpmn:extensionElements>
  59. <bpmn:incoming>Flow_50b622d4-fe74-42d8-9454-59fab1d6d04a</bpmn:incoming>
  60. <bpmn:outgoing>Flow_f42217ee-cf62-48f4-8b0b-03283b730451</bpmn:outgoing>
  61. </bpmn:userTask>
  62. <bpmn:sequenceFlow id="Flow_50b622d4-fe74-42d8-9454-59fab1d6d04a" sourceRef="Activity_f0325f77-e328-4428-a52d-6ac2addba361" targetRef="Activity_fc91a2e3-373b-4d1c-bea7-0c980d60b2fb" />
  63. <bpmn:userTask id="Activity_ebe6e915-222f-4bf9-84d3-834630439be1" name="工序2:检验" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="4da22333-adf7-4289-ad2f-bf4d57ef6bf1" camunda:nodeExecuteType="false" camunda:nodeFormKey="PersonalDistribution" camunda:IndustryType="5" camunda:NormalScriptKey="2ba2eac6-d196-40d2-be2c-f6e2758d2635" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  64. <bpmn:extensionElements>
  65. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  66. </bpmn:extensionElements>
  67. <bpmn:incoming>Flow_f42217ee-cf62-48f4-8b0b-03283b730451</bpmn:incoming>
  68. <bpmn:outgoing>Flow_da7b8c30-0009-4ad3-ae2b-71a88abe96b3</bpmn:outgoing>
  69. </bpmn:userTask>
  70. <bpmn:sequenceFlow id="Flow_f42217ee-cf62-48f4-8b0b-03283b730451" sourceRef="Activity_fc91a2e3-373b-4d1c-bea7-0c980d60b2fb" targetRef="Activity_ebe6e915-222f-4bf9-84d3-834630439be1" />
  71. <bpmn:userTask id="Activity_fc7cbe9f-9a10-43c0-a841-0af7ff12e01b" name="打印交接单" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="219" camunda:virtuallyRole="2658bc04-b036-465c-b883-9b5b1a597d74" camunda:nodeExecuteType="false" camunda:nodeFormKey="Print" camunda:IndustryType="5" camunda:NormalScriptKey="c0abcdde-3562-4bd3-ae86-00aaf333cbfc" camunda:NormalScriptTriggerType="1" camunda:tableName="goods">
  72. <bpmn:extensionElements>
  73. <camunda:unusualTask scriptKey="4c163c35-6005-48cf-9dc0-3f07af04c70b" scriptTriggerType="0" scriptName="重绑工艺规程" industryType="0" compName="GY06" tableName="goods" />
  74. </bpmn:extensionElements>
  75. <bpmn:incoming>Flow_da7b8c30-0009-4ad3-ae2b-71a88abe96b3</bpmn:incoming>
  76. <bpmn:outgoing>Flow_76b0335b-f875-4544-bf2b-27139717c20f</bpmn:outgoing>
  77. </bpmn:userTask>
  78. <bpmn:sequenceFlow id="Flow_da7b8c30-0009-4ad3-ae2b-71a88abe96b3" sourceRef="Activity_ebe6e915-222f-4bf9-84d3-834630439be1" targetRef="Activity_fc7cbe9f-9a10-43c0-a841-0af7ff12e01b" />
  79. <bpmn:endEvent id="Event_cc872c83-2afd-45a8-87a5-daa9e7dab99d" name="结束" camunda:asyncIndustryType="4" camunda:executeUserType="1" camunda:executeUser="" camunda:virtuallyRole="7ab698e9-d42f-45ca-99d4-5a0409b30865" camunda:nodeExecuteType="false" camunda:IndustryType="0" camunda:NormalScriptKey="commonEndEvent" camunda:NormalScriptTriggerType="1">
  80. <bpmn:incoming>Flow_76b0335b-f875-4544-bf2b-27139717c20f</bpmn:incoming>
  81. </bpmn:endEvent>
  82. <bpmn:sequenceFlow id="Flow_76b0335b-f875-4544-bf2b-27139717c20f" sourceRef="Activity_fc7cbe9f-9a10-43c0-a841-0af7ff12e01b" targetRef="Event_cc872c83-2afd-45a8-87a5-daa9e7dab99d" />
  83. </bpmn:process>
  84. <bpmndi:BPMNDiagram id="BPMNDiagram_1">
  85. <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1703658160159">
  86. <bpmndi:BPMNShape id="Event_bd987f6e-9659-4624-9d0c-c1804d9dd73b_di" bpmnElement="Event_bd987f6e-9659-4624-9d0c-c1804d9dd73b">
  87. <dc:Bounds x="272" y="342" width="36" height="36" />
  88. <bpmndi:BPMNLabel>
  89. <dc:Bounds x="279" y="385" width="23" height="14" />
  90. </bpmndi:BPMNLabel>
  91. </bpmndi:BPMNShape>
  92. <bpmndi:BPMNShape id="Activity_98180a47-5854-405a-82e8-75378ee3936b_di" bpmnElement="Activity_98180a47-5854-405a-82e8-75378ee3936b">
  93. <dc:Bounds x="408" y="300" width="120" height="120" />
  94. <bpmndi:BPMNLabel />
  95. </bpmndi:BPMNShape>
  96. <bpmndi:BPMNShape id="Activity_117cb232-ec7c-4b57-a04b-81f256b00a09_di" bpmnElement="Activity_117cb232-ec7c-4b57-a04b-81f256b00a09">
  97. <dc:Bounds x="628" y="300" width="120" height="120" />
  98. <bpmndi:BPMNLabel />
  99. </bpmndi:BPMNShape>
  100. <bpmndi:BPMNShape id="Activity_24128e99-5622-49ac-9578-8c8182fe1659_di" bpmnElement="Activity_24128e99-5622-49ac-9578-8c8182fe1659">
  101. <dc:Bounds x="848" y="300" width="120" height="120" />
  102. <bpmndi:BPMNLabel />
  103. </bpmndi:BPMNShape>
  104. <bpmndi:BPMNShape id="Activity_f0325f77-e328-4428-a52d-6ac2addba361_di" bpmnElement="Activity_f0325f77-e328-4428-a52d-6ac2addba361">
  105. <dc:Bounds x="1068" y="300" width="120" height="120" />
  106. <bpmndi:BPMNLabel />
  107. </bpmndi:BPMNShape>
  108. <bpmndi:BPMNShape id="Activity_fc91a2e3-373b-4d1c-bea7-0c980d60b2fb_di" bpmnElement="Activity_fc91a2e3-373b-4d1c-bea7-0c980d60b2fb">
  109. <dc:Bounds x="1288" y="300" width="120" height="120" />
  110. <bpmndi:BPMNLabel />
  111. </bpmndi:BPMNShape>
  112. <bpmndi:BPMNShape id="Activity_ebe6e915-222f-4bf9-84d3-834630439be1_di" bpmnElement="Activity_ebe6e915-222f-4bf9-84d3-834630439be1">
  113. <dc:Bounds x="1508" y="300" width="120" height="120" />
  114. <bpmndi:BPMNLabel />
  115. </bpmndi:BPMNShape>
  116. <bpmndi:BPMNShape id="Activity_fc7cbe9f-9a10-43c0-a841-0af7ff12e01b_di" bpmnElement="Activity_fc7cbe9f-9a10-43c0-a841-0af7ff12e01b">
  117. <dc:Bounds x="1728" y="300" width="120" height="120" />
  118. <bpmndi:BPMNLabel />
  119. </bpmndi:BPMNShape>
  120. <bpmndi:BPMNShape id="Event_cc872c83-2afd-45a8-87a5-daa9e7dab99d_di" bpmnElement="Event_cc872c83-2afd-45a8-87a5-daa9e7dab99d">
  121. <dc:Bounds x="1948" y="342" width="36" height="36" />
  122. <bpmndi:BPMNLabel>
  123. <dc:Bounds x="1955" y="385" width="23" height="14" />
  124. </bpmndi:BPMNLabel>
  125. </bpmndi:BPMNShape>
  126. <bpmndi:BPMNEdge id="Flow_9ad9e6ec-b2ef-433e-aff8-a6607b5cb0e4_di" bpmnElement="Flow_9ad9e6ec-b2ef-433e-aff8-a6607b5cb0e4">
  127. <di:waypoint x="308" y="360" />
  128. <di:waypoint x="408" y="360" />
  129. </bpmndi:BPMNEdge>
  130. <bpmndi:BPMNEdge id="Flow_d70d6a63-c165-48c4-a7e9-2b5ba89c018a_di" bpmnElement="Flow_d70d6a63-c165-48c4-a7e9-2b5ba89c018a">
  131. <di:waypoint x="528" y="360" />
  132. <di:waypoint x="628" y="360" />
  133. </bpmndi:BPMNEdge>
  134. <bpmndi:BPMNEdge id="Flow_ac85664a-1c98-4a4c-8113-3c9deec61961_di" bpmnElement="Flow_ac85664a-1c98-4a4c-8113-3c9deec61961">
  135. <di:waypoint x="748" y="360" />
  136. <di:waypoint x="848" y="360" />
  137. </bpmndi:BPMNEdge>
  138. <bpmndi:BPMNEdge id="Flow_6ed2baa6-4379-47ed-90ba-52d8b5fdc410_di" bpmnElement="Flow_6ed2baa6-4379-47ed-90ba-52d8b5fdc410">
  139. <di:waypoint x="968" y="360" />
  140. <di:waypoint x="1068" y="360" />
  141. </bpmndi:BPMNEdge>
  142. <bpmndi:BPMNEdge id="Flow_50b622d4-fe74-42d8-9454-59fab1d6d04a_di" bpmnElement="Flow_50b622d4-fe74-42d8-9454-59fab1d6d04a">
  143. <di:waypoint x="1188" y="360" />
  144. <di:waypoint x="1288" y="360" />
  145. </bpmndi:BPMNEdge>
  146. <bpmndi:BPMNEdge id="Flow_f42217ee-cf62-48f4-8b0b-03283b730451_di" bpmnElement="Flow_f42217ee-cf62-48f4-8b0b-03283b730451">
  147. <di:waypoint x="1408" y="360" />
  148. <di:waypoint x="1508" y="360" />
  149. </bpmndi:BPMNEdge>
  150. <bpmndi:BPMNEdge id="Flow_da7b8c30-0009-4ad3-ae2b-71a88abe96b3_di" bpmnElement="Flow_da7b8c30-0009-4ad3-ae2b-71a88abe96b3">
  151. <di:waypoint x="1628" y="360" />
  152. <di:waypoint x="1728" y="360" />
  153. </bpmndi:BPMNEdge>
  154. <bpmndi:BPMNEdge id="Flow_76b0335b-f875-4544-bf2b-27139717c20f_di" bpmnElement="Flow_76b0335b-f875-4544-bf2b-27139717c20f">
  155. <di:waypoint x="1848" y="360" />
  156. <di:waypoint x="1948" y="360" />
  157. </bpmndi:BPMNEdge>
  158. </bpmndi:BPMNPlane>
  159. </bpmndi:BPMNDiagram>
  160. </bpmn:definitions>
  161. `
  162. }
  163. export default flowData