<?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.0ev" modeler:exportDateTime="20200429164346"
             modeler:modelId="1067100" modeler:modelVersion="1" modeler:modelLastUpdated="1588175020287">
    <process id="foia-extension-approve-process" name="foia-extension-approve-process" isExecutable="true">
        <documentation>This business process runs when the FOIA request enters the Approve queue.</documentation>
        <startEvent id="startEvent1" name="Start">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[startEvent1]]></modeler:editor-resource-id>
            </extensionElements>
        </startEvent>
        <sequenceFlow id="sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51" sourceRef="startEvent1"
                      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 Approve queue"
                     activiti:expression="#{queueCaseService.enqueue(OBJECT_ID, 'Approve')}">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-F88A33F4-A31E-43B6-A65C-0921762C023D]]></modeler:editor-resource-id>
            </extensionElements>
        </serviceTask>
        <sequenceFlow id="sid-F1D7A8E5-79D7-4990-A8B6-52AA679B0632" sourceRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D"
                      targetRef="sid-8E8C5937-19EC-44A0-BFA3-86603AB81714">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-F1D7A8E5-79D7-4990-A8B6-52AA679B0632]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <serviceTask id="sid-8E8C5937-19EC-44A0-BFA3-86603AB81714" name="Generate Correspondence Letter"
                     activiti:expression="#{foiaQueueCorrespondenceService.handleApproveCorrespondence(OBJECT_ID)}">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-8E8C5937-19EC-44A0-BFA3-86603AB81714]]></modeler:editor-resource-id>
            </extensionElements>
        </serviceTask>
        <sequenceFlow id="sid-2E97F8D2-157B-4FCA-AC6E-8A0BED1F4470" sourceRef="sid-8E8C5937-19EC-44A0-BFA3-86603AB81714"
                      targetRef="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-2E97F8D2-157B-4FCA-AC6E-8A0BED1F4470]]></modeler:editor-resource-id>
            </extensionElements>
        </sequenceFlow>
        <endEvent id="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39" name="End">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39]]></modeler:editor-resource-id>
            </extensionElements>
        </endEvent>
        <textAnnotation id="sid-4F445065-8F5B-4630-82E3-A420FE0FFB54">
            <extensionElements>
                <modeler:editor-resource-id><![CDATA[sid-4F445065-8F5B-4630-82E3-A420FE0FFB54]]></modeler:editor-resource-id>
            </extensionElements>
            <text>This process orchestrates all the actions needed when a FOIA request is entering the Approve queue.
                Currently there are 2 such actions:

                1. Set the queue name to 'Approve'
                2. Generate Correspondence Letter
            </text>
        </textAnnotation>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_foia-extension-approve-process">
        <bpmndi:BPMNPlane bpmnElement="foia-extension-approve-process" id="BPMNPlane_foia-extension-approve-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-F88A33F4-A31E-43B6-A65C-0921762C023D"
                              id="BPMNShape_sid-F88A33F4-A31E-43B6-A65C-0921762C023D">
                <omgdc:Bounds height="80.0" width="100.0" x="285.0" y="138.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-8E8C5937-19EC-44A0-BFA3-86603AB81714"
                              id="BPMNShape_sid-8E8C5937-19EC-44A0-BFA3-86603AB81714">
                <omgdc:Bounds height="80.0" width="116.0" x="470.25" 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="750.0" y="164.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-4F445065-8F5B-4630-82E3-A420FE0FFB54"
                              id="BPMNShape_sid-4F445065-8F5B-4630-82E3-A420FE0FFB54">
                <omgdc:Bounds height="135.0" width="417.0" x="107.5" y="255.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNEdge bpmnElement="sid-F1D7A8E5-79D7-4990-A8B6-52AA679B0632" id="BPMNEdge_sid-F1D7A8E5-79D7-4990-A8B6-52AA679B0632">
                <omgdi:waypoint x="385.0" y="178.0"/>
                <omgdi:waypoint x="470.25" y="178.0"/>
            </bpmndi:BPMNEdge>
            <bpmndi:BPMNEdge bpmnElement="sid-2E97F8D2-157B-4FCA-AC6E-8A0BED1F4470" id="BPMNEdge_sid-2E97F8D2-157B-4FCA-AC6E-8A0BED1F4470">
                <omgdi:waypoint x="586.25" y="178.0"/>
                <omgdi:waypoint x="750.0" 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="130.0" y="178.0"/>
                <omgdi:waypoint x="285.0" y="178.0"/>
            </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>