81 lines
4.4 KiB
XML
81 lines
4.4 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Proccess_hez78l3" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0zgq59w</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0zgq59w" sourceRef="StartEvent_1" targetRef="Activity_0061b4a" />
|
|
<bpmn:endEvent id="Event_0svxq6k">
|
|
<bpmn:incoming>Flow_193c4bn</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_193c4bn" sourceRef="Activity_1g922mx" targetRef="Event_0svxq6k" />
|
|
<bpmn:serviceTask id="Activity_1g922mx" name="pdf to aws">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:serviceTaskOperator id="aws/UploadFileData">
|
|
<spiffworkflow:parameters>
|
|
<spiffworkflow:parameter id="bucket" type="str" value="'sartography-status-pdfs'" />
|
|
<spiffworkflow:parameter id="file_data" type="str" value="filesAccept" />
|
|
<spiffworkflow:parameter id="object_name" type="str" value="invoice_file_name" />
|
|
</spiffworkflow:parameters>
|
|
</spiffworkflow:serviceTaskOperator>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_17ugqan</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_193c4bn</bpmn:outgoing>
|
|
</bpmn:serviceTask>
|
|
<bpmn:sequenceFlow id="Flow_0ks0fo2" sourceRef="Activity_0061b4a" targetRef="Activity_1wibmo6" />
|
|
<bpmn:userTask id="Activity_0061b4a" name="submit pdf">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="ui.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0zgq59w</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0ks0fo2</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="Flow_17ugqan" sourceRef="Activity_1wibmo6" targetRef="Activity_1g922mx" />
|
|
<bpmn:scriptTask id="Activity_1wibmo6" name="set file name">
|
|
<bpmn:incoming>Flow_0ks0fo2</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_17ugqan</bpmn:outgoing>
|
|
<bpmn:script>invoice_file_name = invoice.contributorName + "_" + str(invoice.invoiceId) + ".pdf"</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_hez78l3">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0svxq6k_di" bpmnElement="Event_0svxq6k">
|
|
<dc:Bounds x="662" y="172" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_10tlb3s_di" bpmnElement="Activity_1g922mx">
|
|
<dc:Bounds x="540" y="150" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0bfj3sm_di" bpmnElement="Activity_0061b4a">
|
|
<dc:Bounds x="240" y="150" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_17s0t0b_di" bpmnElement="Activity_1wibmo6">
|
|
<dc:Bounds x="390" y="150" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0zgq59w_di" bpmnElement="Flow_0zgq59w">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="240" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_193c4bn_di" bpmnElement="Flow_193c4bn">
|
|
<di:waypoint x="640" y="190" />
|
|
<di:waypoint x="662" y="190" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ks0fo2_di" bpmnElement="Flow_0ks0fo2">
|
|
<di:waypoint x="340" y="190" />
|
|
<di:waypoint x="390" y="190" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_17ugqan_di" bpmnElement="Flow_17ugqan">
|
|
<di:waypoint x="490" y="190" />
|
|
<di:waypoint x="540" y="190" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|