<?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="20160707202747" modeler:modelId="981819"
    modeler:modelVersion="1" modeler:modelLastUpdated="1467919659458">
    <process id="privacy-extension-hold-process" name="privacy-extension-hold-process" isExecutable="true">
        <documentation>This business process runs when the Subject Access Request enters the Hold queue.</documentation>
        <startEvent id="startEvent1"/>
        <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 Subject Access Request status"
                     activiti:expression="#{changeObjectStatusService.changeIfNoPermanentStatusIsSet(OBJECT_ID, OBJECT_TYPE, OBJECT_STATUS, '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="Place Subject Access Request in Hold queue"
            activiti:expression="#{queueCaseService.enqueue(OBJECT_ID, 'Hold')}"/>
        <endEvent id="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39"/>
        <sequenceFlow id="sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" sourceRef="sid-F88A33F4-A31E-43B6-A65C-0921762C023D"
            targetRef="sid-2158CAAD-78C1-465F-B109-70C2FCF1FF39"/>
        <textAnnotation id="sid-A4DD8BA4-1458-4B2D-A55F-9098105D10A5">
            <text>This process orchestrates all the actions needed when a Subject Access Request is entering the Hold queue.
                Currently there are two such actions:

                1. Set the status to Hold, if status is not Closed
                2. Set the queue name to 'Hold'
            </text>
        </textAnnotation>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_privacy-extension-hold-process">
        <bpmndi:BPMNPlane bpmnElement="privacy-extension-hold-process" id="BPMNPlane_privacy-extension-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="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="633.75" y="164.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-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629" id="BPMNEdge_sid-9CC4EEEB-90ED-4DEC-9FBC-0F27FC1CE629">
                <omgdi:waypoint x="484.75" 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="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>