<?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:flowable="http://flowable.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.flowable.org/processdef">
  <process id="SRD_FIXED_LINE" name="SRD_FIXED_LINE" isExecutable="true">
    <callActivity id="sid-F3BB751F-AE1A-4CA0-A6BD-64007FA03075" name="Existing Copper Network" flowable:async="true" calledElement="SRD_COPPER_FEASIBILITY" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:completeAsync="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${freeTrails}" target="isThereACOPPERSolution"></flowable:out>
        <flowable:out sourceExpression="${isActiveAvailable}" target="isActiveCopperAvailable"></flowable:out>
        <flowable:out sourceExpression="${isPassiveAvailable}" target="isPassiveCopperAvailable"></flowable:out>
        <flowable:out sourceExpression="${maxDistance}" target="maxCopperDistance"></flowable:out>
        <flowable:out sourceExpression="${siteLat}" target="copperSiteLat"></flowable:out>
        <flowable:out sourceExpression="${siteLong}" target="copperSiteLong"></flowable:out>
        <flowable:out sourceExpression="${coordinateFormat}" target="copperCoordinateFormat"></flowable:out>
        <flowable:out sourceExpression="${bswAutoCreated}" target="copperBswAutoCreated"></flowable:out>
        <flowable:out sourceExpression="${vendor}" target="copperVendor"></flowable:out>
        <flowable:out sourceExpression="${excDistance}" target="copperExcDistance"></flowable:out>
        <flowable:out sourceExpression="${coverage}" target="copperCoverage"></flowable:out>
        <flowable:out sourceExpression="${bswAvailable}" target="copperBswAvailable"></flowable:out>
      </extensionElements>
    </callActivity>
    <callActivity id="sid-4079837A-051D-4809-A2D2-E25A669346E1" name="Existing GPON Network" flowable:async="true" calledElement="SRD_GPON_FEASIBILITY" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:completeAsync="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${isThereAgponSolution}" target="isThereAGPONSolution"></flowable:out>
        <flowable:out sourceExpression="${isActiveAvailable}" target="isActiveGponAvailable"></flowable:out>
        <flowable:out sourceExpression="${isPassiveAvailable}" target="isPassiveGponAvailable"></flowable:out>
        <flowable:out sourceExpression="${siteLat}" target="gponSiteLat"></flowable:out>
        <flowable:out sourceExpression="${siteLong}" target="gponSiteLong"></flowable:out>
        <flowable:out sourceExpression="${coordinateFormat}" target="gponCoordinateFormat"></flowable:out>
        <flowable:out sourceExpression="${vendor}" target="gponVendor"></flowable:out>
        <flowable:out sourceExpression="${coverage}" target="gponCoverage"></flowable:out>
        <flowable:out sourceExpression="${excDistance}" target="gponExcDistance"></flowable:out>
        <flowable:out sourceExpression="${isFtbAtbConnected}" target="isFtbAtbConnected"></flowable:out>
      </extensionElements>
    </callActivity>
    <callActivity id="sid-B1B757F3-5662-4AD2-84A0-CA4314D6582C" name="Existing OBB Network" flowable:async="true" calledElement="SRD_OBB_FEASIBILITY" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:completeAsync="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${isThereAnObbSolution}" target="isThereAnOBBSolution"></flowable:out>
        <flowable:out sourceExpression="${obbTag}" target="obbTag"></flowable:out>
      </extensionElements>
    </callActivity>
    <startEvent id="sid-E65CA589-EA41-4514-A70C-25D79294E2BC" flowable:formFieldValidation="true"></startEvent>
    <callActivity id="sid-25F455CB-D5F1-44D0-B1DB-05A91400332D" name="Mobile coverage (WFBB)" flowable:async="true" calledElement="SRD_MOBILE_COVERAGE_WFBB_FEASIBILITY" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:completeAsync="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${isThereAnWfbbSolution}" target="isThereAWFBBSolution"></flowable:out>
        <flowable:out sourceExpression="${wfbbCheck}" target="wfbbCheck"></flowable:out>
        <flowable:out sourceExpression="${coverage}" target="wfbbCoverage"></flowable:out>
        <flowable:out sourceExpression="${vendor}" target="wfbbVendor"></flowable:out>
        <flowable:out sourceExpression="${excDistance}" target="wfbbExcDistance"></flowable:out>
      </extensionElements>
    </callActivity>
    <callActivity id="sid-355E4DD5-B957-493E-8B55-7153A690A57D" name="Feasibility acceptance" flowable:async="true" calledElement="SRD_FEASIBILITY_ACCEPTANCE" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:in sourceExpression="${isActiveCopperAvailable}" target="isActiveCopperAvailable"></flowable:in>
        <flowable:in sourceExpression="${isActiveGponAvailable}" target="isActiveGponAvailable"></flowable:in>
        <flowable:in sourceExpression="${isPassiveGponAvailable}" target="isPassiveGponAvailable"></flowable:in>
        <flowable:in sourceExpression="${isPassiveCopperAvailable}" target="isPassiveCopperAvailable"></flowable:in>
        <flowable:in sourceExpression="${maxCopperDistance}" target="maxCopperDistance"></flowable:in>
        <flowable:in sourceExpression="${copperSiteLat}" target="copperSiteLat"></flowable:in>
        <flowable:in sourceExpression="${copperSiteLong}" target="copperSiteLong"></flowable:in>
        <flowable:in sourceExpression="${gponSiteLong}" target="gponSiteLong"></flowable:in>
        <flowable:in sourceExpression="${gponSiteLat}" target="gponSiteLat"></flowable:in>
        <flowable:in sourceExpression="${copperCoordinateFormat}" target="copperCoordinateFormat"></flowable:in>
        <flowable:in sourceExpression="${gponCoordinateFormat}" target="gponCoordinateFormat"></flowable:in>
        <flowable:in sourceExpression="${copperBswAutoCreated}" target="copperBswAutoCreated"></flowable:in>
        <flowable:in sourceExpression="${copperVendor}" target="copperVendor"></flowable:in>
        <flowable:in sourceExpression="${copperExcDistance}" target="copperExcDistance"></flowable:in>
        <flowable:in sourceExpression="${copperCoverage}" target="copperCoverage"></flowable:in>
        <flowable:in sourceExpression="${gponCoverage}" target="gponCoverage"></flowable:in>
        <flowable:in sourceExpression="${gponExcDistance}" target="gponExcDistance"></flowable:in>
        <flowable:in sourceExpression="${gponVendor}" target="gponVendor"></flowable:in>
        <flowable:in sourceExpression="${obbTag}" target="obbTag"></flowable:in>
        <flowable:in sourceExpression="${mwOrGe}" target="mwOrGe"></flowable:in>
        <flowable:in sourceExpression="${wfbbCheck}" target="wfbbCheck"></flowable:in>
        <flowable:in sourceExpression="${isFtbAtbConnected}" target="isFtbAtbConnected"></flowable:in>
        <flowable:in sourceExpression="${copperBswAvailable}" target="copperBswAvailable"></flowable:in>
        <flowable:in sourceExpression="${wfbbExcDistance}" target="wfbbExcDistance"></flowable:in>
        <flowable:in sourceExpression="${wfbbCoverage}" target="wfbbCoverage"></flowable:in>
        <flowable:in sourceExpression="${wfbbVendor}" target="wfbbVendor"></flowable:in>
        <flowable:in sourceExpression="${requestStatus}" target="requestStatus"></flowable:in>
      </extensionElements>
    </callActivity>
    <sequenceFlow id="sid-E4D9A1B4-B09F-4A8A-B545-924F418DF555" sourceRef="sid-25F455CB-D5F1-44D0-B1DB-05A91400332D" targetRef="sid-26AA40E0-E5C5-451A-BC82-23BDF45D6ECF"></sequenceFlow>
    <callActivity id="sid-26AA40E0-E5C5-451A-BC82-23BDF45D6ECF" name="Existing MW or GE Network" flowable:async="true" calledElement="SRD_MW_GE_FEASIBILITY" flowable:calledElementType="key" flowable:inheritVariables="true" flowable:completeAsync="true" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${isThereAnMWSolution}" target="isThereMWorGESolution"></flowable:out>
        <flowable:out sourceExpression="${mwOrGe}" target="mwOrGe"></flowable:out>
      </extensionElements>
    </callActivity>
    <sequenceFlow id="sid-5499BDB2-5C70-4470-9461-D5116E701480" sourceRef="sid-4079837A-051D-4809-A2D2-E25A669346E1" targetRef="sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D"></sequenceFlow>
    <sequenceFlow id="sid-01DFA79C-B886-4D0F-B481-E85A5B287806" sourceRef="sid-F3BB751F-AE1A-4CA0-A6BD-64007FA03075" targetRef="sid-4079837A-051D-4809-A2D2-E25A669346E1"></sequenceFlow>
    <endEvent id="sid-9368D5F2-02E3-4B9A-B99B-00B103A3E2D2"></endEvent>
    <sequenceFlow id="sid-853BEB4B-0647-4B3E-9AB6-A021BD85DFBC" sourceRef="sid-355E4DD5-B957-493E-8B55-7153A690A57D" targetRef="sid-9368D5F2-02E3-4B9A-B99B-00B103A3E2D2"></sequenceFlow>
    <exclusiveGateway id="sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D" default="sid-5ED876D6-5457-4AF2-AD68-7CC95CFD8C6F"></exclusiveGateway>
    <sequenceFlow id="sid-E9BC5343-29D0-42B9-8908-DCEA65E557DC" sourceRef="sid-E65CA589-EA41-4514-A70C-25D79294E2BC" targetRef="sid-F3BB751F-AE1A-4CA0-A6BD-64007FA03075"></sequenceFlow>
    <sequenceFlow id="sid-DAD91E62-17C9-4184-B053-5B3EF5E1DFC4" sourceRef="sid-B1B757F3-5662-4AD2-84A0-CA4314D6582C" targetRef="sid-25F455CB-D5F1-44D0-B1DB-05A91400332D"></sequenceFlow>
    <scriptTask id="sid-A247A8A9-314C-45CC-B6F5-0149246E8918" name="finalize variables" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[//no Obb feasibility :
if(nbLines > 4){
execution.setVariable("obbTag", "");
execution.setVariable("isThereAnOBBSolution",false);
}

//Set the Request status
execution.setVariable("requestStatus","UNAVAILABLE");
if(isThereACOPPERSolution==true || isThereAGPONSolution==true || isThereMWorGESolution==true || isThereAnOBBSolution==true || isThereAWFBBSolution==true){
	execution.setVariable("requestStatus","AVAILABLE");
}


println "******************** prepare input variables for parallel service *******************";
for(key in execution.getVariables().keySet())
println "the key is " + key + " the value is "+ execution.getVariable(key);

println "*********************************************************************";]]></script>
    </scriptTask>
    <sequenceFlow id="sid-1D5A7182-47A8-4B66-AF65-E23E11CF11CE" sourceRef="sid-26AA40E0-E5C5-451A-BC82-23BDF45D6ECF" targetRef="sid-A247A8A9-314C-45CC-B6F5-0149246E8918"></sequenceFlow>
    <sequenceFlow id="sid-E4BBB025-B1D6-4917-BECD-1E756312A298" sourceRef="sid-A247A8A9-314C-45CC-B6F5-0149246E8918" targetRef="sid-355E4DD5-B957-493E-8B55-7153A690A57D"></sequenceFlow>
    <sequenceFlow id="sid-5ED876D6-5457-4AF2-AD68-7CC95CFD8C6F" sourceRef="sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D" targetRef="sid-B1B757F3-5662-4AD2-84A0-CA4314D6582C"></sequenceFlow>
    <sequenceFlow id="sid-EDB8F51C-2376-4DA0-A35E-41B7120CBF04" name="number of lines &gt; 4" sourceRef="sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D" targetRef="sid-25F455CB-D5F1-44D0-B1DB-05A91400332D">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${nbLines > 4}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_SRD_FIXED_LINE">
    <bpmndi:BPMNPlane bpmnElement="SRD_FIXED_LINE" id="BPMNPlane_SRD_FIXED_LINE">
      <bpmndi:BPMNShape bpmnElement="sid-F3BB751F-AE1A-4CA0-A6BD-64007FA03075" id="BPMNShape_sid-F3BB751F-AE1A-4CA0-A6BD-64007FA03075">
        <omgdc:Bounds height="80.0" width="100.0" x="135.0" y="278.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-4079837A-051D-4809-A2D2-E25A669346E1" id="BPMNShape_sid-4079837A-051D-4809-A2D2-E25A669346E1">
        <omgdc:Bounds height="80.0" width="100.0" x="315.0" y="278.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-B1B757F3-5662-4AD2-84A0-CA4314D6582C" id="BPMNShape_sid-B1B757F3-5662-4AD2-84A0-CA4314D6582C">
        <omgdc:Bounds height="80.0" width="100.0" x="630.0" y="270.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-E65CA589-EA41-4514-A70C-25D79294E2BC" id="BPMNShape_sid-E65CA589-EA41-4514-A70C-25D79294E2BC">
        <omgdc:Bounds height="30.0" width="30.0" x="30.0" y="303.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-25F455CB-D5F1-44D0-B1DB-05A91400332D" id="BPMNShape_sid-25F455CB-D5F1-44D0-B1DB-05A91400332D">
        <omgdc:Bounds height="80.0" width="110.0" x="780.0" y="278.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-355E4DD5-B957-493E-8B55-7153A690A57D" id="BPMNShape_sid-355E4DD5-B957-493E-8B55-7153A690A57D">
        <omgdc:Bounds height="80.0" width="100.0" x="1305.0" y="278.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-26AA40E0-E5C5-451A-BC82-23BDF45D6ECF" id="BPMNShape_sid-26AA40E0-E5C5-451A-BC82-23BDF45D6ECF">
        <omgdc:Bounds height="80.0" width="100.0" x="945.0" y="278.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-9368D5F2-02E3-4B9A-B99B-00B103A3E2D2" id="BPMNShape_sid-9368D5F2-02E3-4B9A-B99B-00B103A3E2D2">
        <omgdc:Bounds height="28.0" width="28.0" x="1470.0" y="304.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D" id="BPMNShape_sid-8B9A720F-3BB4-4FAE-92BE-945B3C52295D">
        <omgdc:Bounds height="40.0" width="40.0" x="495.0" y="298.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-A247A8A9-314C-45CC-B6F5-0149246E8918" id="BPMNShape_sid-A247A8A9-314C-45CC-B6F5-0149246E8918">
        <omgdc:Bounds height="91.0" width="118.0" x="1110.0" y="272.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-E9BC5343-29D0-42B9-8908-DCEA65E557DC" id="BPMNEdge_sid-E9BC5343-29D0-42B9-8908-DCEA65E557DC">
        <omgdi:waypoint x="59.94999906759471" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="135.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5ED876D6-5457-4AF2-AD68-7CC95CFD8C6F" id="BPMNEdge_sid-5ED876D6-5457-4AF2-AD68-7CC95CFD8C6F">
        <omgdi:waypoint x="534.4358792846498" y="318.5"></omgdi:waypoint>
        <omgdi:waypoint x="582.5" y="318.5"></omgdi:waypoint>
        <omgdi:waypoint x="582.5" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="630.0" y="310.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-E4BBB025-B1D6-4917-BECD-1E756312A298" id="BPMNEdge_sid-E4BBB025-B1D6-4917-BECD-1E756312A298">
        <omgdi:waypoint x="1227.95" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="1305.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-E4D9A1B4-B09F-4A8A-B545-924F418DF555" id="BPMNEdge_sid-E4D9A1B4-B09F-4A8A-B545-924F418DF555">
        <omgdi:waypoint x="889.9499999999999" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="945.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-01DFA79C-B886-4D0F-B481-E85A5B287806" id="BPMNEdge_sid-01DFA79C-B886-4D0F-B481-E85A5B287806">
        <omgdi:waypoint x="234.9499999999718" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="315.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5499BDB2-5C70-4470-9461-D5116E701480" id="BPMNEdge_sid-5499BDB2-5C70-4470-9461-D5116E701480">
        <omgdi:waypoint x="414.95000000000005" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="495.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-1D5A7182-47A8-4B66-AF65-E23E11CF11CE" id="BPMNEdge_sid-1D5A7182-47A8-4B66-AF65-E23E11CF11CE">
        <omgdi:waypoint x="1044.95" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="1110.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-DAD91E62-17C9-4184-B053-5B3EF5E1DFC4" id="BPMNEdge_sid-DAD91E62-17C9-4184-B053-5B3EF5E1DFC4">
        <omgdi:waypoint x="729.9499999999999" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="755.0" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="755.0" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="780.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-853BEB4B-0647-4B3E-9AB6-A021BD85DFBC" id="BPMNEdge_sid-853BEB4B-0647-4B3E-9AB6-A021BD85DFBC">
        <omgdi:waypoint x="1404.95" y="318.0"></omgdi:waypoint>
        <omgdi:waypoint x="1470.0" y="318.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-EDB8F51C-2376-4DA0-A35E-41B7120CBF04" id="BPMNEdge_sid-EDB8F51C-2376-4DA0-A35E-41B7120CBF04">
        <omgdi:waypoint x="515.5" y="337.44076510721254"></omgdi:waypoint>
        <omgdi:waypoint x="515.5" y="421.0"></omgdi:waypoint>
        <omgdi:waypoint x="835.0" y="421.0"></omgdi:waypoint>
        <omgdi:waypoint x="835.0" y="357.95000000000005"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>