<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="PDAAssignPreShipRequestToBoxforMES.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="MaterialShipRequestDetailServiceImpl" partnerLinkType="bean:MaterialShipRequestDetailServiceImpl" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="XmlUtil" partnerLinkType="bean:XmlUtil" />
    </partnerLinks>
    <variables>
        <variable name="01" messageType="java.lang.String"></variable>
        <variable name="action_exceptAction" messageType="java.lang.String"></variable>
        <variable name="asignedBoxCount" messageType="int"></variable>
        <variable name="Assign" messageType="java.lang.String"></variable>
        <variable name="boxID" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="boxQty" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="DeassignShipRequestFromBox" messageType="org.jdom.Document"></variable>
        <variable name="deliveryType" messageType="java.lang.String"></variable>
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="EVENTCOMMENT" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Header/EVENTUSER')" />
        <variable name="FABSender" messageType="java.lang.String"></variable>
        <variable name="messageID" messageType="java.lang.String"></variable>
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Header/MESSAGENAME')" />
        <variable name="MESSender" messageType="java.lang.String"></variable>
        <variable name="palletList" messageType="java.util.List"></variable>
        <variable name="PDAAssignPreShipRequestToBox" messageType="org.jdom.Document"></variable>
        <variable name="PDASender" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/RECEIVEACTNO')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="Reserved" messageType="java.lang.String"></variable>
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shipRequest" messageType="com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest"></variable>
        <variable name="SHIPREQUESTDETAILNAME" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="shipRequestDetailType" messageType="java.lang.String"></variable>
        <variable name="SHIPREQUESTNAME" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('PDAAssignPreShipRequestToBox', '//Message/Body/SITENAME')" />
        <variable name="toMESMessage" messageType="org.jdom.Document"></variable>
        <variable name="undoInfoList" messageType="java.util.List"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="914,9,260,603">
        <catchAll name="catchAll" type="catchAll" bounds="14,30,221,557">
            <invoke name="TransactionUtil rollbackTransaction" type="invokebean" description="public void rollbackTransaction()" bounds="32,8,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="rollbackTransaction" operationDesc="public void rollbackTransaction()" ignoreThrow="false" fork="false" />
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, java.lang.String senderName)" bounds="34,132,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendErrorBySender" operationDesc="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, java.lang.String senderName)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="replysubjectname" type="java.lang.String" />
                <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
                <input constant="" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="PDASender" type="java.lang.String" />
            </invoke>
            <invoke name="ESBService makeErrorMessageLog" type="invokebean" description="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" bounds="37,255,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="makeErrorMessageLog" operationDesc="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="" type="java.lang.String" />
            </invoke>
            <terminate name="terminate" bounds="39,400,141,65">
                <source idx="0" terminal="5,A" />
            </terminate>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="PDAAssignPreShipRequestToBoxforMES" bounds="1198,30,149,62">
            <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
        </receive>
        <invoke name="EventInfoUtil makeEventInfo" type="invokebean" description="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="1202,122,141,105" partnerLink="EventInfoUtil" partnerLinkType="EventInfoUtil" operation="makeEventInfo" operationDesc="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input constant="PreAssignShipRequest" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="EVENTCOMMENT" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="1201,257,143,90" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="CommonValidation GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="1202,377,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="GetMessageID" operationDesc="public java.lang.String GetMessageID(java.lang.String sitename)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <output variable="messageID" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1202,512,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="1202,647,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl checkBoxAssigned" type="invokebean" description="public void checkBoxAssigned(java.lang.String siteName, java.lang.String boxID)" bounds="1202,782,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="checkBoxAssigned" operationDesc="public void checkBoxAssigned(java.lang.String siteName, java.lang.String boxID)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="boxID" type="java.lang.String" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl getBoxListByPallet" type="invokebean" description="public java.util.List getBoxListByPallet(java.lang.String siteName, java.lang.String materialPackingName)" bounds="1202,917,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="getBoxListByPallet" operationDesc="public java.util.List getBoxListByPallet(java.lang.String siteName, java.lang.String materialPackingName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="boxID" type="java.lang.String" />
            <output variable="palletList" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl preAssignShipRequestToBox" type="invokebean" description="public void preAssignShipRequestToBox(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String flag, java.lang.String receiveActNo, java.util.List palletList)" bounds="1202,1052,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="preAssignShipRequestToBox" operationDesc="public void preAssignShipRequestToBox(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String flag, java.lang.String receiveActNo, java.util.List palletList)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="boxID" type="java.lang.String" />
            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
            <input variable="SHIPREQUESTDETAILNAME" type="java.lang.String" />
            <input constant="Assign" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input variable="palletList" type="java.util.List" />
        </invoke>
        <invoke name="MaterialShipRequestDetailServiceImpl updateShipRequestDetailAssignedQty" type="invokebean" description="public void updateShipRequestDetailAssignedQty(java.lang.String siteName, java.lang.String invoiceNo, java.lang.String invoiceDetailNo, java.lang.String boxQty, java.lang.String flag)" bounds="1202,1187,141,105" partnerLink="MaterialShipRequestDetailServiceImpl" partnerLinkType="MaterialShipRequestDetailServiceImpl" operation="updateShipRequestDetailAssignedQty" operationDesc="public void updateShipRequestDetailAssignedQty(java.lang.String siteName, java.lang.String invoiceNo, java.lang.String invoiceDetailNo, java.lang.String boxQty, java.lang.String flag)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
            <input variable="SHIPREQUESTDETAILNAME" type="java.lang.String" />
            <input variable="boxQty" type="java.lang.String" />
            <input constant="Assign" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialShipRequestServiceImpl updateReserve" type="invokebean" description="public void updateReserve(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String invoiceNo, java.lang.String shipRequestState)" bounds="1202,1322,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="updateReserve" operationDesc="public void updateReserve(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String invoiceNo, java.lang.String shipRequestState)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
            <input constant="Reserved" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl updatePDAAssignFifoFlag" type="invokebean" description="public void updatePDAAssignFifoFlag(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName)" bounds="1470,1390,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="updatePDAAssignFifoFlag" operationDesc="public void updatePDAAssignFifoFlag(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="boxID" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1206,1457,132,92" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xD;&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="1124,1579,296,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replysubjectname" type="java.lang.String" />
            <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
            <input variable="returnElement" type="org.jdom.Element" />
            <input constant="PDASender" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialShipRequestServiceImpl getShipRequest" type="invokebean" description="public com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest getShipRequest(java.lang.String siteName, java.lang.String invoiceNo)" bounds="1202,1711,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="getShipRequest" operationDesc="public com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest getShipRequest(java.lang.String siteName, java.lang.String invoiceNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
            <output variable="shipRequest" />
        </invoke>
        <expression name="expression" type="expression" bounds="1202,1846,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('deliveryType',getField('shipRequest','deliveryType'))" />
        </expression>
        <switch name="switch" bounds="1256,1941,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="1217,2020,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('deliveryType') = 'Reserve'" bounds="972,2099,60,66">
                <source idx="0" terminal="5,A" />
                <invoke name="ERPInterfaceServiceImpl queryAssignedBoxCount" type="invokebean" description="public int queryAssignedBoxCount(java.lang.String siteName, java.lang.String shipRequestName)" bounds="932,2195,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="queryAssignedBoxCount" operationDesc="public int queryAssignedBoxCount(java.lang.String siteName, java.lang.String shipRequestName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="siteName" type="java.lang.String" />
                    <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                    <output variable="asignedBoxCount" />
                </invoke>
                <switch name="switch" bounds="986,2330,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="947,2409,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('asignedBoxCount') = 1" bounds="602,2488,60,64">
                        <source idx="0" terminal="5,A" />
                        <switch name="switch" bounds="616,2582,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="577,2661,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('siteName') = 'B4'&#xA;or getVariable('siteName') = 'B2'&#xA;or getVariable('siteName') = 'BMOT'&#xA;or getVariable('siteName') = 'B7'" bounds="114,2740,60,61">
                                <source idx="0" terminal="5,A" />
                                <invoke name="ERPInterfaceServiceImpl sendAssignInfo" type="invokebean" description="public static java.util.List sendAssignInfo(java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo, java.lang.String shipRequestName, java.lang.String jpFlag)" bounds="74,2831,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="sendAssignInfo" operationDesc="public static java.util.List sendAssignInfo(java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo, java.lang.String shipRequestName, java.lang.String jpFlag)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="siteName" type="java.lang.String" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                    <input variable="messageID" type="java.lang.String" />
                                    <input variable="receiveActNo" type="java.lang.String" />
                                    <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                                    <input constant="01" type="java.lang.String" />
                                </invoke>
                            </case>
                            <case name="case" type="case" condition="getVariable('siteName') = 'B1'" bounds="471,2740,60,47">
                                <source idx="0" terminal="5,A" />
                                <switch name="switch" bounds="485,2817,33,33" type="switch">
                                    <source idx="0" terminal="5,A" />
                                    <switchstart name="switchstart" type="switchstart" bounds="446,2896,110,49">
                                        <source idx="0" terminal="5,A" />
                                    </switchstart>
                                    <case name="case" type="case" condition="getVariable('shipRequestDetailType')='ZDLF'&#xD;&#xA; or getVariable('shipRequestDetailType')='NLCC'&#xD;&#xA; or getVariable('shipRequestDetailType')='ZELF'" bounds="382,2975,60,53">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="ERPInterfaceServiceImpl sendAssignInfo" type="invokebean" description="public static java.util.List sendAssignInfo(java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo, java.lang.String shipRequestName, java.lang.String jpFlag)" bounds="342,3058,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="sendAssignInfo" operationDesc="public static java.util.List sendAssignInfo(java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo, java.lang.String shipRequestName, java.lang.String jpFlag)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="siteName" type="java.lang.String" />
                                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                            <input variable="messageID" type="java.lang.String" />
                                            <input variable="receiveActNo" type="java.lang.String" />
                                            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                                            <input constant="01" type="java.lang.String" />
                                        </invoke>
                                    </case>
                                    <otherwise name="otherwise" type="otherwise" bounds="547,2975,88,65">
                                        <source idx="0" terminal="5,A" />
                                    </otherwise>
                                    <switchend name="switchend" type="switchend" bounds="446,3183,110,49">
                                        <source idx="0" terminal="5,A" />
                                        <source idx="1" terminal="5,A" />
                                    </switchend>
                                </switch>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="719,2740,88,68">
                                <source idx="0" terminal="5,A" />
                            </otherwise>
                            <case name="case" type="case" condition="getVariable('siteName') = 'B17'" bounds="998,2740,60,62">
                                <source idx="0" terminal="5,A" />
                                <switch name="switch" bounds="1012,2832,33,33" type="switch">
                                    <source idx="0" terminal="5,A" />
                                    <switchstart name="switchstart" type="switchstart" bounds="973,2911,110,49">
                                        <source idx="0" terminal="5,A" />
                                    </switchstart>
                                    <case name="case" type="case" condition="getField(getVariable('shipRequest'), 'customerNO')='MDL'" bounds="807,2990,60,55">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="XmlUtil clone" type="invokebean" description="public org.jdom.Document clone(org.jdom.Document doc)" bounds="767,3075,141,105" partnerLink="XmlUtil" partnerLinkType="XmlUtil" operation="clone" operationDesc="public org.jdom.Document clone(org.jdom.Document doc)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
                                            <output variable="toMESMessage" />
                                        </invoke>
                                        <expression name="expression" type="expression" bounds="767,3210,141,65">
                                            <source idx="0" terminal="5,A" />
                                            <function value="setXmlData('toMESMessage','/Message/Header/MESSAGENAME','CallMaterialStarted')" />
                                            <function value="removeElement('toMESMessage','/Message/Body')" />
                                            <function value="addChildNode('toMESMessage','/Message',createNode('Body',''))" />
                                            <function value="addElement('toMESMessage','/Message/Body','SHIPREQUESTNAME',getVariable('SHIPREQUESTNAME'))" />
                                        </expression>
                                        <invoke name="ESBService sendBySender" type="invokebean" description="public void sendBySender(org.jdom.Document doc, java.lang.String senderName)" bounds="767,3305,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendBySender" operationDesc="public void sendBySender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="toMESMessage" type="org.jdom.Document" />
                                            <input constant="MESSender" type="java.lang.String" />
                                        </invoke>
                                    </case>
                                    <case name="case" type="case" condition="getField(getVariable('shipRequest'), 'customerNO')='FAB'" bounds="998,2990,60,58">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="XmlUtil clone" type="invokebean" description="public org.jdom.Document clone(org.jdom.Document doc)" bounds="958,3078,141,105" partnerLink="XmlUtil" partnerLinkType="XmlUtil" operation="clone" operationDesc="public org.jdom.Document clone(org.jdom.Document doc)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="PDAAssignPreShipRequestToBox" type="org.jdom.Document" />
                                            <output variable="toMESMessage" />
                                        </invoke>
                                        <expression name="expression" type="expression" bounds="958,3213,141,65">
                                            <source idx="0" terminal="5,A" />
                                            <function value="setXmlData('toMESMessage','/Message/Header/MESSAGENAME','CallMaterialStarted')" />
                                            <function value="removeElement('toMESMessage','/Message/Body')" />
                                            <function value="addChildNode('toMESMessage','/Message',createNode('Body',''))" />
                                            <function value="addElement('toMESMessage','/Message/Body','SHIPREQUESTNAME',getVariable('SHIPREQUESTNAME'))" />
                                        </expression>
                                        <invoke name="ESBService sendBySender" type="invokebean" description="public void sendBySender(org.jdom.Document doc, java.lang.String senderName)" bounds="958,3308,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendBySender" operationDesc="public void sendBySender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="toMESMessage" type="org.jdom.Document" />
                                            <input constant="FABSender" type="java.lang.String" />
                                        </invoke>
                                    </case>
                                    <otherwise name="otherwise" type="otherwise" bounds="1163,2990,88,53">
                                        <source idx="0" terminal="5,A" />
                                    </otherwise>
                                    <switchend name="switchend" type="switchend" bounds="973,3433,110,49">
                                        <source idx="0" terminal="5,A" />
                                        <source idx="1" terminal="5,A" />
                                        <source idx="2" terminal="5,A">
                                            <BendPoint FirstRelative="7,359" SecondRelative="137,-42" weight="0.5" />
                                        </source>
                                    </switchend>
                                </switch>
                            </case>
                            <switchend name="switchend" type="switchend" bounds="577,3502,110,49">
                                <source idx="0" terminal="5,A">
                                    <BendPoint FirstRelative="117,248" SecondRelative="-240,-69" weight="0.5" />
                                </source>
                                <source idx="1" terminal="5,A" />
                                <source idx="2" terminal="5,A">
                                    <BendPoint FirstRelative="-91,279" SecondRelative="171,-215" weight="0.5" />
                                </source>
                                <source idx="3" terminal="5,A" />
                            </switchend>
                        </switch>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="1332,2488,83,77">
                        <source idx="0" terminal="5,A" />
                    </otherwise>
                    <switchend name="switchend" type="switchend" bounds="577,3571,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A">
                            <BendPoint FirstRelative="-178,932" SecondRelative="563,-75" weight="0.5" />
                        </source>
                    </switchend>
                </switch>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="1499,2099,88,53">
                <source idx="0" terminal="5,A" />
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="577,3640,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A">
                    <BendPoint FirstRelative="0,629" SecondRelative="423,-291" weight="0.5" />
                    <BendPoint FirstRelative="-288,1357" SecondRelative="623,-132" weight="0.5" />
                </source>
            </switchend>
        </switch>
        <terminate name="terminate" bounds="562,3719,141,65">
            <source idx="0" terminal="5,A" />
        </terminate>
    </sequence>
</process>

