<?xml version="1.0" encoding="euc-kr"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="14075.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ERPInterfaceServiceUtil" partnerLinkType="bean:ERPInterfaceServiceUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="beg03" messageType="java.lang.String"></variable>
        <variable name="charge" messageType="java.lang.String"></variable>
        <variable name="deliveryTime" messageType="java.lang.String"></variable>
        <variable name="deliveryType" messageType="java.lang.String"></variable>
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="erpFactory" messageType="java.lang.String"></variable>
        <variable name="erpLocation" messageType="java.lang.String"></variable>
        <variable name="erpMessageItemListSize" messageType="int"></variable>
        <variable name="ERPSender" messageType="java.lang.String"></variable>
        <variable name="erpTime" messageType="java.lang.String"></variable>
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="eventComment" messageType="java.lang.String"></variable>
        <variable name="flag" messageType="java.lang.String"></variable>
        <variable name="innerRequest" messageType="java.lang.String"></variable>
        <variable name="innerRequestDetail" messageType="java.lang.String"></variable>
        <variable name="itemElement" messageType="org.jdom.Element"></variable>
        <variable name="itemList" messageType="java.util.List"></variable>
        <variable name="lgmng" messageType="java.lang.String"></variable>
        <variable name="lifex" messageType="java.lang.String"></variable>
        <variable name="loekz" messageType="java.lang.String"></variable>
        <variable name="maktx" messageType="java.lang.String"></variable>
        <variable name="materialQuantity" messageType="java.lang.String"></variable>
        <variable name="materialSpecName" messageType="java.lang.String"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="name1" messageType="java.lang.String"></variable>
        <variable name="receivedQuantity" messageType="java.lang.String">0</variable>
        <variable name="receiveRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="receiveRequestName" messageType="java.lang.String"></variable>
        <variable name="replaysubjectname" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnFlag" messageType="java.lang.String"></variable>
        <variable name="seq" messageType="java.lang.String"></variable>
        <variable name="supplierNO" messageType="java.lang.String"></variable>
        <variable name="umren" messageType="java.lang.String"></variable>
        <variable name="umrez" messageType="java.lang.String"></variable>
        <variable name="unit" messageType="java.lang.String"></variable>
        <variable name="vrkme" messageType="java.lang.String"></variable>
        <variable name="wadat_Ist" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="14075" bounds="174,30,149,62">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="181,114,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="181,241,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('itemList', getElementList('message', '//item'))" />
        </expression>
        <expression name="expression" type="expression" bounds="178,352,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('erpMessageItemListSize', getListSize('itemList'))" />
        </expression>
        <switch name="switch" bounds="232,447,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="193,526,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('erpMessageItemListSize') &lt; 15010" bounds="117,605,55,65">
                <source idx="0" terminal="5,A" />
                <while name="while" bounds="128,700,32,32" type="2" collection="itemList" element="itemElement">
                    <source idx="0" terminal="5,A" />
                    <whilestart name="whilestart" type="whilestart" bounds="89,779,110,49">
                        <source idx="0" terminal="5,A" />
                    </whilestart>
                    <expression name="expression" type="expression" bounds="74,858,141,65">
                        <source idx="0" terminal="5,A" />
                        <function value="setVariable('innerRequest',getXmlData('itemElement','//VBELN'))" />
                        <function value="setVariable('innerRequestDetail',getXmlData('itemElement','//POSNR'))" />
                        <function value="setVariable('receiveRequestName',getXmlData('itemElement','//EBELN'))" />
                        <function value="setVariable('receiveRequestDetailName',getXmlData('itemElement','//EBELP'))" />
                        <function value="setVariable('etens',getXmlData('itemElement','//ETENS'))" />
                        <function value="setVariable('deliveryType',getXmlData('itemElement','//LFART'))" />
                        <function value="setVariable('erpTime',getXmlData('itemElement','//BLDAT'))" />
                        <function value="setVariable('deliveryTime',getXmlData('itemElement','//LFDAT'))" />
                        <function value="setVariable('supplierNO',getXmlData('itemElement','//LIFNR'))" />
                        <function value="setVariable('materialSpecName',getXmlData('itemElement','//MATNR'))" />
                        <function value="setVariable('unit',getXmlData('itemElement','//MEINS'))" />
                        <function value="setVariable('charge',getXmlData('itemElement','//CHARG'))" />
                        <function value="setVariable('erpLocation',getXmlData('itemElement','//LGORT'))" />
                        <function value="setVariable('flag',getXmlData('itemElement','//FLAG'))" />
                        <function value="setVariable('seq',getXmlData('itemElement','//SEQ'))" />
                        <function value="setVariable('erpFactory',getXmlData('itemElement','//WERKS'))" />
                        <function value="setVariable('materialQuantity',getXmlData('itemElement','//LFIMG'))" />
                        <function value="setVariable('name1',getXmlData('itemElement','//NAME1'))" />
                        <function value="setVariable('wadat_Ist',getXmlData('itemElement','//WADAT_IST'))" />
                        <function value="setVariable('maktx',getXmlData('itemElement','//MAKTX'))" />
                        <function value="setVariable('vrkme',getXmlData('itemElement','//VRKME'))" />
                        <function value="setVariable('loekz',getXmlData('itemElement','//LOEKZ'))" />
                        <function value="setVariable('umren',getXmlData('itemElement','//UMREN'))" />
                        <function value="setVariable('umrez',getXmlData('itemElement','//UMREZ'))" />
                        <function value="setVariable('lgmng',getXmlData('itemElement','//LGMNG'))" />
                        <function value="setVariable('lifex',getXmlData('itemElement','//LIFEX'))" />
                        <function value="setVariable('beg03',getXmlData('itemElement','//BEG03'))" />
                    </expression>
                    <invoke name="ERPInterfaceServiceUtil INT_14075" type="invokebean" description="public void INT_PI045(java.lang.String innerRequestName, java.lang.String innerRequestDetailName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String deliveryType, java.lang.String erpTime, java.lang.String deliveryTime, java.lang.String supplierNO, java.lang.String erpFactory, java.lang.String materialSpecName, java.lang.String unit, java.lang.String charge, java.lang.String materialQuantity, java.lang.String erpLocation, java.lang.String flag, java.lang.String seq, java.lang.String receivedQuantity, java.lang.String name1, java.lang.String wadat_Ist, java.lang.String maktx, java.lang.String vrkme, java.lang.String loekz, java.lang.String umren, java.lang.String umrez, java.lang.String gmng, java.lang.String lifex, java.lang.String beg03)" bounds="74,953,141,105" partnerLink="ERPInterfaceServiceUtil" partnerLinkType="ERPInterfaceServiceUtil" operation="INT_14075" operationDesc="public void INT_14075(java.lang.String innerRequestName, java.lang.String innerRequestDetailName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String deliveryType, java.lang.String erpTime, java.lang.String deliveryTime, java.lang.String supplierNO, java.lang.String erpFactory, java.lang.String materialSpecName, java.lang.String unit, java.lang.String charge, java.lang.String materialQuantity, java.lang.String erpLocation, java.lang.String flag, java.lang.String seq, java.lang.String receivedQuantity, java.lang.String name1, java.lang.String wadat_Ist, java.lang.String maktx, java.lang.String vrkme, java.lang.String loekz, java.lang.String umren, java.lang.String umrez, java.lang.String lgnmg, java.lang.String lifex, java.lang.String beg03)" ignoreThrow="false" fork="false">
                        <source idx="0" terminal="5,A" />
                        <input variable="innerRequest" type="java.lang.String" />
                        <input variable="innerRequestDetail" type="java.lang.String" />
                        <input variable="receiveRequestName" type="java.lang.String" />
                        <input variable="receiveRequestDetailName" type="java.lang.String" />
                        <input variable="deliveryType" type="java.lang.String" />
                        <input variable="erpTime" type="java.lang.String" />
                        <input variable="deliveryTime" type="java.lang.String" />
                        <input variable="supplierNO" type="java.lang.String" />
                        <input variable="erpFactory" type="java.lang.String" />
                        <input variable="materialSpecName" type="java.lang.String" />
                        <input variable="unit" type="java.lang.String" />
                        <input variable="charge" type="java.lang.String" />
                        <input variable="materialQuantity" type="java.lang.String" />
                        <input variable="erpLocation" type="java.lang.String" />
                        <input variable="flag" type="java.lang.String" />
                        <input variable="seq" type="java.lang.String" />
                        <input constant="0.0" type="java.lang.String" />
                        <input variable="name1" type="java.lang.String" />
                        <input variable="wadat_Ist" type="java.lang.String" />
                        <input variable="maktx" type="java.lang.String" />
                        <input variable="vrkme" type="java.lang.String" />
                        <input variable="loekz" type="java.lang.String" />
                        <input variable="umren" type="java.lang.String" />
                        <input variable="umrez" type="java.lang.String" />
                        <input variable="lgmng" type="java.lang.String" />
                        <input variable="lifex" type="java.lang.String" />
                        <input variable="beg03" type="java.lang.String" />
                    </invoke>
                    <whileend name="whileend" type="whileend" bounds="89,1078,110,49">
                        <source idx="0" terminal="5,A" />
                    </whileend>
                </while>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1157,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="74,1292,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="305,605,95,57">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="282,692,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="282,827,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="replaysubjectname" type="java.lang.String" />
                    <input variable="message" type="org.jdom.Document" />
                    <input constant="ERPSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="Items more than 15000 ??" type="java.lang.String" />
                </invoke>
            </otherwise>
        </switch>
    </sequence>
</process>

