cr-connect-workflow/tests/data/get_zip_file/get_zip_file.bpmn

84 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions 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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_d37e36c" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.2.0">
<bpmn:process id="Process_SayHello" name="Say Hello" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1o4d6ut</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1o4d6ut" sourceRef="StartEvent_1" targetRef="Activity_GetFileIDs" />
<bpmn:userTask id="Activity_GetFileIDs" name="Get File IDs" camunda:formKey="GetName">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="file_id" label="File ID" type="long">
<camunda:properties>
<camunda:property id="repeat" value="file_ids" />
</camunda:properties>
<camunda:validation>
<camunda:constraint name="required" config="True" />
</camunda:validation>
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1o4d6ut</bpmn:incoming>
<bpmn:outgoing>Flow_1ga7oo5</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1ga7oo5" sourceRef="Activity_GetFileIDs" targetRef="Activity_GetZip" />
<bpmn:scriptTask id="Activity_GetZip" name="Get Zip">
<bpmn:incoming>Flow_1ga7oo5</bpmn:incoming>
<bpmn:outgoing>Flow_1uyi5u2</bpmn:outgoing>
<bpmn:script>to_zip = []
for file_id in file_ids:
to_zip.append(file_id['file_id'])
zip_file = get_zipped_files(file_ids=to_zip)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1uyi5u2" sourceRef="Activity_GetZip" targetRef="Activity_DisplayZip" />
<bpmn:manualTask id="Activity_DisplayZip" name="Display Zipped Files">
<bpmn:documentation># To Zip
{{ to_zip }}
# Zip
{{ zip_file }}</bpmn:documentation>
<bpmn:incoming>Flow_1uyi5u2</bpmn:incoming>
<bpmn:outgoing>Flow_0l42ysq</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_1sfhw21">
<bpmn:incoming>Flow_0l42ysq</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0l42ysq" sourceRef="Activity_DisplayZip" targetRef="Event_1sfhw21" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_SayHello">
<bpmndi:BPMNEdge id="Flow_0l42ysq_di" bpmnElement="Flow_0l42ysq">
<di:waypoint x="662" y="117" />
<di:waypoint x="712" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1uyi5u2_di" bpmnElement="Flow_1uyi5u2">
<di:waypoint x="500" y="117" />
<di:waypoint x="562" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ga7oo5_di" bpmnElement="Flow_1ga7oo5">
<di:waypoint x="340" y="117" />
<di:waypoint x="400" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1o4d6ut_di" bpmnElement="Flow_1o4d6ut">
<di:waypoint x="188" y="117" />
<di:waypoint x="240" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Activity_1jh8vhm_di" bpmnElement="Activity_DisplayZip">
<dc:Bounds x="562" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ftuz3s_di" bpmnElement="Activity_GetFileIDs">
<dc:Bounds x="240" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="152" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1qhfe35_di" bpmnElement="Activity_GetZip">
<dc:Bounds x="400" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1sfhw21_di" bpmnElement="Event_1sfhw21">
<dc:Bounds x="712" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>