<?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="CompleteShipRequestforFAB.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="MaterialPackingStockInImpl" partnerLinkType="bean:MaterialPackingStockInImpl" />
        <partnerLink name="StorageServiceImpl" partnerLinkType="bean:StorageServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="actType" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/ACTTYPE')" />
        <variable name="B2TOB7" messageType="java.lang.String"></variable>
        <variable name="boxCount" messageType="java.lang.String"></variable>
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="boxName" messageType="org.jdom.Element"></variable>
        <variable name="chargeForB" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/WORKORDERID')" />
        <variable name="Completed" messageType="java.lang.String"></variable>
        <variable name="CompleteShipRequest" messageType="org.jdom.Document"></variable>
        <variable name="Deliverytype" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/DELIVERYTYPE')" />
        <variable name="DetailList" messageType="java.util.List"></variable>
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="EN" messageType="java.lang.String"></variable>
        <variable name="ERP??????" messageType="java.lang.String"></variable>
        <variable name="ERPEventTime" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/RECEIVETIME')" />
        <variable name="ERPLocation" messageType="java.lang.String"></variable>
        <variable name="EventComment" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/EVENTUSER')" />
        <variable name="FABSender" messageType="java.lang.String"></variable>
        <variable name="Language" messageType="java.lang.String"></variable>
        <variable name="locationList" messageType="java.util.List"></variable>
        <variable name="locationName" messageType="org.jdom.Element"></variable>
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/MAKEDATE')" />
        <variable name="materialDoinfo" messageType="com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo"></variable>
        <variable name="materialDoinfoList" messageType="java.util.List"></variable>
        <variable name="materialPacking" messageType="java.lang.Object"></variable>
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="MaterialShipRequest" messageType="com.cim.idm.wmspackage.materialshiprequest.management.data.MaterialShipRequest"></variable>
        <variable name="MDLMES" messageType="java.lang.String"></variable>
        <variable name="messageID" messageType="java.lang.String"></variable>
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/MESSAGENAME')" />
        <variable name="MESSTOCKOUT" messageType="java.lang.String"></variable>
        <variable name="NormalStockIn" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="PMSSender" messageType="java.lang.String"></variable>
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/REASONCODETYPE')" />
        <variable name="receiptor" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/RECEIVER')" />
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/RECEIVEACTNO')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="sendFlag" messageType="java.lang.String"></variable>
        <variable name="shipRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="Shiprequestdetailtype" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/SHIPREQUESTDETAILTYPE')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="ShipToMDLMaterialReport" messageType="java.lang.String"></variable>
        <variable name="shiptoMESMessage" messageType="org.jdom.Document"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//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="systemType" messageType="java.lang.String"></variable>
        <variable name="toPMSMessage" messageType="org.jdom.Document"></variable>
        <variable name="TRANSACTIONID" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/TRANSACTIONID')" />
        <variable name="unDoDetailName" messageType="java.lang.String"></variable>
        <variable name="unDoID" messageType="java.lang.String"></variable>
        <variable name="unDoIdDate" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="CompleteShipRequest" bounds="70,30,149,62">
            <input variable="CompleteShipRequest" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,122,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="74,257,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="74,392,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="74,527,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="74,662,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="74,797,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="74,932,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="74,1067,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="74,1202,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>
        <invoke name="MaterialPackingServiceImpl MaterialPackingStockOut_15SEQ" type="invokebean" description="public void MaterialPackingStockOut_15SEQ(java.util.List materialPackingKeyList, java.lang.String siteName, java.lang.String invoiceNo)" bounds="74,1337,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="MaterialPackingStockOut_15SEQ" operationDesc="public void MaterialPackingStockOut_15SEQ(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>
        <switch name="switch" bounds="128,1472,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="89,1551,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getField(getVariable('MaterialShipRequest'), 'systemType')='OIC'&#xA; or &#xA;getField(getVariable('MaterialShipRequest'), 'systemType')='MES'&#xA; or &#xA;getField(getVariable('MaterialShipRequest'), 'systemType')='MESCALL'" bounds="107,1630,74,66">
                <source idx="0" terminal="5,A" />
                <invoke name="ERPInterfaceServiceImpl erpInterface_WMS19ForStockOutForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS19ForStockOutForERPAccount(java.lang.String shipType, java.lang.String shipRequestName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo)" bounds="74,1726,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS19ForStockOutForERPAccount" operationDesc="public static java.util.List erpInterface_WMS19ForStockOutForERPAccount(java.lang.String shipType, java.lang.String shipRequestName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="Shiprequestdetailtype" type="java.lang.String" />
                    <input variable="shipRequestName" type="java.lang.String" />
                    <input variable="ERPEventTime" 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" />
                    <output variable="materialDoinfoList" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="305,1630,92,73">
                <source idx="0" terminal="5,A" />
                <invoke name="ERPInterfaceServiceImpl erp_StockOut_WMS15ForERPAccount" type="invokebean" description="public static java.util.List erp_StockOut_WMS15ForERPAccount(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo, java.lang.String erpEventTime, java.lang.String messageID, java.lang.String chargeForB)" bounds="281,1733,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockOut_WMS15ForERPAccount" operationDesc="public static java.util.List erp_StockOut_WMS15ForERPAccount(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo, java.lang.String erpEventTime, java.lang.String messageID, java.lang.String chargeForB)" 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="receiveActNo" type="java.lang.String" />
                    <input variable="ERPEventTime" type="java.lang.String" />
                    <input variable="messageID" type="java.lang.String" />
                    <input variable="chargeForB" type="java.lang.String" />
                    <output variable="materialDoinfoList" />
                </invoke>
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="89,1858,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="74,1937,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <switch name="switch" bounds="128,2072,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="89,2151,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' &#xD;&#xA;or  getListSize('materialDoinfoList') &gt;0" bounds="114,2230,60,32">
                <source idx="0" terminal="5,A" />
                <switch name="switch" bounds="128,2292,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="89,2371,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getField(getVariable('MaterialShipRequest'), 'systemType')='MESCALL'" bounds="114,2450,60,57">
                        <source idx="0" terminal="5,A" />
                        <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="74,2537,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="MESSTOCKOUT" type="java.lang.String" />
                            <input constant="FABMES" 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>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="280,2507,88,46">
                        <source idx="0" terminal="5,A" />
                    </otherwise>
                    <switchend name="switchend" type="switchend" bounds="89,2662,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A" />
                    </switchend>
                </switch>
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,2741,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="74,2876,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>
                <invoke name="MaterialPackingServiceImpl updateMaterialPackingStockOut" type="invokebean" description="public void updateMaterialPackingStockOut(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingKeyList, java.lang.String stockState, java.lang.String erpEventTime, java.lang.String eventUser, java.lang.String eventComment, java.lang.String receiveActNo)" bounds="74,3011,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="updateMaterialPackingStockOut" operationDesc="public void updateMaterialPackingStockOut(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingKeyList, java.lang.String stockState, java.lang.String erpEventTime, java.lang.String eventUser, java.lang.String eventComment, java.lang.String receiveActNo)" 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="boxList" type="java.util.List" />
                    <input constant="StockOut" type="java.lang.String" />
                    <input variable="ERPEventTime" type="java.lang.String" />
                    <input variable="eventUser" type="java.lang.String" />
                    <input variable="EventComment" type="java.lang.String" />
                    <input variable="receiveActNo" type="java.lang.String" />
                </invoke>
                <invoke name="MaterialPackingStockInImpl updataPalletStateByPC" type="invokebean" description="public void updataPalletStateByPC(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String shipRequestName)" bounds="74,3146,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="updataPalletStateByPC" operationDesc="public void updataPalletStateByPC(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String shipRequestName)" 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="receiveActNo" type="java.lang.String" />
                    <input variable="shipRequestName" type="java.lang.String" />
                </invoke>
                <while name="while" bounds="128,3281,32,32" type="2" collection="locationList" element="storageName">
                    <source idx="0" terminal="5,A" />
                    <whilestart name="whilestart" type="whilestart" bounds="89,3360,110,49">
                        <source idx="0" terminal="5,A" />
                    </whilestart>
                    <invoke name="StorageServiceImpl changeUserStateByBoxList" type="invokebean" description="public void changeUserStateByBoxList(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String storageName)" bounds="74,3439,141,105" partnerLink="StorageServiceImpl" partnerLinkType="StorageServiceImpl" operation="changeUserStateByBoxList" operationDesc="public void changeUserStateByBoxList(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String storageName)" 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="storageName" type="java.lang.String" />
                    </invoke>
                    <whileend name="whileend" type="whileend" bounds="89,3564,110,49">
                        <source idx="0" terminal="5,A" />
                    </whileend>
                </while>
                <invoke name="MaterialPackingServiceImpl insertStockOutInfo" type="invokebean" description="public void insertStockOutInfo(java.util.List materialUnDoinfoList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo)" bounds="74,3643,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="insertStockOutInfo" operationDesc="public void insertStockOutInfo(java.util.List materialUnDoinfoList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="materialDoinfoList" type="java.util.List" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="receiveActNo" type="java.lang.String" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,3778,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="74,3913,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="CompleteShipRequest" type="org.jdom.Document" />
                    <input variable="returnElement" type="org.jdom.Element" />
                    <input constant="OICSender" type="java.lang.String" />
                </invoke>
                <switch name="switch" bounds="128,4048,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="89,4127,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getField(getVariable('MaterialShipRequest'), 'systemType')='MESCALL'" bounds="114,4206,60,59">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingServiceImpl GenerateShipToFABMESmsg" type="invokebean" description="public org.jdom.Document GenerateShipToFABMESmsg(java.lang.String siteName, java.lang.String shipRequestName, java.lang.String replySubJectName)" bounds="74,4295,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="GenerateShipToFABMESmsg" operationDesc="public org.jdom.Document GenerateShipToFABMESmsg(java.lang.String siteName, java.lang.String shipRequestName, java.lang.String replySubJectName)" 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="replysubjectname" type="java.lang.String" />
                            <output variable="shiptoMESMessage" />
                        </invoke>
                        <expression name="expression" type="expression" bounds="74,4430,141,65">
                            <source idx="0" terminal="5,A" />
                            <function value="addElement('shiptoMESMessage','/Message/Header','SOURCESUBJECTNAME',getVariable('replysubjectname'))" />
                            <function value="addElement('shiptoMESMessage','/Message/Header','TARGETSUBJECTNAME',getVariable('replysubjectname'))" />
                        </expression>
                        <invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="74,4525,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendByMesSender" operationDesc="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="shiptoMESMessage" type="org.jdom.Document" />
                            <input constant="FABSender" type="java.lang.String" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="306,4212,88,69">
                        <source idx="0" terminal="5,A" />
                    </otherwise>
                    <switchend name="switchend" type="switchend" bounds="89,4650,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A">
                            <BendPoint FirstRelative="-38,306" SecondRelative="168,-64" weight="0.5" />
                        </source>
                    </switchend>
                </switch>
                <terminate name="terminate" bounds="74,4729,141,65">
                    <source idx="0" terminal="5,A" />
                </terminate>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="321,2208,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="294,2293,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>

