<?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="20200429162541"
             modeler:modelId="1067099" modeler:modelVersion="1" modeler:modelLastUpdated="1588173579250">
    <process id="foia-extension-leave-hold-process" name="foia-extension-leave-hold-process" isExecutable="true">
        <documentation>This business process runs when the FOIA request leaves the Hold queue.</documentation>
        <startEvent id="startEvent1" name="Start"/>
        <sequenceFlow id="sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4" sourceRef="startEvent1"
                      targetRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585"/>
        <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')}"/>
        <sequenceFlow id="sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51" sourceRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585"
                      targetRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D"/>
        <serviceTask id="sid-F88A33F4-A31E-43B6-A65C-0921762C023D" name="Extend FOIA Request Due Date"
                     activiti:expression="#{extendDatesServiceForRequestsInHoldQueue.extendDatesForRequestsLeavingHoldQueue(OBJECT_ID)}"/>
        <sequenceFlow id="sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" sourceRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585"
                      targetRef="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39"/>
        <endEvent id="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39" name="End&#xa;"/>
        <textAnnotation id="sid-6E1BD203-9F79-4859-BC79-4A76EDE9B734">
            <text>This process orchestrates all the actions needed when a FOIA request is leaving the Hold queue.
                Currently there is one such actions:

                1. Set the status to Perfected, if status is not Closed
                2. Extend Perfected Date and Due Date
            </text>
        </textAnnotation>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_foia-extension-leave-hold-process">
        <bpmndi:BPMNPlane bpmnElement="foia-extension-leave-hold-process" id="BPMNPlane_foia-extension-leave-hold-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="315.0" 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="633.75" y="164.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape bpmnElement="sid-6E1BD203-9F79-4859-BC79-4A76EDE9B734"
                              id="BPMNShape_sid-6E1BD203-9F79-4859-BC79-4A76EDE9B734">
                <omgdc:Bounds height="114.0" width="247.0" x="105.0" y="255.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNEdge bpmnElement="sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" id="BPMNEdge_sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629">
                <omgdi:waypoint x="415.0" y="178.0"/>
                <omgdi:waypoint x="633.75" 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="315.0" y="178.0"/>
            </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>