<?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="FFMSCreateWorkOrder" name="FFMS Create Work Order" isExecutable="true">
    <documentation>Work Order / Jobs Creation
Commit : calls getFixedInternetDetails soap API to get external id and external id type and can extract the 3 new fields and send them to FFMS</documentation>
    <scriptTask id="sid-01021CB2-AB8F-40E2-B3B7-B5DDF2882415" name="Set Variables" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[import java.util.logging.Logger;

Logger logger = Logger.getLogger("com.mobinets.FFMS");

String body =  "<FIELDWORKORDER>\n"+ getFfmsWorkOrderDetailsResponse +"\n"+getCustomerDetailsResponse +"\n" + getFfmsJobDetailsResponse + "\n" + getFfmsNetworkDetailsResponse+"\n</FIELDWORKORDER>"; 
body = body.replace("</FINAL_ERROR>" , appointDate + "</FINAL_ERROR>");

String new_body = body.replace("D</SERORDNO>" , "</SERORDNO>").replace("D</ITEM_ID>" , "</ITEM_ID>").replace("D</ORDER_ID>" , "</ORDER_ID>").replace("D</ARBOR_ITEM_ID>" , "</ARBOR_ITEM_ID>").replace("A</SERORDNO>" , "</SERORDNO>").replace("A</ITEM_ID>" , "</ITEM_ID>").replace("A</ORDER_ID>" , "</ORDER_ID>").replace("A</ARBOR_ITEM_ID>" , "</ARBOR_ITEM_ID>");
woBody1 = new_body.replace("<DPOINT></DPOINT>" , "<DPOINT>DM99</DPOINT>")
woBody2 = woBody1.replace("<CABINET></CABINET>" , "<CABINET>0000</CABINET>")




// Ayed 08-DEC-2025
woBody2 = woBody2.replaceAll("<CONTACT1_PHONE>.*?</CONTACT1_PHONE>", "<CONTACT1_PHONE>${primaryContactNo}</CONTACT1_PHONE>")
                 .replaceAll("<CONTACT2_PHONE>.*?</CONTACT2_PHONE>", "<CONTACT2_PHONE>${secondaryContactNo}</CONTACT2_PHONE>")
                 .replaceAll("<SURVEY_DT>.*?</SURVEY_DT>", "<SURVEY_DT>${installationDate}</SURVEY_DT>")

execution.setVariable("body", woBody2);String apptDetails = "Apointment details to FFMS" + appointDate;
String message = "FFMS Create WO Body ----> \n" + woBody2 ;
logger.info (apptDetails);
logger.info (message);]]></script>
    </scriptTask>
    <serviceTask id="sid-12492F8D-CCBB-4CD9-937B-FE50DF5851CE" name="Get Customer Details" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getCustomerDetails]]></flowable:string>
        </flowable:field>
        <flowable:field name="woNo">
          <flowable:expression><![CDATA[${fWOID}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="exc">
          <flowable:expression><![CDATA[${fExc}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="fullName">
          <flowable:expression><![CDATA[${fullName}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="accountNo">
          <flowable:expression><![CDATA[${accountNo}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="accountCategory">
          <flowable:expression><![CDATA[${customerCategory}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="contact1Phone">
          <flowable:expression><![CDATA[${firstContactNumber}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="contact2Phone">
          <flowable:expression><![CDATA[${secondContactNumber}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="address">
          <flowable:expression><![CDATA[${address}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="cabinet">
          <flowable:expression><![CDATA[${fCabinet}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="dpoint">
          <flowable:expression><![CDATA[${fDpoint}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="customerContact">
          <flowable:expression><![CDATA[${customerContactPhoneNo}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="sid-4AC03504-4BCA-4A90-9134-E56DB53B9A17" name="Get FFMS Work Order Details" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getFfmsWorkOrderDetails]]></flowable:string>
        </flowable:field>
        <flowable:field name="woNo">
          <flowable:expression><![CDATA[${fWOID}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="userId">
          <flowable:expression><![CDATA[${fUserID}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="usageTypeCode">
          <flowable:expression><![CDATA[${fUsage_Type}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="woType">
          <flowable:expression><![CDATA[${fOrder_Type}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="networkType">
          <flowable:expression><![CDATA[${networkType}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="serOrNo">
          <flowable:expression><![CDATA[${sWOID}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="salesCode">
          <flowable:expression><![CDATA[${salesCode}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="languageCode">
          <flowable:expression><![CDATA[${languageCode}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="arborOrderId">
          <flowable:expression><![CDATA[${arbor_Order_Id}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="channel">
          <flowable:expression><![CDATA[${channel}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="surveyDt">
          <flowable:expression><![CDATA[${surveyDt}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="sid-09F315CB-FC8A-4550-81EB-10D178B2A6BD" name="Get FFMS Job Details" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getFfmsJobDetails]]></flowable:string>
        </flowable:field>
        <flowable:field name="woNo">
          <flowable:expression><![CDATA[${fWOID}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="sid-6C1DCB5A-34D7-4172-9ACF-104BA8CD5C75" name="Get FFMS Network Details" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getFfmsNetworkDetails]]></flowable:string>
        </flowable:field>
        <flowable:field name="woNo">
          <flowable:expression><![CDATA[${fWOID}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="exc">
          <flowable:expression><![CDATA[${fExc}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="cabinet">
          <flowable:expression><![CDATA[${fCabinet}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="dpoint">
          <flowable:expression><![CDATA[${fDpoint}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="lineStatus">
          <flowable:expression><![CDATA[${lineStatus}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <serviceTask id="sid-717BA73C-E349-4C33-9AF0-359051CD6CFD" name="Get Customer Details from Arbor" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[OMAPIServicesService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getCustomerInfoByNumber]]></flowable:string>
        </flowable:field>
        <flowable:field name="request.externalId">
          <flowable:expression><![CDATA[${fSubno}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="request.externalIdType">
          <flowable:string><![CDATA[200]]></flowable:string>
        </flowable:field>
        <flowable:field name="oteaiheader.requestorId">
          <flowable:string><![CDATA[NEP]]></flowable:string>
        </flowable:field>
        <flowable:field name="request.referenceNo">
          <flowable:expression><![CDATA[${ArboRefNo}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <scriptTask id="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F" name="empty variables" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[execution.setVariable("system", "ARBOR");
execution.setVariable("error_code","1");
execution.setVariable("fullName", "");
execution.setVariable("address", "");
execution.setVariable("contractNumber", "");
execution.setVariable("firstContactNumber", "");
execution.setVariable("secondContactNumber", "");
execution.setVariable("customerId", "");
execution.setVariable("customerGroup", "");
execution.setVariable("customerCategory", "");
execution.setVariable("accountNo", "");
execution.setVariable("postalCode", "");
execution.setVariable("postalArea", "");
execution.setVariable("languageCode", "1");
execution.setVariable("accountCategory", "");
execution.setVariable("custPhone1", "");
execution.setVariable("billFname","");
execution.setVariable("billLname","");
execution.setVariable("custAddress1","");
execution.setVariable("custAddress3","");
execution.setVariable("remark","");
execution.setVariable("titleCj","");
execution.setVariable("billMinit","");
execution.setVariable("billTitle","");
execution.setVariable("arTiltleCj","");
execution.setVariable("arBillFnameCj","");
execution.setVariable("arBillMinitCj","");
execution.setVariable("arBillTitleCj","");
execution.setVariable("arBillLnameCj","");
execution.setVariable("salesCode","");
execution.setVariable("customerCategory","");
execution.setVariable("customerContactPhoneNo","");
execution.setVariable("appointDate","");]]></script>
    </scriptTask>
    <scriptTask id="sid-907EA419-4C61-41BE-9518-FCA58514F3C4" name="fill Variables" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[// ITBR24827
import java.util.logging.Logger;

Logger logger = Logger.getLogger("com.mobinets.FFMS");

String languageCode = ""+ GetCustomerInfoByNumberResponseMessage.response.languageCode;
String contact1Phone = ""+ GetCustomerInfoByNumberResponseMessage.response.contact1Phone;
String contact2Phone = ""+ GetCustomerInfoByNumberResponseMessage.response.contact2Phone;
String custPhone1 = ""+ GetCustomerInfoByNumberResponseMessage.response.custPhone1;
String custPhone2 = ""+ GetCustomerInfoByNumberResponseMessage.response.custPhone2;
String siCustPhone1 = ""+ GetCustomerInfoByNumberResponseMessage.response.siCustPhone1;
String siCustPhone2 = ""+ GetCustomerInfoByNumberResponseMessage.response.siCustPhone2;
String custAddress2 = ""+GetCustomerInfoByNumberResponseMessage.response.custAddress2;
String custState = ""+GetCustomerInfoByNumberResponseMessage.response.custState;
String custCity = ""+GetCustomerInfoByNumberResponseMessage.response.custCity;
String custAddress3 = ""+GetCustomerInfoByNumberResponseMessage.response.custAddress3;
String custAddress1 = ""+GetCustomerInfoByNumberResponseMessage.response.custAddress1;
String custZip = ""+GetCustomerInfoByNumberResponseMessage.response.custZip;
String contractNumber = ""+GetCustomerInfoByNumberResponseMessage.response.acctExternalId;
String accountCategory = ""+GetCustomerInfoByNumberResponseMessage.response.accountCategory;
String accountNo = ""+GetCustomerInfoByNumberResponseMessage.response.siAccountNo;
String postalCode = custZip;
String postalArea = ""+GetCustomerInfoByNumberResponseMessage.response.billZip;
String arTiltleCj = ""+GetCustomerInfoByNumberResponseMessage.response.arTiltleCj;
String arBillFnameCj = ""+GetCustomerInfoByNumberResponseMessage.response.arBillFnameCj;
String arBillMinitCj = ""+GetCustomerInfoByNumberResponseMessage.response.arBillMinitCj;
String arBillTitleCj = ""+GetCustomerInfoByNumberResponseMessage.response.arBillTitleCj;
String arBillLnameCj = ""+GetCustomerInfoByNumberResponseMessage.response.arBillLnameCj;
String titleCj = ""+GetCustomerInfoByNumberResponseMessage.response.titleCj;
String billFname = ""+GetCustomerInfoByNumberResponseMessage.response.billFname;
String billMinit = ""+GetCustomerInfoByNumberResponseMessage.response.billMinit;
String billTitle = ""+GetCustomerInfoByNumberResponseMessage.response.billTitle;
String billLname = ""+GetCustomerInfoByNumberResponseMessage.response.billLname;
String remark = ""+GetCustomerInfoByNumberResponseMessage.response.remark;
String salesCode = ""+GetCustomerInfoByNumberResponseMessage.response.salesCode;
String address = custAddress2 +" "+ custState +" "+ custCity +" "+ custAddress3 +" "+ custAddress1 +" "+ custZip;

String siBillCompany = ""+GetCustomerInfoByNumberResponseMessage.response.siBillCompany;
String siBillCompanyFind = ""+GetCustomerInfoByNumberResponseMessage.response.siBillCompanyFind;

String appointDate= "";
execution.setVariable("contractNumber",contractNumber);
execution.setVariable("customerGroup"," ");
execution.setVariable("accountCategory",accountCategory);
execution.setVariable("accountNo",accountNo);
execution.setVariable("postalCode",postalCode);
execution.setVariable("postalArea",postalArea);
execution.setVariable("billFname",billFname);
execution.setVariable("billLname",billLname);
execution.setVariable("custAddress1",custAddress1);
execution.setVariable("custAddress3",custAddress3);
execution.setVariable("remark",remark);
execution.setVariable("titleCj",titleCj);
execution.setVariable("billMinit",billMinit);
execution.setVariable("billTitle",billTitle);
execution.setVariable("arTiltleCj",arTiltleCj);
execution.setVariable("arBillFnameCj",arBillFnameCj);
execution.setVariable("arBillMinitCj",arBillMinitCj);
execution.setVariable("arBillTitleCj",arBillTitleCj);
execution.setVariable("arBillLnameCj",arBillLnameCj);
execution.setVariable("salesCode",salesCode);
execution.setVariable("customerCategory","");
execution.setVariable("address", address);


if(languageCode == null || languageCode.equals("") || languageCode.equals("null"))
	execution.setVariable("languageCode", "1");
else
	execution.setVariable("languageCode", languageCode);
	

if((arTiltleCj==null || arTiltleCj.trim().isEmpty() || arTiltleCj.trim().equalsIgnoreCase("null"))
&& (arBillFnameCj==null || arBillFnameCj.trim().isEmpty() || arBillFnameCj.trim().equalsIgnoreCase("null"))
&& (arBillMinitCj==null || arBillMinitCj.trim().isEmpty() || arBillMinitCj.trim().equalsIgnoreCase("null"))
&& (arBillTitleCj==null || arBillTitleCj.trim().isEmpty() || arBillTitleCj.trim().equalsIgnoreCase("null"))
&& (arBillLnameCj==null || arBillLnameCj.trim().isEmpty() || arBillLnameCj.trim().equalsIgnoreCase("null")) 
&& (titleCj==null || titleCj.trim().isEmpty() || titleCj.trim().equalsIgnoreCase("null")) 
&& (billFname==null || billFname.trim().isEmpty() || billFname.trim().equalsIgnoreCase("null")) 
&& (billMinit=null || billMinit.trim().isEmpty() || billMinit.trim().equalsIgnoreCase("null")) 
&& (billTitle==null || billTitle.trim().isEmpty() || billTitle.trim().equalsIgnoreCase("null"))
&& (billLname=null || billLname.trim().isEmpty() || billLname.trim().equalsIgnoreCase("null")) ){
if(siBillCompany!=null)
execution.setVariable("fullName", siBillCompany);
else
execution.setVariable("fullName", siBillCompanyFind);
}

if(execution.getVariable("languageCode").equals(11))
execution.setVariable("fullName", arTiltleCj +" "+ arBillFnameCj + " "+ arBillMinitCj + " " + arBillTitleCj +" "+ arBillLnameCj);
else
execution.setVariable("fullName", titleCj+" "+billFname +" "+ billMinit +" "+ billTitle + " "+billLname);


String firstContactNumber = custPhone1;
String secondContactNumber = custPhone2;

if(firstContactNumber== null || firstContactNumber.trim().isEmpty() || firstContactNumber.trim().equalsIgnoreCase("null"))
	firstContactNumber = custPhone1;
if(firstContactNumber== null || firstContactNumber.trim().isEmpty() || firstContactNumber.trim().equalsIgnoreCase("null"))
	firstContactNumber = siCustPhone1;
if(firstContactNumber== null || firstContactNumber.trim().isEmpty() || firstContactNumber.trim().equalsIgnoreCase("null"))
	firstContactNumber = contact1Phone;
if(firstContactNumber== null || firstContactNumber.trim().isEmpty() || firstContactNumber.trim().equalsIgnoreCase("null"))
	firstContactNumber = custPhone2;
if(firstContactNumber== null || firstContactNumber.trim().isEmpty() || firstContactNumber.trim().equalsIgnoreCase("null"))
	firstContactNumber = contact2Phone;

if(custPhone2== null || custPhone2.equals("") || custPhone2.equals("null"))
	secondContactNumber = siCustPhone2;

execution.setVariable("firstContactNumber",firstContactNumber);
execution.setVariable("secondContactNumber",secondContactNumber);

if(firstContactNumber != null)
	execution.setVariable("customerContactPhoneNo",firstContactNumber);
else
	execution.setVariable("customerContactPhoneNo",secondContactNumber);



String tempappointDate = "";
String primaryContanctNO =""; 
String secondaryContanctNO ="";
String installationDate ="";

try {
    if (GetFixedInternetDetailsResponseMessage != null && GetFixedInternetDetailsResponseMessage.response != null) {

        if (GetFixedInternetDetailsResponseMessage.response.externalIdDetails != null && GetFixedInternetDetailsResponseMessage.response.externalIdDetails.item != null) {

            for (item in GetFixedInternetDetailsResponseMessage.response.externalIdDetails.item) {

                println "externalIdTypeBasic = " + item.externalIdType;

                if ("352".equalsIgnoreCase(item.externalIdType)) {
                    tempappointDate = item.externalId;
                }
				if ("381".equalsIgnoreCase(item.externalIdType)) {
                    primaryContanctNO = item.externalId;
                }
				  if ("382".equalsIgnoreCase(item.externalIdType)) {
                    secondaryContanctNO = item.externalId;
                }
				 if ("383".equalsIgnoreCase(item.externalIdType)) {
                    installationDate = item.externalId;
                }
				
				
            }
        }
    }
} catch (Exception e) {
    println "An error occurred: " + e.getMessage();
    // tempappointDate remains blank in case of an error
}

println "tempappointDate = " + tempappointDate;




execution.setVariable("appointDate",appointDate + tempappointDate);
execution.setVariable("installationDate",installationDate);
execution.setVariable("secondaryContanctNO",secondaryContanctNO );
execution.setVariable("primaryContanctNO",primaryContanctNO );
println appointDate;
println "appointDate" + appointDate;
logger.info ("languageCode " + execution.getVariable("languageCode"));
logger.info ("contact1Phone " + contact1Phone);
logger.info ("contact2Phone " + contact2Phone);
logger.info ("custAddress2 " + custAddress2);
logger.info ("custState " + custState);
logger.info ("custCity " + custCity);
logger.info ("custAddress3 " + custAddress3);
logger.info ("custAddress1 " + custAddress1);
logger.info ("custZip " + custZip);
logger.info ("contractNumber " + contractNumber);
logger.info ("accountCategory " + accountCategory);
logger.info ("accountNo " + accountNo);
logger.info ("postalCode " + postalCode);
logger.info ("postalArea " + postalArea);
logger.info ("arTiltleCj " + arTiltleCj);
logger.info ("arBillFnameCj " + arBillFnameCj);
logger.info ("arBillMinitCj " + arBillMinitCj);
logger.info ("arBillTitleCj " + arBillTitleCj);
logger.info ("arBillLnameCj " + arBillLnameCj);
logger.info ("titleCj " + titleCj);
logger.info ("billFname " + billFname);
logger.info ("billMinit " + billMinit);
logger.info ("billTitle " + billTitle);
logger.info ("billLname " + billLname);
logger.info ("remark " + remark);
logger.info ("salesCode " + salesCode);
logger.info ("address " + address);
logger.info ("custPhone1 " + custPhone1);
logger.info ("custPhone2 " + custPhone2);
logger.info ("siCustPhone2 " + siCustPhone2);
logger.info ("siCustPhone1 " + siCustPhone1);
logger.info ("appointDate" + appointDate);
logger.info ("primaryContanctNO" + primaryContanctNO);
logger.info ("secondaryContanctNO" + secondaryContanctNO);
logger.info ("installationDate" + installationDate);]]></script>
    </scriptTask>
    <scriptTask id="sid-4CE1A51F-ECC6-486B-832E-AC4FD5BE9E58" name="process Response" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[import java.util.logging.Logger
Logger logger = Logger.getLogger("com.mobinets.FFMS")

logger.info ("FFMS CREATE WO Response: " + CreatefieldworkorderReponse)

String response = ""+CreatefieldworkorderReponse;
boolean isOk = response.contains("10000 - Order Save Successfully");
execution.setVariable("isOk", isOk);]]></script>
    </scriptTask>
    <startEvent id="sid-8F5CF079-AE39-4DA8-BA26-28B39DF55656" flowable:formFieldValidation="true"></startEvent>
    <boundaryEvent id="sid-422DCA3C-F1EE-4AAD-A07D-1FD30C3EB599" attachedToRef="sid-717BA73C-E349-4C33-9AF0-359051CD6CFD">
      <errorEventDefinition></errorEventDefinition>
    </boundaryEvent>
    <sequenceFlow id="sid-06BB4C8B-2ECD-4BDC-96E4-CE5DB6977724" sourceRef="sid-09F315CB-FC8A-4550-81EB-10D178B2A6BD" targetRef="sid-6C1DCB5A-34D7-4172-9ACF-104BA8CD5C75"></sequenceFlow>
    <sequenceFlow id="sid-9EF3F6B6-3FCA-463A-9858-ED3C75D496E3" sourceRef="sid-6C1DCB5A-34D7-4172-9ACF-104BA8CD5C75" targetRef="sid-01021CB2-AB8F-40E2-B3B7-B5DDF2882415"></sequenceFlow>
    <callActivity id="sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC" name="arbor_refno_generator" calledElement="arbor_refno_generator" flowable:calledElementType="key" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:out sourceExpression="${ArboRefNo}" target="ArboRefNo"></flowable:out>
      </extensionElements>
    </callActivity>
    <serviceTask id="sid-06A19115-C64D-44C5-956C-8390AEA462BE" name="Sync Create Work Order with FFMS" flowable:class="com.mobinets.nep.client.workflow.rest.RestDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[ffmsRestTest]]></flowable:string>
        </flowable:field>
        <flowable:field name="POST">
          <flowable:string><![CDATA[/FPOmantel/api/OMNInstallation/Createfieldworkorder]]></flowable:string>
        </flowable:field>
        <flowable:field name="body">
          <flowable:expression><![CDATA[${body}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="OUT">
          <flowable:string><![CDATA[CreatefieldworkorderReponse]]></flowable:string>
        </flowable:field>
        <flowable:field name="header">
          <flowable:string><![CDATA[Content-Type:application/xml]]></flowable:string>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sid-17E7AD48-4550-4CD8-9EA4-35F5B1F0F20C" sourceRef="sid-06A19115-C64D-44C5-956C-8390AEA462BE" targetRef="sid-4CE1A51F-ECC6-486B-832E-AC4FD5BE9E58"></sequenceFlow>
    <sequenceFlow id="sid-D0C7C2D1-2335-49DA-AB53-267FBF0314BC" sourceRef="sid-4AC03504-4BCA-4A90-9134-E56DB53B9A17" targetRef="sid-12492F8D-CCBB-4CD9-937B-FE50DF5851CE"></sequenceFlow>
    <serviceTask id="sid-2A829864-34C9-4787-B179-0D074E046EAA" name="Set Customer Category" flowable:type="dmn">
      <extensionElements>
        <flowable:field name="decisionTableReferenceKey">
          <flowable:string><![CDATA[Customer_Category_Mapping]]></flowable:string>
        </flowable:field>
        <flowable:field name="decisionTaskThrowErrorOnNoHits">
          <flowable:string><![CDATA[false]]></flowable:string>
        </flowable:field>
        <flowable:field name="fallbackToDefaultTenant">
          <flowable:string><![CDATA[false]]></flowable:string>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="sid-94BFFA47-3E7D-48DF-9C69-2B8D2E91604A" sourceRef="sid-2A829864-34C9-4787-B179-0D074E046EAA" targetRef="sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F"></sequenceFlow>
    <scriptTask id="sid-51042F90-A479-41CF-9591-F7134B5FDA98" name="Set Error" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[execution.setVariable("error","Create Work Order - Sync with FFMS failed");]]></script>
    </scriptTask>
    <exclusiveGateway id="sid-04EE49F6-35BB-42CD-AD15-887466C05435"></exclusiveGateway>
    <callActivity id="sid-BB473729-CD50-4502-9AC6-12FFDF12C197" name="interrrupt WO" calledElement="Interrupt_WO" flowable:calledElementType="key" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:in sourceExpression="${fWOID}" target="fWOID"></flowable:in>
        <flowable:in sourceExpression="${error}" target="errorRemarks"></flowable:in>
        <flowable:in sourceExpression="Not Yet Started" target="status"></flowable:in>
      </extensionElements>
    </callActivity>
    <scriptTask id="sid-C9F38727-FDA9-4035-921D-421545F2F7DC" name="set Error" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[String response = "" + CreatefieldworkorderReponse;
if(response != null && !response.trim().equalsIgnoreCase("null"))
	execution.setVariable("error","FFMS Create Work Order - missing parameters : " + CreatefieldworkorderReponse.Data);
else
	execution.setVariable("error","FFMS Create Work Order - No response check for missing parameters values");]]></script>
    </scriptTask>
    <sequenceFlow id="sid-5EB7398A-5905-4898-9985-D3CD255D9928" sourceRef="sid-C9F38727-FDA9-4035-921D-421545F2F7DC" targetRef="sid-BB473729-CD50-4502-9AC6-12FFDF12C197"></sequenceFlow>
    <sequenceFlow id="sid-F3AEB328-57CA-4077-9497-C8D3AC09FFC2" sourceRef="sid-51042F90-A479-41CF-9591-F7134B5FDA98" targetRef="sid-BB473729-CD50-4502-9AC6-12FFDF12C197"></sequenceFlow>
    <sequenceFlow id="sid-42A6BC99-789D-457C-93BE-C307938279A0" sourceRef="sid-CBF923C7-3257-4A63-AD5A-73EF0D01B517" targetRef="sid-51042F90-A479-41CF-9591-F7134B5FDA98"></sequenceFlow>
    <boundaryEvent id="sid-CBF923C7-3257-4A63-AD5A-73EF0D01B517" attachedToRef="sid-06A19115-C64D-44C5-956C-8390AEA462BE">
      <errorEventDefinition></errorEventDefinition>
    </boundaryEvent>
    <exclusiveGateway id="sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60"></exclusiveGateway>
    <endEvent id="sid-73BE6D37-F53E-49E9-AA11-38C24C130CAF"></endEvent>
    <sequenceFlow id="sid-C331F9CF-D234-4AC8-A037-9D1406F82E99" name="continue" sourceRef="sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60" targetRef="sid-73BE6D37-F53E-49E9-AA11-38C24C130CAF">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionToDo=='continue'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-ECA4AF6B-5D45-46E9-B3D9-15B48D12ED90" name="retry" sourceRef="sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60" targetRef="sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${actionToDo=='retry'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-273166F3-2F1C-460F-8223-831302A2DC4C" sourceRef="sid-BB473729-CD50-4502-9AC6-12FFDF12C197" targetRef="sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60"></sequenceFlow>
    <sequenceFlow id="sid-288D2AD5-DABE-4D68-BB42-F3FC0CCAFB6B" sourceRef="sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC" targetRef="sid-717BA73C-E349-4C33-9AF0-359051CD6CFD"></sequenceFlow>
    <sequenceFlow id="sid-7436DBF1-39F4-4DFB-9A6E-74C4BA541C58" sourceRef="sid-12492F8D-CCBB-4CD9-937B-FE50DF5851CE" targetRef="sid-09F315CB-FC8A-4550-81EB-10D178B2A6BD"></sequenceFlow>
    <sequenceFlow id="sid-085CF82A-B4CB-4169-974F-F54762314F42" name="not OK" sourceRef="sid-04EE49F6-35BB-42CD-AD15-887466C05435" targetRef="sid-C9F38727-FDA9-4035-921D-421545F2F7DC">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isOk == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-AA079727-5B9F-4AAD-BC89-2D0F41FCC201" sourceRef="sid-4CE1A51F-ECC6-486B-832E-AC4FD5BE9E58" targetRef="sid-04EE49F6-35BB-42CD-AD15-887466C05435"></sequenceFlow>
    <sequenceFlow id="sid-98A33F31-CF03-4737-A0F7-2ACC67F5A438" sourceRef="sid-907EA419-4C61-41BE-9518-FCA58514F3C4" targetRef="sid-2A829864-34C9-4787-B179-0D074E046EAA"></sequenceFlow>
    <sequenceFlow id="sid-1671959E-B3B9-4AED-B271-CE0E148321EB" sourceRef="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F" targetRef="sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F"></sequenceFlow>
    <callActivity id="sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F" name="getSubscriberLineStatus" calledElement="getSubscriberLineStatus" flowable:calledElementType="key" flowable:fallbackToDefaultTenant="false">
      <extensionElements>
        <flowable:in sourceExpression="${fSubno}" target="fSubno"></flowable:in>
        <flowable:in sourceExpression="${ArboRefNo}" target="ArboRefNo"></flowable:in>
        <flowable:out sourceExpression="${lineStatus}" target="lineStatus"></flowable:out>
      </extensionElements>
    </callActivity>
    <sequenceFlow id="sid-329050F2-25B3-422F-92CC-57C1B1949CF0" sourceRef="sid-8F5CF079-AE39-4DA8-BA26-28B39DF55656" targetRef="sid-DDF44E63-1267-413C-A188-A30FEC8B71C0"></sequenceFlow>
    <serviceTask id="sid-DDF44E63-1267-413C-A188-A30FEC8B71C0" name="Check Integration with FFMS" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[integrateWithFFMS]]></flowable:string>
        </flowable:field>
        <flowable:field name="userID">
          <flowable:expression><![CDATA[${fUserID}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <exclusiveGateway id="sid-D466A645-7398-4303-9389-23B9675661BF"></exclusiveGateway>
    <endEvent id="sid-48E1ECEC-01BC-481B-95E3-81B60B6A7AC5"></endEvent>
    <sequenceFlow id="sid-1C7307FD-2479-4D7E-8B66-0C259A920A77" name="OK" sourceRef="sid-04EE49F6-35BB-42CD-AD15-887466C05435" targetRef="sid-EE08D25D-F282-43FF-BC77-886522B96F09">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isOk == true}]]></conditionExpression>
    </sequenceFlow>
    <serviceTask id="sid-EE08D25D-F282-43FF-BC77-886522B96F09" name="Update Work Order" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[FnService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[updateOrderCreatedInFFMS]]></flowable:string>
        </flowable:field>
        <flowable:field name="woNo">
          <flowable:expression><![CDATA[${fWOID}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <endEvent id="sid-C050652E-2D69-44F0-A47D-B87CBBC5108F"></endEvent>
    <sequenceFlow id="sid-DB1D3CD0-7F35-4EEE-AF82-21EE72D72E3A" sourceRef="sid-EE08D25D-F282-43FF-BC77-886522B96F09" targetRef="sid-C050652E-2D69-44F0-A47D-B87CBBC5108F"></sequenceFlow>
    <serviceTask id="sid-08769529-3392-42BB-9900-E0F091CED448" name="Get Fixed Internet Details from Arbor" flowable:class="com.mobinets.nep.client.workflow.soap.SoapDelegate">
      <extensionElements>
        <flowable:field name="service">
          <flowable:string><![CDATA[OMAPIServicesService]]></flowable:string>
        </flowable:field>
        <flowable:field name="operation">
          <flowable:string><![CDATA[getFixedInternetDetails]]></flowable:string>
        </flowable:field>
        <flowable:field name="request.externalId">
          <flowable:expression><![CDATA[${fSubno}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="oteaiheader.requestorId">
          <flowable:string><![CDATA[NEP]]></flowable:string>
        </flowable:field>
        <flowable:field name="request.referenceNo">
          <flowable:expression><![CDATA[${ArboRefNo}]]></flowable:expression>
        </flowable:field>
      </extensionElements>
    </serviceTask>
    <boundaryEvent id="sid-A1E79062-44E4-4F7B-BB82-726B218EE024" attachedToRef="sid-08769529-3392-42BB-9900-E0F091CED448">
      <errorEventDefinition></errorEventDefinition>
    </boundaryEvent>
    <sequenceFlow id="sid-CAB07DA5-33CB-4809-A336-5083DA0363B5" sourceRef="sid-422DCA3C-F1EE-4AAD-A07D-1FD30C3EB599" targetRef="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F"></sequenceFlow>
    <sequenceFlow id="sid-9A482D42-9A31-4C98-AA45-C00A51FD7E25" sourceRef="sid-717BA73C-E349-4C33-9AF0-359051CD6CFD" targetRef="sid-08769529-3392-42BB-9900-E0F091CED448"></sequenceFlow>
    <exclusiveGateway id="sid-C370C768-1B07-40DB-887F-00D33E480184"></exclusiveGateway>
    <sequenceFlow id="sid-8616F717-3787-4AD5-9A42-5917EDC8305E" sourceRef="sid-A1E79062-44E4-4F7B-BB82-726B218EE024" targetRef="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${GetCustomerInfoByNumberResponseMessage==null || GetCustomerInfoByNumberResponseMessage.response==null  || GetCustomerInfoByNumberResponseMessage.response.returnCode!='0000'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-E8B12EBC-81DA-4D76-8A5F-FE1454B90F20" sourceRef="sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F" targetRef="sid-4AC03504-4BCA-4A90-9134-E56DB53B9A17"></sequenceFlow>
    <scriptTask id="sid-42915A49-9689-414C-B65A-E87E17B2FC08" name="fill Variables" scriptFormat="groovy" flowable:autoStoreVariables="false">
      <script><![CDATA[// ITBR24827
import java.util.logging.Logger;

Logger logger = Logger.getLogger("com.mobinets.FFMS");

logger.info ("ITBR24827->");
logger.info ("past checkFFMSIntegration ");]]></script>
    </scriptTask>
    <sequenceFlow id="sid-10606530-59CB-44B0-B030-41DCA83ACDB7" sourceRef="sid-DDF44E63-1267-413C-A188-A30FEC8B71C0" targetRef="sid-42915A49-9689-414C-B65A-E87E17B2FC08"></sequenceFlow>
    <sequenceFlow id="sid-C9BC719B-40AE-4450-A19D-2216E7455F1C" sourceRef="sid-42915A49-9689-414C-B65A-E87E17B2FC08" targetRef="sid-D466A645-7398-4303-9389-23B9675661BF"></sequenceFlow>
    <sequenceFlow id="sid-D55837A4-2405-4361-8466-0D09264CF108" sourceRef="sid-08769529-3392-42BB-9900-E0F091CED448" targetRef="sid-C370C768-1B07-40DB-887F-00D33E480184"></sequenceFlow>
    <sequenceFlow id="sid-E5668048-5051-4E80-9426-EC6F2D6B9161" sourceRef="sid-C370C768-1B07-40DB-887F-00D33E480184" targetRef="sid-907EA419-4C61-41BE-9518-FCA58514F3C4">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${GetCustomerInfoByNumberResponseMessage!=null && GetCustomerInfoByNumberResponseMessage.response!=null && GetCustomerInfoByNumberResponseMessage.response.returnCode=='0000'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-5F275335-DAD1-4954-A3EC-202E0F2EFAA2" name="False" sourceRef="sid-D466A645-7398-4303-9389-23B9675661BF" targetRef="sid-48E1ECEC-01BC-481B-95E3-81B60B6A7AC5">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${integrateWithFFMSResponse == false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-AAF6BEE2-002A-451E-A4C3-313FE0C47366" name="True" sourceRef="sid-D466A645-7398-4303-9389-23B9675661BF" targetRef="sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${integrateWithFFMSResponse == true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-C737E343-C0C3-495F-A951-41DABDF7E7B7" sourceRef="sid-C370C768-1B07-40DB-887F-00D33E480184" targetRef="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${GetCustomerInfoByNumberResponseMessage==null || GetCustomerInfoByNumberResponseMessage.response==null  || GetCustomerInfoByNumberResponseMessage.response.returnCode!='0000'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-8AFA39B5-38B3-4831-A8C4-8BE5D4F96111" sourceRef="sid-01021CB2-AB8F-40E2-B3B7-B5DDF2882415" targetRef="sid-06A19115-C64D-44C5-956C-8390AEA462BE"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_FFMSCreateWorkOrder">
    <bpmndi:BPMNPlane bpmnElement="FFMSCreateWorkOrder" id="BPMNPlane_FFMSCreateWorkOrder">
      <bpmndi:BPMNShape bpmnElement="sid-01021CB2-AB8F-40E2-B3B7-B5DDF2882415" id="BPMNShape_sid-01021CB2-AB8F-40E2-B3B7-B5DDF2882415">
        <omgdc:Bounds height="80.0" width="100.0" x="1370.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-12492F8D-CCBB-4CD9-937B-FE50DF5851CE" id="BPMNShape_sid-12492F8D-CCBB-4CD9-937B-FE50DF5851CE">
        <omgdc:Bounds height="80.0" width="100.0" x="1768.527076195752" y="187.05574844378145"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-4AC03504-4BCA-4A90-9134-E56DB53B9A17" id="BPMNShape_sid-4AC03504-4BCA-4A90-9134-E56DB53B9A17">
        <omgdc:Bounds height="79.99999999999994" width="100.0" x="1645.0" y="180.00000000000006"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-09F315CB-FC8A-4550-81EB-10D178B2A6BD" id="BPMNShape_sid-09F315CB-FC8A-4550-81EB-10D178B2A6BD">
        <omgdc:Bounds height="80.0" width="100.0" x="1780.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-6C1DCB5A-34D7-4172-9ACF-104BA8CD5C75" id="BPMNShape_sid-6C1DCB5A-34D7-4172-9ACF-104BA8CD5C75">
        <omgdc:Bounds height="80.0" width="100.0" x="1645.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-717BA73C-E349-4C33-9AF0-359051CD6CFD" id="BPMNShape_sid-717BA73C-E349-4C33-9AF0-359051CD6CFD">
        <omgdc:Bounds height="86.99999999999994" width="107.0" x="705.0" y="191.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F" id="BPMNShape_sid-7C49D2CD-1DCF-4CDA-B3A8-67DFA757D69F">
        <omgdc:Bounds height="80.0" width="100.0" x="1005.0" y="0.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-907EA419-4C61-41BE-9518-FCA58514F3C4" id="BPMNShape_sid-907EA419-4C61-41BE-9518-FCA58514F3C4">
        <omgdc:Bounds height="80.00000000000006" width="100.0" x="1125.0" y="195.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-4CE1A51F-ECC6-486B-832E-AC4FD5BE9E58" id="BPMNShape_sid-4CE1A51F-ECC6-486B-832E-AC4FD5BE9E58">
        <omgdc:Bounds height="80.0" width="100.0" x="935.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-8F5CF079-AE39-4DA8-BA26-28B39DF55656" id="BPMNShape_sid-8F5CF079-AE39-4DA8-BA26-28B39DF55656">
        <omgdc:Bounds height="30.0" width="30.0" x="105.0" y="208.49999999999997"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-422DCA3C-F1EE-4AAD-A07D-1FD30C3EB599" id="BPMNShape_sid-422DCA3C-F1EE-4AAD-A07D-1FD30C3EB599">
        <omgdc:Bounds height="30.0" width="30.0" x="743.0" y="175.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC" id="BPMNShape_sid-CDAAF78E-25C4-4A75-A3E5-AB8C42247FDC">
        <omgdc:Bounds height="80.00000000000003" width="100.0" x="544.1621772910006" y="170.0506804034377"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-06A19115-C64D-44C5-956C-8390AEA462BE" id="BPMNShape_sid-06A19115-C64D-44C5-956C-8390AEA462BE">
        <omgdc:Bounds height="80.0" width="100.0" x="1085.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-2A829864-34C9-4787-B179-0D074E046EAA" id="BPMNShape_sid-2A829864-34C9-4787-B179-0D074E046EAA">
        <omgdc:Bounds height="80.0" width="100.0" x="1199.9999642372143" y="89.99999731779107"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-51042F90-A479-41CF-9591-F7134B5FDA98" id="BPMNShape_sid-51042F90-A479-41CF-9591-F7134B5FDA98">
        <omgdc:Bounds height="80.0" width="100.0" x="1093.7002220538202" y="480.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-04EE49F6-35BB-42CD-AD15-887466C05435" id="BPMNShape_sid-04EE49F6-35BB-42CD-AD15-887466C05435">
        <omgdc:Bounds height="40.0" width="40.0" x="830.0" y="350.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-BB473729-CD50-4502-9AC6-12FFDF12C197" id="BPMNShape_sid-BB473729-CD50-4502-9AC6-12FFDF12C197">
        <omgdc:Bounds height="80.0" width="100.0" x="952.3678280308127" y="600.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-C9F38727-FDA9-4035-921D-421545F2F7DC" id="BPMNShape_sid-C9F38727-FDA9-4035-921D-421545F2F7DC">
        <omgdc:Bounds height="80.0" width="100.0" x="800.0" y="480.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-CBF923C7-3257-4A63-AD5A-73EF0D01B517" id="BPMNShape_sid-CBF923C7-3257-4A63-AD5A-73EF0D01B517">
        <omgdc:Bounds height="30.0" width="30.0" x="1129.0" y="396.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60" id="BPMNShape_sid-40FBC1D2-1BC1-454B-B5F9-3AFB3A8E0E60">
        <omgdc:Bounds height="40.0" width="40.0" x="982.3678280308127" y="750.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-73BE6D37-F53E-49E9-AA11-38C24C130CAF" id="BPMNShape_sid-73BE6D37-F53E-49E9-AA11-38C24C130CAF">
        <omgdc:Bounds height="28.0" width="28.0" x="1129.7002220538202" y="756.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F" id="BPMNShape_sid-21E1C0B4-7014-4DD1-A1BD-34DBB9CC1D1F">
        <omgdc:Bounds height="80.00000000000006" width="100.0" x="1350.0" y="180.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-DDF44E63-1267-413C-A188-A30FEC8B71C0" id="BPMNShape_sid-DDF44E63-1267-413C-A188-A30FEC8B71C0">
        <omgdc:Bounds height="86.99999999999994" width="107.0" x="180.0" y="176.50000000000006"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-D466A645-7398-4303-9389-23B9675661BF" id="BPMNShape_sid-D466A645-7398-4303-9389-23B9675661BF">
        <omgdc:Bounds height="40.0" width="40.0" x="420.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-48E1ECEC-01BC-481B-95E3-81B60B6A7AC5" id="BPMNShape_sid-48E1ECEC-01BC-481B-95E3-81B60B6A7AC5">
        <omgdc:Bounds height="28.0" width="28.0" x="360.0" y="465.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-EE08D25D-F282-43FF-BC77-886522B96F09" id="BPMNShape_sid-EE08D25D-F282-43FF-BC77-886522B96F09">
        <omgdc:Bounds height="80.0" width="100.0" x="674.999979883433" y="329.9999901652339"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-C050652E-2D69-44F0-A47D-B87CBBC5108F" id="BPMNShape_sid-C050652E-2D69-44F0-A47D-B87CBBC5108F">
        <omgdc:Bounds height="28.0" width="28.0" x="710.999958693983" y="449.9999865889553"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-08769529-3392-42BB-9900-E0F091CED448" id="BPMNShape_sid-08769529-3392-42BB-9900-E0F091CED448">
        <omgdc:Bounds height="86.99999999999997" width="107.0" x="855.0" y="165.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-A1E79062-44E4-4F7B-BB82-726B218EE024" id="BPMNShape_sid-A1E79062-44E4-4F7B-BB82-726B218EE024">
        <omgdc:Bounds height="30.0" width="30.0" x="893.0" y="149.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-C370C768-1B07-40DB-887F-00D33E480184" id="BPMNShape_sid-C370C768-1B07-40DB-887F-00D33E480184">
        <omgdc:Bounds height="40.0" width="40.0" x="1035.0" y="215.00000000000003"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-42915A49-9689-414C-B65A-E87E17B2FC08" id="BPMNShape_sid-42915A49-9689-414C-B65A-E87E17B2FC08">
        <omgdc:Bounds height="80.00000000000009" width="100.0" x="345.0" y="105.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-288D2AD5-DABE-4D68-BB42-F3FC0CCAFB6B" id="BPMNEdge_sid-288D2AD5-DABE-4D68-BB42-F3FC0CCAFB6B">
        <omgdi:waypoint x="644.1121772910005" y="210.0189408082696"></omgdi:waypoint>
        <omgdi:waypoint x="674.0" y="210.0"></omgdi:waypoint>
        <omgdi:waypoint x="674.0" y="234.0"></omgdi:waypoint>
        <omgdi:waypoint x="704.9999999999973" y="234.36686390532546"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-E5668048-5051-4E80-9426-EC6F2D6B9161" id="BPMNEdge_sid-E5668048-5051-4E80-9426-EC6F2D6B9161">
        <omgdi:waypoint x="1074.9416944211716" y="235.00000000000003"></omgdi:waypoint>
        <omgdi:waypoint x="1124.9999999999097" y="235.00000000000003"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-C331F9CF-D234-4AC8-A037-9D1406F82E99" id="BPMNEdge_sid-C331F9CF-D234-4AC8-A037-9D1406F82E99">
        <omgdi:waypoint x="1022.3107751911367" y="770.0"></omgdi:waypoint>
        <omgdi:waypoint x="1129.7002220538202" y="770.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-E8B12EBC-81DA-4D76-8A5F-FE1454B90F20" id="BPMNEdge_sid-E8B12EBC-81DA-4D76-8A5F-FE1454B90F20">
        <omgdi:waypoint x="1449.95" y="220.00000000000003"></omgdi:waypoint>
        <omgdi:waypoint x="1645.0" y="220.00000000000003"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-42A6BC99-789D-457C-93BE-C307938279A0" id="BPMNEdge_sid-42A6BC99-789D-457C-93BE-C307938279A0">
        <omgdi:waypoint x="1143.958746306899" y="425.94994466170203"></omgdi:waypoint>
        <omgdi:waypoint x="1143.8100947964797" y="480.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-D55837A4-2405-4361-8466-0D09264CF108" id="BPMNEdge_sid-D55837A4-2405-4361-8466-0D09264CF108">
        <omgdi:waypoint x="961.9499999999999" y="222.47923076923075"></omgdi:waypoint>
        <omgdi:waypoint x="1006.0" y="234.0"></omgdi:waypoint>
        <omgdi:waypoint x="1035.3712574850292" y="234.60000000000002"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-17E7AD48-4550-4CD8-9EA4-35F5B1F0F20C" id="BPMNEdge_sid-17E7AD48-4550-4CD8-9EA4-35F5B1F0F20C">
        <omgdi:waypoint x="1085.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="1034.95" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-1C7307FD-2479-4D7E-8B66-0C259A920A77" id="BPMNEdge_sid-1C7307FD-2479-4D7E-8B66-0C259A920A77">
        <omgdi:waypoint x="830.0" y="369.99999842643786"></omgdi:waypoint>
        <omgdi:waypoint x="774.9499798834329" y="369.9999940952058"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-F3AEB328-57CA-4077-9497-C8D3AC09FFC2" id="BPMNEdge_sid-F3AEB328-57CA-4077-9497-C8D3AC09FFC2">
        <omgdi:waypoint x="1143.4668147025468" y="559.95"></omgdi:waypoint>
        <omgdi:waypoint x="1143.0" y="640.0"></omgdi:waypoint>
        <omgdi:waypoint x="1052.3178280308127" y="640.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-9A482D42-9A31-4C98-AA45-C00A51FD7E25" id="BPMNEdge_sid-9A482D42-9A31-4C98-AA45-C00A51FD7E25">
        <omgdi:waypoint x="811.9499999999998" y="234.2818791946309"></omgdi:waypoint>
        <omgdi:waypoint x="833.0" y="234.0"></omgdi:waypoint>
        <omgdi:waypoint x="833.0" y="208.0"></omgdi:waypoint>
        <omgdi:waypoint x="854.9999999999993" y="208.1456953642384"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-AA079727-5B9F-4AAD-BC89-2D0F41FCC201" id="BPMNEdge_sid-AA079727-5B9F-4AAD-BC89-2D0F41FCC201">
        <omgdi:waypoint x="935.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="869.9073573017049" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-CAB07DA5-33CB-4809-A336-5083DA0363B5" id="BPMNEdge_sid-CAB07DA5-33CB-4809-A336-5083DA0363B5">
        <omgdi:waypoint x="765.9207554654761" y="177.77595177390194"></omgdi:waypoint>
        <omgdi:waypoint x="852.0" y="40.0"></omgdi:waypoint>
        <omgdi:waypoint x="1005.0" y="40.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-1671959E-B3B9-4AED-B271-CE0E148321EB" id="BPMNEdge_sid-1671959E-B3B9-4AED-B271-CE0E148321EB">
        <omgdi:waypoint x="1104.95" y="40.0"></omgdi:waypoint>
        <omgdi:waypoint x="1400.0" y="40.0"></omgdi:waypoint>
        <omgdi:waypoint x="1400.0" y="180.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-06BB4C8B-2ECD-4BDC-96E4-CE5DB6977724" id="BPMNEdge_sid-06BB4C8B-2ECD-4BDC-96E4-CE5DB6977724">
        <omgdi:waypoint x="1780.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="1744.95" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-D0C7C2D1-2335-49DA-AB53-267FBF0314BC" id="BPMNEdge_sid-D0C7C2D1-2335-49DA-AB53-267FBF0314BC">
        <omgdi:waypoint x="1744.95" y="222.8530962248988"></omgdi:waypoint>
        <omgdi:waypoint x="1768.5270761957518" y="224.19979626670562"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-9EF3F6B6-3FCA-463A-9858-ED3C75D496E3" id="BPMNEdge_sid-9EF3F6B6-3FCA-463A-9858-ED3C75D496E3">
        <omgdi:waypoint x="1645.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="1469.95" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-C9BC719B-40AE-4450-A19D-2216E7455F1C" id="BPMNEdge_sid-C9BC719B-40AE-4450-A19D-2216E7455F1C">
        <omgdi:waypoint x="410.6326086956522" y="184.9500000000001"></omgdi:waypoint>
        <omgdi:waypoint x="434.375" y="245.60587133041852"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-273166F3-2F1C-460F-8223-831302A2DC4C" id="BPMNEdge_sid-273166F3-2F1C-460F-8223-831302A2DC4C">
        <omgdi:waypoint x="1002.3678280308127" y="679.9499999999999"></omgdi:waypoint>
        <omgdi:waypoint x="1002.3678280308127" y="750.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-8616F717-3787-4AD5-9A42-5917EDC8305E" id="BPMNEdge_sid-8616F717-3787-4AD5-9A42-5917EDC8305E">
        <omgdi:waypoint x="919.4276038244626" y="154.32814985347335"></omgdi:waypoint>
        <omgdi:waypoint x="1007.5806451612904" y="79.95"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7436DBF1-39F4-4DFB-9A6E-74C4BA541C58" id="BPMNEdge_sid-7436DBF1-39F4-4DFB-9A6E-74C4BA541C58">
        <omgdi:waypoint x="1818.2298985193709" y="267.0057484437815"></omgdi:waypoint>
        <omgdi:waypoint x="1818.0" y="298.0"></omgdi:waypoint>
        <omgdi:waypoint x="1830.0" y="298.0"></omgdi:waypoint>
        <omgdi:waypoint x="1830.0" y="330.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-8AFA39B5-38B3-4831-A8C4-8BE5D4F96111" id="BPMNEdge_sid-8AFA39B5-38B3-4831-A8C4-8BE5D4F96111">
        <omgdi:waypoint x="1369.999999999882" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="1184.9499999997452" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5EB7398A-5905-4898-9985-D3CD255D9928" id="BPMNEdge_sid-5EB7398A-5905-4898-9985-D3CD255D9928">
        <omgdi:waypoint x="850.0" y="559.95"></omgdi:waypoint>
        <omgdi:waypoint x="850.0" y="640.0"></omgdi:waypoint>
        <omgdi:waypoint x="952.3678280305965" y="640.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-ECA4AF6B-5D45-46E9-B3D9-15B48D12ED90" id="BPMNEdge_sid-ECA4AF6B-5D45-46E9-B3D9-15B48D12ED90">
        <omgdi:waypoint x="982.3678280308127" y="770.0"></omgdi:waypoint>
        <omgdi:waypoint x="594.0" y="770.0"></omgdi:waypoint>
        <omgdi:waypoint x="594.1505921503227" y="250.00068040343774"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5F275335-DAD1-4954-A3EC-202E0F2EFAA2" id="BPMNEdge_sid-5F275335-DAD1-4954-A3EC-202E0F2EFAA2">
        <omgdi:waypoint x="440.0" y="279.93722791293214"></omgdi:waypoint>
        <omgdi:waypoint x="440.0" y="338.0"></omgdi:waypoint>
        <omgdi:waypoint x="374.0" y="338.0"></omgdi:waypoint>
        <omgdi:waypoint x="374.0" y="465.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-085CF82A-B4CB-4169-974F-F54762314F42" id="BPMNEdge_sid-085CF82A-B4CB-4169-974F-F54762314F42">
        <omgdi:waypoint x="850.0" y="389.9433544303797"></omgdi:waypoint>
        <omgdi:waypoint x="850.0" y="480.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-98A33F31-CF03-4737-A0F7-2ACC67F5A438" id="BPMNEdge_sid-98A33F31-CF03-4737-A0F7-2ACC67F5A438">
        <omgdi:waypoint x="1175.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="1249.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="1249.6190254899113" y="169.9499973177911"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-DB1D3CD0-7F35-4EEE-AF82-21EE72D72E3A" id="BPMNEdge_sid-DB1D3CD0-7F35-4EEE-AF82-21EE72D72E3A">
        <omgdi:waypoint x="724.9999708666454" y="409.9499901652339"></omgdi:waypoint>
        <omgdi:waypoint x="724.999958693983" y="449.9999865889553"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-AAF6BEE2-002A-451E-A4C3-313FE0C47366" id="BPMNEdge_sid-AAF6BEE2-002A-451E-A4C3-313FE0C47366">
        <omgdi:waypoint x="458.8099999999988" y="258.8571428571429"></omgdi:waypoint>
        <omgdi:waypoint x="473.0" y="258.0"></omgdi:waypoint>
        <omgdi:waypoint x="483.0" y="218.0"></omgdi:waypoint>
        <omgdi:waypoint x="544.1621772910006" y="213.6226553640292"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-C737E343-C0C3-495F-A951-41DABDF7E7B7" id="BPMNEdge_sid-C737E343-C0C3-495F-A951-41DABDF7E7B7">
        <omgdi:waypoint x="1055.0" y="215.00000000000003"></omgdi:waypoint>
        <omgdi:waypoint x="1055.0" y="79.95"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-10606530-59CB-44B0-B030-41DCA83ACDB7" id="BPMNEdge_sid-10606530-59CB-44B0-B030-41DCA83ACDB7">
        <omgdi:waypoint x="286.95000000000005" y="195.15479876160992"></omgdi:waypoint>
        <omgdi:waypoint x="345.0" y="168.1965944272446"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-329050F2-25B3-422F-92CC-57C1B1949CF0" id="BPMNEdge_sid-329050F2-25B3-422F-92CC-57C1B1949CF0">
        <omgdi:waypoint x="134.9486630716247" y="223.2973154243198"></omgdi:waypoint>
        <omgdi:waypoint x="157.0" y="223.0"></omgdi:waypoint>
        <omgdi:waypoint x="157.0" y="220.0"></omgdi:waypoint>
        <omgdi:waypoint x="180.0" y="220.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-94BFFA47-3E7D-48DF-9C69-2B8D2E91604A" id="BPMNEdge_sid-94BFFA47-3E7D-48DF-9C69-2B8D2E91604A">
        <omgdi:waypoint x="1299.949964237214" y="129.19354833313477"></omgdi:waypoint>
        <omgdi:waypoint x="1312.0" y="129.0"></omgdi:waypoint>
        <omgdi:waypoint x="1312.0" y="220.0"></omgdi:waypoint>
        <omgdi:waypoint x="1312.0" y="220.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>