<?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="WOENStockOut.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialReceiveRequestServiceImpl" partnerLinkType="bean:MaterialReceiveRequestServiceImpl" />
        <partnerLink name="MaterialPackingServiceUtil" partnerLinkType="bean:MaterialPackingServiceUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="1" messageType="java.lang.String"></variable>
        <variable name="@B2TOB7" messageType="java.lang.String"></variable>
        <variable name="actType" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/ACTTYPE')" />
        <variable name="B7" messageType="java.lang.String"></variable>
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="chargeForB" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/WORKORDERID')" />
        <variable name="Completed" messageType="java.lang.String"></variable>
        <variable name="CompleteShipRequest" messageType="org.jdom.Document"></variable>
        <variable name="ConfirmShipRequest" messageType="org.jdom.Document"></variable>
        <variable name="Deliverytype" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/DELIVERYTYPE')" />
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="EN" messageType="java.lang.String"></variable>
        <variable name="ERPEventTime" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/RECEIVETIME')" />
        <variable name="ERPLocation" messageType="java.lang.String"></variable>
        <variable name="ERP过账?时" messageType="java.lang.String"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Header/EVENTUSER')" />
        <variable name="language" messageType="java.lang.String"></variable>
        <variable name="locationList" messageType="java.util.List"></variable>
        <variable name="materialDoinfoList" messageType="java.util.List"></variable>
        <variable name="MaterialShipRequest" messageType="com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest"></variable>
        <variable name="message" messageType="java.lang.String"></variable>
        <variable name="messageID" messageType="java.lang.String"></variable>
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Header/MESSAGENAME')" />
        <variable name="MP" messageType="java.lang.String"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/REASONCODETYPE')" />
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/RECEIVEACTNO')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shipRequest" messageType="com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest"></variable>
        <variable name="shipRequestDetailType" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/SHIPREQUESTDETAILTYPE')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="shipRequestState" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/SHIPREQUESTSTATE')" />
        <variable name="ShipToMDLMaterialReport" messageType="java.lang.String"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Body/SITENAME')" />
        <variable name="specialDateFlag" messageType="java.lang.Boolean">True</variable>
        <variable name="StockOut" messageType="java.lang.String"></variable>
        <variable name="storageName" messageType="java.lang.String"></variable>
        <variable name="TRANSACTIONID" messageType="java.lang.String" expression="getXmlData('WOENStockOut', '//Message/Header/TRANSACTIONID')" />
        <variable name="WOENStockOut" messageType="org.jdom.Document"></variable>
    </variables>
    <sequence>
        <receive name="WOENStockOut" bounds="571,45,149,62">
            <input variable="WOENStockOut" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="575,272,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="CommonValidation GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="575,407,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="575,542,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="575,677,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="MaterialShipRequestServiceImpl getShipRequest" type="invokebean" description="public com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest getShipRequest(java.lang.String siteName, java.lang.String invoiceNo)" bounds="575,812,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="MaterialShipRequest" />
        </invoke>
        <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="575,947,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 variable="messagename" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="eventComment" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input variable="reasonCode" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="MaterialReceiveRequestServiceImpl CreateMaterialRRActByLabel" type="invokebean" description="public void CreateMaterialRRActByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveActNo, java.lang.String actType)" bounds="575,1082,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="CreateMaterialRRActByLabel" operationDesc="public void CreateMaterialRRActByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveActNo, java.lang.String actType)" 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 variable="receiveActNo" type="java.lang.String" />
            <input variable="actType" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialPackingServiceUtil getPackingListFromShipRequest" type="invokebean" description="public java.util.List getPackingListFromShipRequest(java.lang.String invoiceNo)" bounds="575,1217,141,105" partnerLink="MaterialPackingServiceUtil" partnerLinkType="MaterialPackingServiceUtil" operation="getPackingListFromShipRequest" operationDesc="public java.util.List getPackingListFromShipRequest(java.lang.String invoiceNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="shipRequestName" type="java.lang.String" />
            <output variable="boxList" />
        </invoke>
        <invoke name="MaterialPackingServiceUtil getLocationListFromShipRequest" type="invokebean" description="public java.util.List getLocationListFromShipRequest(java.lang.String invoiceNo)" bounds="575,1352,141,105" partnerLink="MaterialPackingServiceUtil" partnerLinkType="MaterialPackingServiceUtil" operation="getLocationListFromShipRequest" operationDesc="public java.util.List getLocationListFromShipRequest(java.lang.String invoiceNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="shipRequestName" type="java.lang.String" />
            <output variable="locationList" />
        </invoke>
        <switch name="switch" bounds="629,1487,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="590,1566,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('Deliverytype') = 'WO'" bounds="304,1685,60,30">
                <source idx="0" terminal="5,A" />
                <invoke name="MaterialPackingServiceImpl MaterialPackingStockOut_02SEQ" type="invokebean" description="public void MaterialPackingStockOut_02SEQ(java.util.List materialPackingKeyList, java.lang.String siteName, java.lang.String invoiceNo)" bounds="263,1769,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="MaterialPackingStockOut_02SEQ" operationDesc="public void MaterialPackingStockOut_02SEQ(java.util.List materialPackingKeyList, java.lang.String siteName, java.lang.String invoiceNo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="boxList" type="java.util.List" />
                    <input variable="siteName" type="java.lang.String" />
                    <input variable="shipRequestName" type="java.lang.String" />
                </invoke>
                <invoke name="ERPInterfaceServiceImpl erp_StockOut_WMS02ForERPAccount_WOEN" type="invokebean" description="public static java.util.List erp_StockOut_WMS02ForERPAccount_WOEN(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String erpEventTime, java.lang.String flag, java.lang.String messageID, java.lang.String receiveActNo)" bounds="262,1931,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockOut_WMS02ForERPAccount_WOEN" operationDesc="public static java.util.List erp_StockOut_WMS02ForERPAccount_WOEN(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String erpEventTime, java.lang.String flag, java.lang.String messageID, java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="shipRequestName" type="java.lang.String" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="ERPEventTime" type="java.lang.String" />
                    <input constant="1" type="java.lang.String" />
                    <input variable="messageID" type="java.lang.String" />
                    <input variable="receiveActNo" type="java.lang.String" />
                    <output variable="materialDoinfoList" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="1046,1638,88,19">
                <source idx="0" terminal="5,A" />
                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="1022,1695,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replysubjectname" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="ERP过账?时" type="java.lang.String" />
                </invoke>
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="291,2105,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A" />
            </switchend>
        </switch>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="276,2238,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <switch name="switch" bounds="349,2414,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="315,2541,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('shipRequestDetailType') = '261' &#xD;&#xA;or string(getListSize('materialDoinfoList')) &gt; 0" bounds="232,2801,60,32">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="192,2863,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
                    <source idx="0" terminal="5,A" />
                </invoke>
                <invoke name="MaterialShipRequestServiceImpl updateComplete" type="invokebean" description="public void updateComplete(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String invoiceNo, java.lang.String shipRequestState)" bounds="192,2998,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="updateComplete" operationDesc="public void updateComplete(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="Completed" type="java.lang.String" />
                </invoke>
                <while name="while" bounds="246,3171,32,32" type="2" collection="locationList" element="storageName">
                    <source idx="0" terminal="5,A" />
                    <whilestart name="whilestart" type="whilestart" bounds="210,3256,110,49">
                        <source idx="0" terminal="5,A" />
                    </whilestart>
                    <whileend name="whileend" type="whileend" bounds="226,3363,110,49">
                        <source idx="0" terminal="5,A" />
                    </whileend>
                </while>
                <switch name="switch" bounds="258,3480,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="215,3587,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('shipRequestDetailType') = 'ZELF' &#xD;&#xA;or  getVariable('shipRequestDetailType') = 'ZERM' &#xD;&#xA;or  getVariable('shipRequestDetailType') = 'ZERP' " bounds="219,3773,60,36">
                        <source idx="0" terminal="5,A" />
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="700,3907,85,47">
                        <source idx="0" terminal="5,A" />
                        <switch name="switch" bounds="1003,4135,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="964,4214,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('Deliverytype') = 'Reserve'&#xA; and (getVariable('reasonCodeType') ='301'  &#xA; or getVariable('reasonCodeType') ='911' &#xA;or getVariable('reasonCodeType') ='912' &#xA;or getVariable('reasonCodeType') ='YAP' )&#xA; and (getVariable('reasonCode') ='0001' &#xA; or getVariable('reasonCode') ='0007'&#xA; or getVariable('reasonCode') ='0008'&#xA; or getVariable('reasonCode') ='0009'&#xA; or getVariable('reasonCode') ='0010'&#xA; or getVariable('reasonCode') ='0012')" bounds="699,4293,66,64">
                                <source idx="0" terminal="5,A" />
                                <switch name="switch" bounds="716,4387,33,33" type="switch">
                                    <source idx="0" terminal="5,A" />
                                    <switchstart name="switchstart" type="switchstart" bounds="677,4466,110,49">
                                        <source idx="0" terminal="5,A" />
                                    </switchstart>
                                    <case name="case" type="case" condition="getVariable('siteName') = 'B2' &#xA; or &#xA;getVariable('siteName') = 'B7' " bounds="303,4545,63,37">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="MaterialPackingServiceImpl moveDB2BD" type="invokebean" description="public static java.lang.String moveDB2BD(java.lang.String toSiteName, java.lang.String DBLink, java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventinfo)" bounds="264,4612,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="moveDB2BD" operationDesc="public static java.lang.String moveDB2BD(java.lang.String toSiteName, java.lang.String DBLink, java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventinfo)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input constant="B7" type="java.lang.String" />
                                            <input constant="@B2TOB7" type="java.lang.String" />
                                            <input variable="shipRequestName" type="java.lang.String" />
                                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                        </invoke>
                                        <invoke name="MaterialPackingServiceImpl UpdateStockOutInfo" type="invokebean" description="public void UpdateStockOutInfo(java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" bounds="264,4747,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="UpdateStockOutInfo" operationDesc="public void UpdateStockOutInfo(java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="shipRequestName" type="java.lang.String" />
                                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                            <input variable="siteName" type="java.lang.String" />
                                        </invoke>
                                    </case>
                                    <otherwise name="otherwise" type="otherwise" bounds="1100,4545,63,44">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="MaterialPackingServiceImpl SaveDumpStockInList2" type="invokebean" description="public void SaveDumpStockInList2(java.lang.String sitename, java.lang.String receiveActNO, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String shipRequestName)" bounds="1061,4619,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="SaveDumpStockInList2" operationDesc="public void SaveDumpStockInList2(java.lang.String sitename, java.lang.String receiveActNO, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String shipRequestName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="siteName" type="java.lang.String" />
                                            <input variable="receiveActNo" type="java.lang.String" />
                                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                            <input variable="shipRequestName" type="java.lang.String" />
                                        </invoke>
                                        <invoke name="MaterialPackingServiceImpl UpdateStockOutInfo" type="invokebean" description="public void UpdateStockOutInfo(java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" bounds="1061,4754,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="UpdateStockOutInfo" operationDesc="public void UpdateStockOutInfo(java.lang.String shipRequestName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="shipRequestName" type="java.lang.String" />
                                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                            <input variable="siteName" type="java.lang.String" />
                                        </invoke>
                                    </otherwise>
                                    <switchend name="switchend" type="switchend" bounds="677,4879,110,49">
                                        <source idx="0" terminal="5,A" />
                                        <source idx="1" terminal="5,A" />
                                    </switchend>
                                </switch>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="1264,4293,85,79">
                                <source idx="0" terminal="5,A" />
                            </otherwise>
                            <switchend name="switchend" type="switchend" bounds="677,4948,110,49">
                                <source idx="0" terminal="5,A" />
                                <source idx="1" terminal="5,A">
                                    <BendPoint FirstRelative="1,575" SecondRelative="574,-2" weight="0.5" />
                                </source>
                            </switchend>
                        </switch>
                    </otherwise>
                    <switchend name="switchend" type="switchend" bounds="838,5017,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A" />
                    </switchend>
                </switch>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="823,5096,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
                    <source idx="0" terminal="5,A" />
                </invoke>
                <invoke name="ESBService sendBySender" type="invokebean" description="public void sendBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" bounds="823,5231,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendBySender" operationDesc="public void sendBySender(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="WOENStockOut" type="org.jdom.Document" />
                    <input variable="returnElement" type="org.jdom.Element" />
                    <input constant="OICSender" type="java.lang.String" />
                </invoke>
                <invoke name="MaterialShipRequestServiceImpl getERPLocation" type="invokebean" description="public java.lang.String getERPLocation(java.lang.String siteName, java.lang.String shipRequestName)" bounds="823,5366,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="getERPLocation" operationDesc="public java.lang.String getERPLocation(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="ERPLocation" />
                </invoke>
                <switch name="switch" bounds="877,5501,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="838,5580,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <otherwise name="otherwise" type="otherwise" bounds="254,5659,88,19">
                        <source idx="0" terminal="5,A" />
                    </otherwise>
                    <case name="case" type="case" condition="getVariable('siteName') = 'B5'" bounds="888,5731,60,19">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingServiceImpl InsertStockOutDataToPMS" type="invokebean" description="public void InsertStockOutDataToPMS(java.lang.String siteName, java.util.List materialPackingKeyList)" bounds="869,5845,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="InsertStockOutDataToPMS" operationDesc="public void InsertStockOutDataToPMS(java.lang.String siteName, java.util.List materialPackingKeyList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="boxList" type="java.util.List" />
                        </invoke>
                    </case>
                    <case name="case" type="case" condition="getVariable('siteName') = 'B9'" bounds="1650,5659,60,19">
                        <source idx="0" terminal="5,A" />
                        <switch name="switch" bounds="1664,5708,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="1625,5787,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('Deliverytype') = 'WO' &#xD;&#xA;and&#xD;&#xA;(getVariable('ERPLocation') = '970' &#xD;&#xA;or &#xD;&#xA;getVariable('ERPLocation') = '971')" bounds="1459,5866,60,30">
                                <source idx="0" terminal="5,A" />
                                <invoke name="ERPInterfaceServiceImpl sendMessageToMES_EN" type="invokebean" description="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" bounds="1419,5926,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="sendMessageToMES_EN" operationDesc="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input constant="ShipToMDLMaterialReport" type="java.lang.String" />
                                    <input variable="eventUser" type="java.lang.String" />
                                    <input variable="shipRequestName" type="java.lang.String" />
                                    <input variable="TRANSACTIONID" type="java.lang.String" />
                                    <input constant="EN" type="java.lang.String" />
                                </invoke>
                            </case>
                            <case name="case" type="case" condition="getVariable('Deliverytype') = 'Reserve' &#xD;&#xA;and&#xD;&#xA;(getVariable('reasonCodeType') = '911'&#xD;&#xA;or&#xD;&#xA;getVariable('reasonCodeType') = 'YAP')" bounds="1650,5866,60,33">
                                <source idx="0" terminal="5,A" />
                                <invoke name="ERPInterfaceServiceImpl sendMessageToMES_EN" type="invokebean" description="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" bounds="1610,5929,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="sendMessageToMES_EN" operationDesc="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input constant="ShipToMDLMaterialReport" type="java.lang.String" />
                                    <input variable="eventUser" type="java.lang.String" />
                                    <input variable="shipRequestName" type="java.lang.String" />
                                    <input variable="TRANSACTIONID" type="java.lang.String" />
                                    <input constant="EN" type="java.lang.String" />
                                </invoke>
                            </case>
                            <case name="case" type="case" condition="getVariable('Deliverytype') = 'WO' &#xD;&#xA;and&#xD;&#xA;(getVariable('ERPLocation') != '970' &#xD;&#xA;and&#xD;&#xA;getVariable('ERPLocation') != '971')" bounds="1828,5865,73,33">
                                <source idx="0" terminal="5,A" />
                                <invoke name="ERPInterfaceServiceImpl sendMessageToMES_EN" type="invokebean" description="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" bounds="1815,5927,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="sendMessageToMES_EN" operationDesc="public static void sendMessageToMES_EN(java.lang.String messageName, java.lang.String eventUser, java.lang.String shipRequestName, java.lang.String TransactionID, java.lang.String type)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input constant="ShipToMDLMaterialReport" type="java.lang.String" />
                                    <input variable="eventUser" type="java.lang.String" />
                                    <input variable="shipRequestName" type="java.lang.String" />
                                    <input variable="TRANSACTIONID" type="java.lang.String" />
                                    <input constant="MP" type="java.lang.String" />
                                </invoke>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="2027,5892,88,31">
                                <source idx="0" terminal="5,A" />
                            </otherwise>
                            <switchend name="switchend" type="switchend" bounds="1625,6054,110,49">
                                <source idx="0" terminal="5,A" />
                                <source idx="1" terminal="5,A" />
                                <source idx="2" terminal="5,A" />
                                <source idx="3" terminal="5,A" />
                            </switchend>
                        </switch>
                    </case>
                    <switchend name="switchend" type="switchend" bounds="889,6010,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A" />
                        <source idx="2" terminal="1,A" />
                    </switchend>
                </switch>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="873,6076,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="1,A" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="605,2724,86,55">
                <source idx="0" terminal="5,A" />
                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="577,2815,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replysubjectname" type="java.lang.String" />
                    <input variable="CompleteShipRequest" type="org.jdom.Document" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="ERP过账?时" type="java.lang.String" />
                </invoke>
            </otherwise>
        </switch>
    </sequence>
</process>

