<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 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" xmlns:modeler="http://activiti.com/modeler" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef" modeler:version="1.0ev" modeler:exportDateTime="20180628141905" modeler:modelId="1046216" modeler:modelVersion="1" modeler:modelLastUpdated="1530191931844">
  <process id="foia-extension-delete-process" name="foia-extension-delete-process" isExecutable="true">
    <documentation>This business process runs when the FOIA request enters the Delete queue.</documentation>
    <startEvent id="startEvent1">
      <extensionElements>
        <modeler:editor-resource-id>startEvent1</modeler:editor-resource-id>
      </extensionElements>
    </startEvent>
    <serviceTask id="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585" name="Set FOIA Request status" activiti:expression="#{changeObjectStatusService.changeIfNoPermanentStatusIsSet(OBJECT_ID, OBJECT_TYPE, 'Deleted', 'Closed')}">
      <extensionElements>
        <modeler:editor-resource-id>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>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 Delete queue" activiti:expression="#{queueCaseService.enqueue(OBJECT_ID, 'Delete')}">
      <extensionElements>
        <modeler:editor-resource-id>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>sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39</modeler:editor-resource-id>
      </extensionElements>
    </endEvent>
    <sequenceFlow id="sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4" sourceRef="startEvent1" targetRef="sid-E0905ADB-9340-49AC-ADA5-3AD0B417D585">
      <extensionElements>
        <modeler:editor-resource-id>sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4</modeler:editor-resource-id>
      </extensionElements>
    </sequenceFlow>
    <sequenceFlow id="flow1" sourceRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D" targetRef="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39"></sequenceFlow>
    <textAnnotation id="sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5">
      <extensionElements>
        <modeler:editor-resource-id>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 Delete queue.
                Currently there are five such actions:

                1. Set the status to Deleted, if status is not Closed
                2. Set the queue name to 'Delete'
            </text>
    </textAnnotation>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_foia-extension-delete-process">
    <bpmndi:BPMNPlane bpmnElement="foia-extension-delete-process" id="BPMNPlane_foia-extension-delete-process">
      <bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
        <omgdc:Bounds height="35.0" width="35.0" x="100.0" y="163.0"></omgdc:Bounds>
      </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.0" y="138.0"></omgdc:Bounds>
      </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.0" y="138.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39" id="BPMNShape_sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39">
        <omgdc:Bounds height="35.0" width="35.0" x="610.0" y="163.0"></omgdc:Bounds>
      </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"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51" id="BPMNEdge_sid-A1A80BC3-B3F3-472A-8187-6EF2428E1D51">
        <omgdi:waypoint x="319.0" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="384.0" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4" id="BPMNEdge_sid-2ECFBB0E-7B21-4B25-9FA3-6D8134E86DA4">
        <omgdi:waypoint x="135.0" y="180.0"></omgdi:waypoint>
        <omgdi:waypoint x="219.0" y="178.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="484.0" y="178.0"></omgdi:waypoint>
        <omgdi:waypoint x="610.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>