<?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="14790.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialReceiveRequestServiceImpl" partnerLinkType="bean:MaterialReceiveRequestServiceImpl" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="0001" messageType="java.lang.String"></variable>
        <variable name="10001" messageType="java.lang.String"></variable>
        <variable name="101" messageType="java.lang.String"></variable>
        <variable name="300" messageType="int"></variable>
        <variable name="bldat" messageType="java.lang.String"></variable>
        <variable name="budat" messageType="java.lang.String"></variable>
        <variable name="bwart" messageType="java.lang.String"></variable>
        <variable name="bwtar" messageType="java.lang.String"></variable>
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="ebeln" messageType="java.lang.String"></variable>
        <variable name="ebelp" messageType="java.lang.String"></variable>
        <variable name="erpMessageItemListSize" messageType="int"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="GetInspectedList" messageType="java.lang.String"></variable>
        <variable name="insmk" messageType="java.lang.String"></variable>
        <variable name="itemElement" messageType="org.jdom.Element"></variable>
        <variable name="itemList" messageType="java.util.List"></variable>
        <variable name="mblnr" messageType="java.lang.String"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="messageid" messageType="java.lang.String"></variable>
        <variable name="messageName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/MESSAGENAME')" />
        <variable name="mjahr" messageType="java.lang.String"></variable>
        <variable name="NormalStockIn" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="oplist" messageType="java.util.List"></variable>
        <variable name="posnr" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DATALIST/MATERIALSHIPREQUESTDETAILFORSI/RECEIVEACTNO')" />
        <variable name="receiveDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ReceiveRequest/RECEIVETIME')" />
        <variable name="receiveRequestType" messageType="java.lang.String"></variable>
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="seq" messageType="java.lang.String"></variable>
        <variable name="shipRequestDetailType" messageType="java.lang.String"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/SITENAME')" />
        <variable name="toerplist" messageType="java.util.List"></variable>
        <variable name="tqmslist" messageType="java.util.List"></variable>
        <variable name="undolist" messageType="java.util.List"></variable>
        <variable name="zeile" messageType="java.lang.String"></variable>
        <variable name="zfLotno" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="14790" bounds="647,3,149,62">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="651,116,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <expression name="expression" type="expression" bounds="651,257,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('itemList', getElementList('message', '//item'))" />
        </expression>
        <expression name="expression" type="expression" bounds="649,367,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('erpMessageItemListSize', getListSize('itemList'))" />
        </expression>
        <switch name="switch" bounds="704,477,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="669,566,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('erpMessageItemListSize') &lt; 15010" bounds="566,638,60,53">
                <source idx="0" terminal="5,A" />
                <while name="while" bounds="581,735,32,32" type="2" collection="itemList" element="itemElement">
                    <source idx="0" terminal="5,A" />
                    <whilestart name="whilestart" type="whilestart" bounds="541,804,110,49">
                        <source idx="0" terminal="5,A" />
                    </whilestart>
                    <expression name="expression" type="expression" bounds="527,917,141,65">
                        <source idx="0" terminal="5,A" />
                        <function value="setVariable('mblnr',getXmlData('itemElement','//MBLNR'))" />
                        <function value="setVariable('zeile',getXmlData('itemElement','//ZEILE'))" />
                        <function value="setVariable('ebeln',getXmlData('itemElement','//EBELN'))" />
                        <function value="setVariable('ebelp',getXmlData('itemElement','//EBELP'))" />
                        <function value="setVariable('posnr',getXmlData('itemElement','//POSNR'))" />
                        <function value="setVariable('bwart',getXmlData('itemElement','//BWART'))" />
                        <function value="setVariable('bldat',getXmlData('itemElement','//BLDAT'))" />
                        <function value="setVariable('budat',getXmlData('itemElement','//BUDAT'))" />
                        <function value="setVariable('insmk',getXmlData('itemElement','//INSMK'))" />
                        <function value="setVariable('seq',getXmlData('itemElement','//SEQ'))" />
                        <function value="setVariable('bwtar',getXmlData('itemElement','//BWTAR'))" />
                        <function value="setVariable('zfLotno',getXmlData('itemElement','//ZF_LOTNO'))" />
                        <function value="setVariable('mjahr',getXmlData('itemElement','//MJAHR'))" />
                    </expression>
                    <invoke name="MaterialReceiveRequestServiceImpl selectMaterialReceiveRequestInfo" type="invokebean" description="public java.lang.String selectMaterialReceiveRequestInfo(java.lang.String siteName, java.lang.String receiveRequestName)" bounds="523,1020,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="selectMaterialReceiveRequestInfo" operationDesc="public java.lang.String selectMaterialReceiveRequestInfo(java.lang.String siteName, java.lang.String receiveRequestName)" ignoreThrow="false" fork="false">
                        <source idx="0" terminal="5,A" />
                        <input variable="siteName" type="java.lang.String" />
                        <input variable="ebeln" type="java.lang.String" />
                        <output variable="receiveRequestType" />
                    </invoke>
                    <switch name="switch" bounds="579,1231,33,33" type="switch">
                        <source idx="0" terminal="5,A" />
                        <switchstart name="switchstart" type="switchstart" bounds="542,1329,110,49">
                            <source idx="0" terminal="5,A" />
                        </switchstart>
                        <case name="case" type="case" condition="getVariable('receiveRequestType') = 'ZTB4'" bounds="270,1454,60,53">
                            <source idx="0" terminal="5,A" />
                            <invoke name="ERPInterfaceServiceImpl erp_StockIn_14790ReveiveRequestTypeZTB4" type="invokebean" description="public static java.util.List erp_StockIn_14790(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ebeln, java.lang.String ebelp, java.lang.String posnr, java.lang.String bwart, java.lang.String bldat, java.lang.String budat, java.lang.String insmk, java.lang.String mblnr, java.lang.String mjahr, java.lang.String zeile, java.lang.String seq, java.lang.String bwtar, java.lang.String zfLotno)" bounds="230,1559,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockIn_14790ReveiveRequestTypeZTB4" operationDesc="public static void erp_StockIn_14790ReveiveRequestTypeZTB4(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ebeln, java.lang.String ebelp, java.lang.String posnr, java.lang.String bwart, java.lang.String bldat, java.lang.String budat, java.lang.String insmk, java.lang.String mblnr, java.lang.String mjahr, java.lang.String zeile, java.lang.String seq, java.lang.String bwtar, java.lang.String zfLotno)" ignoreThrow="false" fork="false">
                                <source idx="0" terminal="5,A" />
                                <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                <input variable="ebeln" type="java.lang.String" />
                                <input variable="ebelp" type="java.lang.String" />
                                <input variable="posnr" type="java.lang.String" />
                                <input variable="bwart" type="java.lang.String" />
                                <input variable="bldat" type="java.lang.String" />
                                <input variable="budat" type="java.lang.String" />
                                <input variable="insmk" type="java.lang.String" />
                                <input variable="mblnr" type="java.lang.String" />
                                <input variable="mjahr" type="java.lang.String" />
                                <input variable="zeile" type="java.lang.String" />
                                <input variable="seq" type="java.lang.String" />
                                <input variable="bwtar" type="java.lang.String" />
                                <input variable="zfLotno" type="java.lang.String" />
                            </invoke>
                        </case>
                        <otherwise name="otherwise" type="otherwise" bounds="553,1451,88,48">
                            <source idx="0" terminal="5,A" />
                            <invoke name="ERPInterfaceServiceImpl erp_StockIn_14790" type="invokebean" description="public static java.util.List erp_StockIn_14790(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ebeln, java.lang.String ebelp, java.lang.String posnr, java.lang.String bwart, java.lang.String bldat, java.lang.String budat, java.lang.String insmk, java.lang.String mblnr, java.lang.String mjahr, java.lang.String zeile, java.lang.String seq, java.lang.String bwtar, java.lang.String zfLotno)" bounds="526,1565,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockIn_14790" operationDesc="public static void erp_StockIn_14790(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ebeln, java.lang.String ebelp, java.lang.String posnr, java.lang.String bwart, java.lang.String bldat, java.lang.String budat, java.lang.String insmk, java.lang.String mblnr, java.lang.String mjahr, java.lang.String zeile, java.lang.String seq, java.lang.String bwtar, java.lang.String zfLotno)" ignoreThrow="false" fork="false">
                                <source idx="0" terminal="5,A" />
                                <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                <input variable="ebeln" type="java.lang.String" />
                                <input variable="ebelp" type="java.lang.String" />
                                <input variable="posnr" type="java.lang.String" />
                                <input variable="bwart" type="java.lang.String" />
                                <input variable="bldat" type="java.lang.String" />
                                <input variable="budat" type="java.lang.String" />
                                <input variable="insmk" type="java.lang.String" />
                                <input variable="mblnr" type="java.lang.String" />
                                <input variable="mjahr" type="java.lang.String" />
                                <input variable="zeile" type="java.lang.String" />
                                <input variable="seq" type="java.lang.String" />
                                <input variable="bwtar" type="java.lang.String" />
                                <input variable="zfLotno" type="java.lang.String" />
                            </invoke>
                        </otherwise>
                        <switchend name="switchend" type="switchend" bounds="205,1762,110,49">
                            <source idx="0" terminal="5,A" />
                            <source idx="1" terminal="5,A" />
                        </switchend>
                    </switch>
                    <whileend name="whileend" type="whileend" bounds="539,1727,110,49">
                        <source idx="0" terminal="5,A" />
                    </whileend>
                </while>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="524,1858,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="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="525,2024,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="ERPSender" type="java.lang.String" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="866,649,88,50">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="840,758,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="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="841,912,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replysubjectname" type="java.lang.String" />
                    <input variable="NormalStockIn" type="org.jdom.Document" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="ERP过账?时" type="java.lang.String" />
                </invoke>
            </otherwise>
        </switch>
    </sequence>
</process>

