| | |
| | | * @return |
| | | */ |
| | | public static final String getResourceBpmnXml(String flowId) { |
| | | String xml = "<bpmn2:definitions xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" 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=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\" xmlns:activiti=\"http://activiti.org/bpmn\">\n" + |
| | | " <bpmn2:process id=\"java110_" + flowId + "\" isExecutable=\"true\">\n" + |
| | | String xml = "<bpmn2:definitions xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" 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\" xmlns:activiti=\"http://activiti.org/bpmn\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\">\n" + |
| | | " <bpmn2:process id=\"java110_"+flowId+"\" isExecutable=\"true\">\n" + |
| | | " <bpmn2:startEvent id=\"StartEvent_1\">\n" + |
| | | " <bpmn2:outgoing>Flow_1sqmp2q</bpmn2:outgoing>\n" + |
| | | " </bpmn2:startEvent>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_1sqmp2q\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1ukl8gh\"/>\n" + |
| | | " <bpmn2:userTask id=\"Activity_1ukl8gh\" name=\"提交人\" camunda:assignee=\"${startUserId}\">\n" + |
| | | " <bpmn2:incoming>Flow_1sqmp2q</bpmn2:incoming>\n" + |
| | | " <bpmn2:incoming>Flow_0br4lc7</bpmn2:incoming>\n" + |
| | | " <bpmn2:outgoing>Flow_1qsbcm5</bpmn2:outgoing>\n" + |
| | | " </bpmn2:userTask>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_1qsbcm5\" sourceRef=\"Activity_1ukl8gh\" targetRef=\"Activity_0oru23p\"/>\n" + |
| | | " <bpmn2:userTask id=\"Activity_0oru23p\" name=\"审核人\" camunda:assignee=\"${nextUserId}\">\n" + |
| | | " <bpmn2:incoming>Flow_1qsbcm5</bpmn2:incoming>\n" + |
| | | " <bpmn2:outgoing>Flow_04yuz9d</bpmn2:outgoing>\n" + |
| | | " <bpmn2:outgoing>Flow_0br4lc7</bpmn2:outgoing>\n" + |
| | | " </bpmn2:userTask>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_04yuz9d\" sourceRef=\"Activity_0oru23p\" targetRef=\"Activity_1hy05pv\"/>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_04yuz9d\" sourceRef=\"Activity_0oru23p\" targetRef=\"Activity_1hy05pv\">\n" + |
| | | " <bpmn2:conditionExpression xsi:type=\"bpmn2:tFormalExpression\">${auditCode=='1100'}</bpmn2:conditionExpression>\n" + |
| | | " </bpmn2:sequenceFlow>\n" + |
| | | " <bpmn2:userTask id=\"Activity_1hy05pv\" name=\"仓库管理员\" camunda:assignee=\"${nextUserId}\">\n" + |
| | | " <bpmn2:incoming>Flow_04yuz9d</bpmn2:incoming>\n" + |
| | | " <bpmn2:outgoing>Flow_1ciz70a</bpmn2:outgoing>\n" + |
| | |
| | | " <bpmn2:incoming>Flow_1ciz70a</bpmn2:incoming>\n" + |
| | | " </bpmn2:endEvent>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_1ciz70a\" sourceRef=\"Activity_1hy05pv\" targetRef=\"Event_0i3sdca\"/>\n" + |
| | | " <bpmn2:sequenceFlow id=\"Flow_0br4lc7\" sourceRef=\"Activity_0oru23p\" targetRef=\"Activity_1ukl8gh\">\n" + |
| | | " <bpmn2:conditionExpression xsi:type=\"bpmn2:tFormalExpression\">${auditCode=='1400'}</bpmn2:conditionExpression>\n" + |
| | | " </bpmn2:sequenceFlow>\n" + |
| | | " </bpmn2:process>\n" + |
| | | " <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n" + |
| | | " <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"java110_752023082413650002\">\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1sqmp2q_di\" bpmnElement=\"Flow_1sqmp2q\">\n" + |
| | | " <di:waypoint x=\"448\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"500\" y=\"258\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1qsbcm5_di\" bpmnElement=\"Flow_1qsbcm5\">\n" + |
| | | " <di:waypoint x=\"600\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"660\" y=\"258\"/>\n" + |
| | | " <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"java110_752023082431250005\">\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1ciz70a_di\" bpmnElement=\"Flow_1ciz70a\">\n" + |
| | | " <di:waypoint x=\"920\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"982\" y=\"258\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_04yuz9d_di\" bpmnElement=\"Flow_04yuz9d\">\n" + |
| | | " <di:waypoint x=\"760\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"820\" y=\"258\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1ciz70a_di\" bpmnElement=\"Flow_1ciz70a\">\n" + |
| | | " <di:waypoint x=\"920\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"982\" y=\"258\"/>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1qsbcm5_di\" bpmnElement=\"Flow_1qsbcm5\">\n" + |
| | | " <di:waypoint x=\"600\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"660\" y=\"258\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_1sqmp2q_di\" bpmnElement=\"Flow_1sqmp2q\">\n" + |
| | | " <di:waypoint x=\"448\" y=\"258\"/>\n" + |
| | | " <di:waypoint x=\"500\" y=\"258\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNEdge id=\"Flow_0br4lc7_di\" bpmnElement=\"Flow_0br4lc7\">\n" + |
| | | " <di:waypoint x=\"710\" y=\"298\"/>\n" + |
| | | " <di:waypoint x=\"710\" y=\"420\"/>\n" + |
| | | " <di:waypoint x=\"550\" y=\"420\"/>\n" + |
| | | " <di:waypoint x=\"550\" y=\"298\"/>\n" + |
| | | " </bpmndi:BPMNEdge>\n" + |
| | | " <bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\">\n" + |
| | | " <dc:Bounds x=\"412\" y=\"240\" width=\"36\" height=\"36\"/>\n" + |