<?xml version='1.0' encoding='UTF-8'?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn"
             xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
             xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
             typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
             targetNamespace="http://www.activiti.org/processdef" xmlns:modeler="http://activiti.com/modeler"
             modeler:version="1.0en" modeler:exportDateTime="20200507115601348" modeler:modelId="2"
             modeler:modelVersion="2" modeler:modelLastUpdated="1588845331593">
    <process id="foia-extension-appeal-process" name="foia-extension-appeal-process" isExecutable="true">
        <documentation>This business process runs when the FOIA request enters the Appeal queue.</documentation>
        <startEvent id="startEvent1">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[startEvent1]]></modeler:editor-resource-id>
            </extensionElements>
        </startEvent>
        <sequenceFlow id="sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4" sourceRef="startEvent1" targetRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <serviceTask id="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585" name="Set FOIA Request status to Perfected" activiti:expression="#{changeObjectStatusService.changeIfNoPermanentStatusIsSet(OBJECT_ID, OBJECT_TYPE, 'Perfected', 'Closed')}">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585]]></modeler:editor-resource-id>
            </extensionElements>
        </serviceTask>
        <sequenceFlow id="sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51" sourceRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585" targetRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <serviceTask id="sid-F88A33F4-A31E-43B6-A65C-0921762C023D" name="Place FOIA Request in Appeal queue" activiti:expression="#{queueCaseService.enqueue(OBJECT_ID, 'Appeal')}">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-F88A33F4-A31E-43B6-A65C-0921762C023D]]></modeler:editor-resource-id>
            </extensionElements>
        </serviceTask>
        <endEvent id="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39]]></modeler:editor-resource-id>
            </extensionElements>
        </endEvent>
        <sequenceFlow id="sid-8D6D1E41-E4AD-429D-B18A-F449B0F2F214" sourceRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D" targetRef="sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-8D6D1E41-E4AD-429D-B18A-F449B0F2F214]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <serviceTask id="sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A" name="Generate Acknowledgement Letter" activiti:expression="#{acknowledgementDocumentService.generateAndUpload(OBJECT_TYPE, OBJECT_ID)}">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A]]></modeler:editor-resource-id>
            </extensionElements>
        </serviceTask>
        <sequenceFlow id="sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" sourceRef="sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A" targetRef="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <textAnnotation id="sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5]]></modeler:editor-resource-id>
            </extensionElements>
            <text>This process orchestrates all the actions needed when a FOIA request is entering the Appeal queue.
                Currently there are two such actions:

                1. Set the status to Perfected, if status is not Closed
                2. Set the queue name to 'Appeal'
                3. Generate an acknowledgement letter</text>
        </textAnnotation>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_foia-extension-appeal-process">
        <bpmndi:BPMNPlane bpmnElement="foia-extension-appeal-process" id="BPMNPlane_foia-extension-appeal-process">
            <bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
                <omgdc:Bounds height="30.0" width="30.0" x="100.0" y="163.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585" id="BPMNShape_sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585">
                <omgdc:Bounds height="80.0" width="100.0" x="219.75" y="138.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-F88A33F4-A31E-43B6-A65C-0921762C023D" id="BPMNShape_sid-F88A33F4-A31E-43B6-A65C-0921762C023D">
                <omgdc:Bounds height="80.0" width="100.0" x="384.75" y="138.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39" id="BPMNShape_sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39">
                <omgdc:Bounds height="28.0" width="28.0" x="720.0" y="164.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A" id="BPMNShape_sid-FDDF4E8E-EBFC-445C-B647-68CEC6E1315A">
                <omgdc:Bounds height="80.0" width="120.0" x="525.0" y="138.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5" id="BPMNShape_sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5">
                <omgdc:Bounds height="227.0" width="294.0" x="195.0" y="255.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNEdge bpmnElement="sid-8D6D1E41-E4AD-429D-B18A-F449B0F2F214" id="BPMNEdge_sid-8D6D1E41-E4AD-429D-B18A-F449B0F2F214">
                <omgdi:waypoint x="484.75" y="178.0"/>
                <omgdi:waypoint x="525.0" y="178.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge bpmnElement="sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" id="BPMNEdge_sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629">
                <omgdi:waypoint x="645.0" y="178.0"/>
                <omgdi:waypoint x="720.0" y="178.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge bpmnElement="sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4" id="BPMNEdge_sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4">
                <omgdi:waypoint x="130.0" y="178.0"/>
                <omgdi:waypoint x="219.75" y="178.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge bpmnElement="sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51" id="BPMNEdge_sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51">
                <omgdi:waypoint x="319.75" y="178.0"/>
                <omgdi:waypoint x="384.75" y="178.0"/>
            </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>