<?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="MakeUnDo.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="MaterialPackingServiceUtil" partnerLinkType="bean:MaterialPackingServiceUtil" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialPackingStockInImpl" partnerLinkType="bean:MaterialPackingStockInImpl" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="MaterialShipRequestServiceUtil" partnerLinkType="bean:MaterialShipRequestServiceUtil" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="XmlUtil" partnerLinkType="bean:XmlUtil" />
    </partnerLinks>
    <variables>
        <variable name="acctype" messageType="java.lang.String"></variable>
        <variable name="Confirmed" messageType="java.lang.String"></variable>
        <variable name="erpEventTime" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVETIME')" />
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REACODE')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventName" messageType="java.lang.String"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="index" messageType="int"></variable>
        <variable name="invoice" messageType="java.lang.String"></variable>
        <variable name="itemElement" messageType="org.jdom.Element"></variable>
        <variable name="itemList" messageType="java.util.List"></variable>
        <variable name="MakeMaterialPreScrapedDrift" messageType="java.lang.String"></variable>
        <variable name="MakeMaterialScrapedDrift" messageType="java.lang.String"></variable>
        <variable name="MakeReturnDrift" messageType="java.lang.String"></variable>
        <variable name="MakeUnship" messageType="java.lang.String"></variable>
        <variable name="materialPackingList" messageType="java.util.List"></variable>
        <variable name="materialPackingMakeUnScrappedInfo" messageType="com.cim.idm.wmspackage.materialpacking.management.info.MaterialPackingMakeUnScrappedInfo"></variable>
        <variable name="materialQuantity" messageType="java.lang.String"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="messageid" messageType="java.lang.String"></variable>
        <variable name="MESSender" messageType="java.lang.String"></variable>
        <variable name="newUnDoId" messageType="java.lang.String"></variable>
        <variable name="newUnDoList" messageType="java.util.List"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/UndoItemInfo/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/UndoItemInfo/REASONCODETYPE')" />
        <variable name="receiveActNo" messageType="java.lang.String"></variable>
        <variable name="receiveRequestNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/RECEIVEREQUESTNAME')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="requestDetailName" messageType="java.lang.String"></variable>
        <variable name="requestDetailNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/REQUESTDETAILNAME')" />
        <variable name="requestName" messageType="java.lang.String"></variable>
        <variable name="requestNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/REQUESTNAME')" />
        <variable name="shipRequestNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String"></variable>
        <variable name="siteNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/SITENAME')" />
        <variable name="toMESCancelMessage" messageType="org.jdom.Document"></variable>
        <variable name="unDoDetailName" messageType="java.lang.String"></variable>
        <variable name="unDoDetailNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/UNDODETAILNAME')" />
        <variable name="unDoFactoryNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/ERPFACTORY')" />
        <variable name="unDoId" messageType="java.lang.String"></variable>
        <variable name="unDoIdDateList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/UndoItemInfo/UNDOIDDATE')" />
    </variables>
    <sequence>
        <receive name="MakeUnDo" bounds="70,30,140,75">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <expression name="expression" type="expression" bounds="70,135,140,62">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('itemList', getElementList('message', '//Message/Body/UndoItemInfo'))" />
        </expression>
        <while name="while" bounds="124,227,32,49" type="2" collection="itemList" element="itemElement">
            <source idx="0" terminal="5,A" />
            <whilestart name="whilestart" type="whilestart" bounds="85,306,110,49">
                <source idx="0" terminal="5,A" />
            </whilestart>
            <expression name="expression" type="expression" bounds="70,385,140,62">
                <source idx="0" terminal="5,A" />
                <function value="setVariable('siteName',getXmlData('itemElement','//SITENAME'))" />
                <function value="setVariable('unDoId',getXmlData('message', '//Message/Body/UNDOID'))" />
                <function value="setVariable('materialQuantity',getXmlData('itemElement','//MATERIALQUANTITY'))" />
                <function value="setVariable('eventName',getXmlData('itemElement','//LASTEVENTNAME'))" />
                <function value="setVariable('unDoDetailName',getXmlData('itemElement','//UNDODETAILNAME'))" />
            </expression>
            <invoke name="MaterialPackingServiceUtil checkUnDoCondition" type="invokebean" description="public boolean checkUnDoCondition(java.lang.String siteName, java.lang.String unDoID, java.lang.String materialQuantity, java.lang.String unDoDetailName, java.lang.String eventName)" bounds="56,477,168,102" partnerLink="MaterialPackingServiceUtil" partnerLinkType="MaterialPackingServiceUtil" operation="checkUnDoCondition" operationDesc="public boolean checkUnDoCondition(java.lang.String siteName, java.lang.String unDoID, java.lang.String materialQuantity, java.lang.String unDoDetailName, java.lang.String eventName)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="siteName" type="java.lang.String" />
                <input variable="unDoId" type="java.lang.String" />
                <input variable="materialQuantity" type="java.lang.String" />
                <input variable="unDoDetailName" type="java.lang.String" />
                <input variable="eventName" type="java.lang.String" />
            </invoke>
            <whileend name="whileend" type="whileend" bounds="1908,599,110,49">
                <source idx="0" terminal="5,A" />
            </whileend>
        </while>
        <switch name="switch" bounds="1947,678,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="1908,757,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='MakeMaterialScraped'" bounds="250,836,32,49">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="196,915,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="196,1050,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="196,1185,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="196,1320,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="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="185,1455,162,102" 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="MakeMaterialScrapedDrift" 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="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="196,1587,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="250,1722,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="211,1801,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="111,1880,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="70,1979,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="messageid" type="java.lang.String" />
                        </invoke>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="70,2114,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="70,2249,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 makeUnDo" type="invokebean" description="public void makeUnDo(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList)" bounds="12,2384,257,102" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnDo" operationDesc="public void makeUnDo(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="erpEventTime" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="359,1880,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="322,1959,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='MakeMaterialPreScraped'" bounds="668,836,70,56">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="633,922,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="633,1057,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="633,1192,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="633,1327,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="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="621,1462,165,102" 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="MakeMaterialPreScrapedDrift" 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="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="633,1594,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="687,1729,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="648,1808,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="571,1887,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="530,1986,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="messageid" type="java.lang.String" />
                        </invoke>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="530,2121,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="530,2256,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 makeUnPreScrapped" type="invokebean" description="public void makeUnPreScrapped(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList)" bounds="530,2391,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnPreScrapped" operationDesc="public void makeUnPreScrapped(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="erpEventTime" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="773,1887,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="736,1966,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='CompleteShipRequest'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDAStockOut'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDAPreStockOut'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='MESSTOCKOUT'" bounds="1085,836,60,31">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="1045,897,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="1045,1032,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="1045,1167,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="1045,1302,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="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="1033,1437,165,102" 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="MakeUnship" 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="MaterialShipRequestServiceUtil getMaterialShiprequestByUndoID" type="invokebean" description="public java.lang.String getMaterialShiprequestByUndoID(java.lang.String UndoID)" bounds="1045,1569,141,105" partnerLink="MaterialShipRequestServiceUtil" partnerLinkType="MaterialShipRequestServiceUtil" operation="getMaterialShiprequestByUndoID" operationDesc="public java.lang.String getMaterialShiprequestByUndoID(java.lang.String UndoID)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <output variable="requestName" />
                </invoke>
                <switch name="switch" bounds="1099,1704,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="1060,1783,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('reasonCodeType') =  'Y06'" bounds="982,1862,54,60">
                        <source idx="0" terminal="5,A" />
                        <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="939,1952,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="requestName" type="java.lang.String" />
                            <input constant="Confirmed" type="java.lang.String" />
                        </invoke>
                        <invoke name="MaterialPackingServiceImpl cancleStockOutState" type="invokebean" description="public void cancleStockOutState(com.cim.idm.framework.data.EventInfo eventinfo, java.lang.String Undoid, java.lang.String siteName, java.util.List unDoDetailNameList)" bounds="939,2087,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="cancleStockOutState" operationDesc="public void cancleStockOutState(com.cim.idm.framework.data.EventInfo eventinfo, java.lang.String Undoid, java.lang.String siteName, java.util.List unDoDetailNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="1279,1862,81,48">
                        <source idx="0" terminal="5,A" />
                        <invoke name="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="1249,1940,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="unDoIdDateList" type="java.util.List" />
                            <input variable="unDoFactoryNameList" type="java.util.List" />
                            <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="siteName" type="java.lang.String" />
                            <output variable="newUnDoList" />
                        </invoke>
                        <switch name="switch" bounds="1303,2075,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="1264,2154,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="1182,2234,59,69">
                                <source idx="0" terminal="5,A" />
                                <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="1152,2332,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="unDoId" type="java.lang.String" />
                                    <input variable="unDoDetailNameList" type="java.util.List" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                    <input variable="siteName" type="java.lang.String" />
                                    <input variable="messageid" type="java.lang.String" />
                                </invoke>
                                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1152,2467,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="1152,2602,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 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="1152,2737,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="requestName" type="java.lang.String" />
                                    <input constant="Confirmed" type="java.lang.String" />
                                </invoke>
                                <invoke name="MaterialPackingServiceImpl makeUnShip" type="invokebean" description="public void makeUnShip(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList)" bounds="1152,2872,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnShip" operationDesc="public void makeUnShip(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                    <input variable="newUnDoList" type="java.util.List" />
                                    <input variable="unDoId" type="java.lang.String" />
                                    <input variable="siteNameList" type="java.util.List" />
                                    <input variable="unDoDetailNameList" type="java.util.List" />
                                </invoke>
                                <switch name="switch" bounds="1225,3005,33,33" type="switch">
                                    <source idx="0" terminal="5,A" />
                                    <switchstart name="switchstart" type="switchstart" bounds="1175,3054,110,49">
                                        <source idx="0" terminal="5,A" />
                                    </switchstart>
                                    <otherwise name="otherwise" type="otherwise" bounds="1099,3119,88,44">
                                        <source idx="0" terminal="5,A" />
                                    </otherwise>
                                    <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='MESSTOCKOUT'" bounds="1274,3115,75,58">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="MaterialPackingServiceImpl GenerateCarrierIDmsg" type="invokebean" description="public org.jdom.Document GenerateCarrierIDmsg(java.lang.String siteName, java.lang.String requestName)" bounds="1210,3226,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="GenerateCarrierIDmsg" operationDesc="public org.jdom.Document GenerateCarrierIDmsg(java.lang.String siteName, java.lang.String requestName)" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                            <input variable="siteName" type="java.lang.String" />
                                            <input variable="requestName" type="java.lang.String" />
                                            <output variable="toMESCancelMessage" />
                                        </invoke>
                                        <expression name="expression" type="expression" bounds="1209,3398,124,87">
                                            <source idx="0" terminal="5,A" />
                                            <function value="addElement('toMESCancelMessage','/Message/Body','INVOICENO',getVariable('requestName'))" />
                                            <function value="addElement('toMESCancelMessage','/Message/Header','ORIGINALSOURCESUBJECTNAME',getVariable('replySubjectName'))" />
                                        </expression>
                                        <invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="1159,3529,214,88" 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="toMESCancelMessage" type="org.jdom.Document" />
                                            <input constant="MESSender" type="java.lang.String" />
                                        </invoke>
                                    </case>
                                    <switchend name="switchend" type="switchend" bounds="931,3365,110,49">
                                        <source idx="0" terminal="5,A" />
                                        <source idx="1" terminal="5,A" />
                                    </switchend>
                                </switch>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="1383,2233,66,49">
                                <source idx="0" terminal="5,A" />
                                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1346,2312,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                </invoke>
                            </otherwise>
                        </switch>
                    </otherwise>
                    <switchend name="switchend" type="switchend" bounds="419,3518,110,49">
                        <source idx="0" terminal="5,A" />
                        <source idx="1" terminal="5,A" />
                    </switchend>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='RefundStockIn'&#xA; or &#xA;getXmlData('itemElement','//LASTEVENTNAME')='NormalStockIn'&#xA; or &#xA;getXmlData('itemElement','//LASTEVENTNAME')='BMDTOEMStockIn'&#xA;or&#xA;getXmlData('itemElement','//LASTEVENTNAME')='MESStockIn'&#xA;or&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PCBANormalStockIn'&#xA;or&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDAPCBANormalStockIn'&#xA;or&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDANormalStockIn'" bounds="1933,836,60,58">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="1893,924,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="1893,1059,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="1893,1194,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="1893,1329,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="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="1881,1464,165,102" 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="MakeUnStockIn" 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="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="1893,1596,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="1947,1731,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="1908,1810,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="1752,1889,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="1711,1988,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="messageid" type="java.lang.String" />
                        </invoke>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1711,2123,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="1711,2258,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="MaterialPackingStockInImpl GetActType" type="invokebean" description="public java.lang.String GetActType(java.lang.String UnDoID, java.util.List siteNameList)" bounds="1711,2393,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="GetActType" operationDesc="public java.lang.String GetActType(java.lang.String UnDoID, java.util.List siteNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <output variable="acctype" />
                        </invoke>
                        <invoke name="CommonValidation print" type="invokebean" description="public void print(java.lang.Object obj)" bounds="1711,2528,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="print" operationDesc="public void print(java.lang.Object obj)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="acctype" type="java.lang.Object" />
                        </invoke>
                        <invoke name="MaterialPackingStockInImpl GetCancelReceiveActNo" type="invokebean" description="public java.lang.String GetCancelReceiveActNo(java.lang.String UnDoID, java.lang.String siteName)" bounds="1711,2663,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="GetCancelReceiveActNo" operationDesc="public java.lang.String GetCancelReceiveActNo(java.lang.String UnDoID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteName" type="java.lang.String" />
                            <output variable="receiveActNo" />
                        </invoke>
                        <invoke name="CommonValidation print" type="invokebean" description="public void print(java.lang.Object obj)" bounds="1711,2798,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="print" operationDesc="public void print(java.lang.Object obj)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="receiveActNo" type="java.lang.Object" />
                        </invoke>
                        <invoke name="MaterialPackingStockInImpl makeUnStockInUsedInCancel" type="invokebean" description="public void makeUnStockInUsedInCancel(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList, java.lang.String receiveActNo, java.lang.String acttype)" bounds="1711,2933,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="makeUnStockInUsedInCancel" operationDesc="public void makeUnStockInUsedInCancel(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList, 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="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="receiveActNo" type="java.lang.String" />
                            <input variable="acctype" type="java.lang.String" />
                        </invoke>
                        <switch name="switch" bounds="1752,3068,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="1726,3147,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='MESStockIn'" bounds="1614,3226,60,58">
                                <source idx="0" terminal="5,A" />
                                <invoke name="MaterialShipRequestServiceUtil getMESMaterialShiprequestByUndoID" type="invokebean" description="public java.lang.String getMESMaterialShiprequestByUndoID(java.lang.String UndoID)" bounds="1723,3334,141,105" partnerLink="MaterialShipRequestServiceUtil" partnerLinkType="MaterialShipRequestServiceUtil" operation="getMESMaterialShiprequestByUndoID" operationDesc="public java.lang.String getMESMaterialShiprequestByUndoID(java.lang.String UndoID)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="unDoId" type="java.lang.String" />
                                    <output variable="requestName" />
                                </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="1741,3449,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="requestName" type="java.lang.String" />
                                    <input constant="Created" type="java.lang.String" />
                                </invoke>
                                <invoke name="MaterialPackingStockInImpl GetMESStockInInvioce" type="invokebean" description="public java.lang.String GetMESStockInInvioce(java.util.List newUnDoList, java.util.List siteNameList)" bounds="1554,3314,180,94" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="GetMESStockInInvioce" operationDesc="public java.lang.String GetMESStockInInvioce(java.util.List newUnDoList, java.util.List siteNameList)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="newUnDoList" type="java.util.List" />
                                    <input variable="siteNameList" type="java.util.List" />
                                    <output variable="invoice" />
                                </invoke>
                                <invoke name="XmlUtil clone" type="invokebean" description="public org.jdom.Document clone(org.jdom.Document doc)" bounds="1594,3438,117,80" 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="message" type="org.jdom.Document" />
                                    <output variable="toMESCancelMessage" />
                                </invoke>
                                <expression name="expression" type="expression" bounds="1582,3533,124,87">
                                    <source idx="0" terminal="5,A" />
                                    <function value="setXmlData('toMESCancelMessage','/Message/Header/MESSAGENAME','ReturnMaterialCancelReport')" />
                                    <function value="removeElement('toMESCancelMessage','/Message/Body')" />
                                    <function value="addChildNode('toMESCancelMessage','/Message',createNode('Body',''))" />
                                    <function value="addElement('toMESCancelMessage','/Message/Body','SHIPREQUESTNAME',getVariable('invoice'))" />
                                </expression>
                                <invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="1537,3640,214,88" 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="toMESCancelMessage" type="org.jdom.Document" />
                                    <input constant="MESSender" type="java.lang.String" />
                                </invoke>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="1875,3226,88,19">
                                <source idx="0" terminal="5,A" />
                                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="1815,3275,223,116" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                </invoke>
                            </otherwise>
                            <switchend name="switchend" type="switchend" bounds="1726,3758,110,49">
                                <source idx="0" terminal="5,A" />
                                <source idx="1" terminal="5,A" />
                            </switchend>
                        </switch>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="2113,1889,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="2076,1968,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='StockOutToOEM'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDAStockOutToOEM'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='INNERStockOut'" bounds="2422,836,60,34">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="2382,900,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="2382,1035,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="2382,1170,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="2382,1305,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="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="2370,1440,165,102" 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="MakeUnshipToOEM" 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="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="2382,1572,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="2436,1707,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="2397,1786,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="2320,1865,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="2279,1964,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="messageid" type="java.lang.String" />
                        </invoke>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="2279,2099,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="2279,2234,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 makeUnShipToOEM" type="invokebean" description="public void makeUnShipToOEM(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList, java.util.List shipRequestNameList)" bounds="2279,2369,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnShipToOEM" operationDesc="public void makeUnShipToOEM(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList, java.util.List shipRequestNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="shipRequestNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="2522,1865,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="2485,1944,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='RMAModifyMaterialPackingState'&#xD;&#xA; or &#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PoReturn'&#xD;&#xA;or &#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='OEMReturn'" bounds="2900,836,60,30">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="2860,896,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="2860,1031,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="2860,1166,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="2860,1301,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="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="2849,1436,162,102" 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="MakeReturnDrift" 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="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="2860,1568,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="2914,1703,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="2875,1782,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="2775,1861,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingStockInImpl SaveMessageIDToMaterialPackingUsedByUnDO" type="invokebean" description="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" bounds="2734,1960,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="SaveMessageIDToMaterialPackingUsedByUnDO" operationDesc="public void SaveMessageIDToMaterialPackingUsedByUnDO(java.lang.String unDoID, java.util.List unDoDetailNameList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String sitename, java.lang.String messageid)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="siteName" type="java.lang.String" />
                            <input variable="messageid" type="java.lang.String" />
                        </invoke>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="2734,2095,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="2734,2230,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 makeUnDo" type="invokebean" description="public void makeUnDo(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList, java.util.List receiveRequestNameList)" bounds="2676,2365,257,102" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnDo" operationDesc="public void makeUnDo(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.lang.String erpEventTime, java.util.List siteNameList, java.util.List unDoDetailNameList, java.util.List receiveRequestNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="erpEventTime" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="receiveRequestNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="3023,1861,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="2986,1940,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <case name="case" type="case" condition="getXmlData('itemElement','//LASTEVENTNAME')='PreShipRequestDetailStockOut'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PreShipRequestDetailStockOutForSMT'&#xD;&#xA;or&#xD;&#xA;getXmlData('itemElement','//LASTEVENTNAME')='PDAShipRequestDetailStockOutForSMT'" bounds="3332,836,60,54">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="3292,920,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="3292,1055,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" 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="3292,1190,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="3292,1325,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="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="3280,1460,165,102" 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="MakeUnship" 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="MaterialShipRequestServiceUtil getMaterialShiprequestByUndoID" type="invokebean" description="public java.lang.String getMaterialShiprequestByUndoID(java.lang.String UndoID)" bounds="3292,1592,141,105" partnerLink="MaterialShipRequestServiceUtil" partnerLinkType="MaterialShipRequestServiceUtil" operation="getMaterialShiprequestByUndoID" operationDesc="public java.lang.String getMaterialShiprequestByUndoID(java.lang.String UndoID)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <output variable="requestName" />
                </invoke>
                <invoke name="ERPInterfaceServiceImpl erpInterface_WMS22ForERPAccount" type="invokebean" description="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" bounds="3292,1727,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS22ForERPAccount" operationDesc="public static java.util.List erpInterface_WMS22ForERPAccount(java.lang.String unDoID, java.util.List unDoDetailNameList, java.util.List unDoIdDateList, java.util.List unDoFactoryNameList, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="unDoId" type="java.lang.String" />
                    <input variable="unDoDetailNameList" type="java.util.List" />
                    <input variable="unDoIdDateList" type="java.util.List" />
                    <input variable="unDoFactoryNameList" type="java.util.List" />
                    <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="siteName" type="java.lang.String" />
                    <output variable="newUnDoList" />
                </invoke>
                <switch name="switch" bounds="3346,1862,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="3307,1941,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getListSize('newUnDoList') &gt; 0" bounds="3230,2020,59,69">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="3189,2119,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="3189,2254,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 makeUnBind" type="invokebean" description="public void makeUnBind(java.lang.String UnDoID, java.util.List unDoDetailNameList, java.lang.String siteName)" bounds="3189,2389,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeUnBind" operationDesc="public void makeUnBind(java.lang.String UnDoID, java.util.List unDoDetailNameList, java.lang.String siteName)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                            <input variable="siteName" type="java.lang.String" />
                        </invoke>
                        <invoke name="MaterialPackingServiceImpl makePreUnShip" type="invokebean" description="public void makePreUnShip(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList)" bounds="3189,2524,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makePreUnShip" operationDesc="public void makePreUnShip(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List newUnDoList, java.lang.String UnDoID, java.util.List siteNameList, java.util.List unDoDetailNameList)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="newUnDoList" type="java.util.List" />
                            <input variable="unDoId" type="java.lang.String" />
                            <input variable="siteNameList" type="java.util.List" />
                            <input variable="unDoDetailNameList" type="java.util.List" />
                        </invoke>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="3432,2020,66,49">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="3395,2099,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <switchend name="switchend" type="switchend" bounds="211,3827,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" />
                <source idx="4" terminal="5,A" />
                <source idx="5" terminal="5,A" />
                <source idx="6" terminal="5,A" />
            </switchend>
        </switch>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="185,3906,162,103" 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(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="196,4039,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replySubjectName" type="java.lang.String" />
            <input variable="message" type="org.jdom.Document" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

