<?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="INT_WMS26.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="ERPInterfaceServiceUtil" partnerLinkType="bean:ERPInterfaceServiceUtil" />
    </partnerLinks>
    <variables>
        <variable name="address" messageType="java.lang.String"></variable>
        <variable name="applicant" messageType="java.lang.String"></variable>
        <variable name="charge" messageType="java.lang.String"></variable>
        <variable name="city" messageType="java.lang.String"></variable>
        <variable name="Created" messageType="java.lang.String"></variable>
        <variable name="description" messageType="java.lang.String"></variable>
        <variable name="description2" messageType="java.lang.String"></variable>
        <variable name="destination" 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="error" messageType="java.lang.Exception"></variable>
        <variable name="eventComment" messageType="java.lang.String"></variable>
        <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"></variable>
        <variable name="exportNo" messageType="java.lang.String"></variable>
        <variable name="factoryType" messageType="java.lang.String"></variable>
        <variable name="fax" messageType="java.lang.String"></variable>
        <variable name="flag" messageType="java.lang.String"></variable>
        <variable name="forceCompletedFlag" messageType="java.lang.String"></variable>
        <variable name="freeFlag" messageType="java.lang.String"></variable>
        <variable name="holdState" messageType="java.lang.String"></variable>
        <variable name="IDOCreateDate" messageType="java.lang.String"></variable>
        <variable name="IDODetailId" messageType="java.lang.String"></variable>
        <variable name="IDOId" messageType="java.lang.String"></variable>
        <variable name="IDOType" messageType="java.lang.String"></variable>
        <variable name="iqcFlag" messageType="java.lang.String"></variable>
        <variable name="itemElement" messageType="org.jdom.Element"></variable>
        <variable name="itemList" messageType="java.util.List"></variable>
        <variable name="materialSpecDesction" messageType="java.lang.String"></variable>
        <variable name="materialSpecName" messageType="java.lang.String"></variable>
        <variable name="materialUnit" messageType="java.lang.String"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="name1" messageType="java.lang.String"></variable>
        <variable name="nationalNo" messageType="java.lang.String"></variable>
        <variable name="planDate" messageType="java.lang.String"></variable>
        <variable name="pocategory" messageType="java.lang.String"></variable>
        <variable name="postCode" messageType="java.lang.String"></variable>
        <variable name="preInboundDeliveryDate" messageType="java.lang.String"></variable>
        <variable name="purchaseOrderGroup" messageType="java.lang.String"></variable>
        <variable name="quantity" messageType="java.lang.String"></variable>
        <variable name="realQuantity" messageType="java.lang.String"></variable>
        <variable name="receiveDate" messageType="java.lang.String"></variable>
        <variable name="receivedQuantity" messageType="java.lang.String">0</variable>
        <variable name="receiveRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="receiveRequestDetailState" messageType="java.lang.String"></variable>
        <variable name="receiveRequestDetailType" messageType="java.lang.String"></variable>
        <variable name="receiveRequestDetalstate" 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="requestQuantity" messageType="java.lang.String"></variable>
        <variable name="requestQuantity2" messageType="java.lang.String"></variable>
        <variable name="returnFlag" messageType="java.lang.String"></variable>
        <variable name="shipPlanDate" messageType="java.lang.String"></variable>
        <variable name="shipRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="shipRequestName" messageType="java.lang.String"></variable>
        <variable name="siteName" messageType="java.lang.String"></variable>
        <variable name="subMaterialSpecName" messageType="java.lang.String"></variable>
        <variable name="supIndexNo" messageType="java.lang.String"></variable>
        <variable name="supplierNo" messageType="java.lang.String"></variable>
        <variable name="tel" messageType="java.lang.String"></variable>
        <variable name="The material is not on the line plan!" messageType="java.lang.String"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="612,-37,278,559">
        <catchAll name="catchAll" type="catchAll" bounds="10,32,249,506">
            <invoke name="TransactionUtil rollbackTransaction" type="invokebean" description="public void rollbackTransaction()" bounds="25,11,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="rollbackTransaction" operationDesc="public void rollbackTransaction()" ignoreThrow="false" fork="false" />
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, java.lang.String senderName)" bounds="27,130,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendErrorBySender" operationDesc="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, 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="" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="ERPSender" type="java.lang.String" />
            </invoke>
            <invoke name="ESBService makeErrorMessageLog" type="invokebean" description="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" bounds="31,266,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="makeErrorMessageLog" operationDesc="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="message" type="org.jdom.Document" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="" type="java.lang.String" />
            </invoke>
            <terminate name="terminate" bounds="24,389,141,65">
                <source idx="0" terminal="5,A" />
            </terminate>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="INT_WMS26" bounds="70,30,156,81">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <expression name="expression" type="expression" bounds="78,141,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('itemList', getElementList('message', '//item'))" />
        </expression>
        <expression name="expression" type="expression" bounds="78,236,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('erpMessageItemListSize', getListSize('itemList'))" />
        </expression>
        <switch name="switch" bounds="132,331,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="93,410,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('erpMessageItemListSize') &lt; 1501" bounds="118,489,60,19">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="69,538,158,106" 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="78,674,141,105" partnerLink="EventInfoUtil" partnerLinkType="EventInfoUtil" operation="makeEventInfo" operationDesc="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input constant="INT_WMS09" type="java.lang.String" />
                    <input constant="ERP" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                    <output variable="eventInfo" />
                </invoke>
                <while name="while" bounds="132,809,32,32" type="2" collection="itemList" element="itemElement">
                    <source idx="0" terminal="5,A" />
                    <whilestart name="whilestart" type="whilestart" bounds="93,888,110,49">
                        <source idx="0" terminal="5,A" />
                    </whilestart>
                    <expression name="expression" type="expression" bounds="78,967,141,65">
                        <source idx="0" terminal="5,A" />
                        <function value="setVariable('description',getXmlData('itemElement','//NAME1'))" />
                        <function value="setVariable('address',getXmlData('itemElement','//STRAS'))" />
                        <function value="setVariable('nationalNo',getXmlData('itemElement','//LAND1'))" />
                        <function value="setVariable('postCode',getXmlData('itemElement','//PSTLZ'))" />
                        <function value="setVariable('city',getXmlData('itemElement','//ORT01'))" />
                        <function value="setVariable('tel',getXmlData('itemElement','//TELF1'))" />
                        <function value="setVariable('fax',getXmlData('itemElement','//TELFX'))" />
                        <function value="setVariable('receiveRequestType',getXmlData('itemElement','//BSART'))" />
                        <function value="setVariable('PURCHASEORDERGROUP',getXmlData('itemElement','//EKGRP'))" />
                        <function value="setVariable('purchaseOrderGroup',getXmlData('itemElement','//EKGRP'))" />
                        <function value="setVariable('receiveRequestDetailName',getXmlData('itemElement','//EBELP'))" />
                        <function value="setVariable('pocategory',getXmlData('itemElement','//KNTTP'))" />
                        <function value="setVariable('receiveRequestDetailType',getXmlData('itemElement','//PSTYP'))" />
                        <function value="setVariable('materialSpecName',getXmlData('itemElement','//MATNR'))" />
                        <function value="setVariable('description2',getXmlData('itemElement','//TXZ01'))" />
                        <function value="setVariable('requestQuantity',getXmlData('itemElement','//MENGE'))" />
                        <function value="setVariable('erpFactoryName',getXmlData('itemElement','//WERKS'))" />
                        <function value="setVariable('erpLocation',getXmlData('itemElement','//LGORT'))" />
                        <function value="setVariable('returnFlag',getXmlData('itemElement','//RETPO'))" />
                        <function value="setVariable('freeFlag',getXmlData('itemElement','//UMSON'))" />
                        <function value="setVariable('forceCompletedFlag',getXmlData('itemElement','//WEPOS'))" />
                        <function value="setVariable('receiveRequestDetailState',getXmlData('itemElement','//ELIKZ'))" />
                        <function value="setVariable('holdState',getXmlData('itemElement','//LOEKZ'))" />
                        <function value="setVariable('applicant',getXmlData('itemElement','//AFNAM'))" />
                        <function value="setVariable('requestQuantity2',getXmlData('itemElement','//BDMNG'))" />
                        <function value="setVariable('charge',getXmlData('itemElement','//CHARG'))" />
                        <function value="setVariable('iqcFlag',getXmlData('itemElement','//INSMK'))" />
                        <function value="setVariable('flag',getXmlData('itemElement','//FLAG'))" />
                        <function value="setVariable('planDate',getXmlData('itemElement','//BDTER'))" />
                        <function value="setVariable('subMaterialSpecName',getXmlData('itemElement','//MATNR1'))" />
                        <function value="setVariable('erpFactory',getXmlData('itemElement','//WERKS'))" />
                        <function value="setVariable('IDOId',getXmlData('itemElement','//VBELN'))" />
                        <function value="setVariable('supIndexNo',getXmlData('itemElement','//ETENS'))" />
                        <function value="setVariable('IDOType',getXmlData('itemElement','//LFART'))" />
                        <function value="setVariable('IDOCreateDate',getXmlData('itemElement','//BLDAT'))" />
                        <function value="setVariable('preInboundDeliveryDate',getXmlData('itemElement','//LFDAT'))" />
                        <function value="setVariable('supplierNo',getXmlData('itemElement','//LIFNR'))" />
                        <function value="setVariable('name1',getXmlData('itemElement','//NAME1'))" />
                        <function value="setVariable('receiveDate',getXmlData('itemElement','//WADAT_IST'))" />
                        <function value="setVariable('IDODetailId',getXmlData('itemElement','//POSNR'))" />
                        <function value="setVariable('receiveRequestName',getXmlData('itemElement','//EBELN'))" />
                        <function value="setVariable('factoryType',getXmlData('itemElement','//WERKS'))" />
                        <function value="setVariable('materialUnit',getXmlData('itemElement','//MEINS'))" />
                        <function value="setVariable('materialSpecDesction',getXmlData('itemElement','//MAKTX'))" />
                        <function value="setVariable('quantity',getXmlData('itemElement','//MENGE'))" />
                        <function value="setVariable('realQuantity',getXmlData('itemElement','//LFIMG'))" />
                    </expression>
                    <invoke name="ERPInterfaceServiceUtil INT_WMS26" type="invokebean" description="public void INT_WMS26(java.lang.String arg1, com.cim.idm.framework.data.EventInfo arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, java.lang.String arg7, java.lang.String arg8, java.lang.String arg9, java.lang.String arg10, java.lang.String arg11, java.lang.String arg12, java.lang.String arg13, java.lang.String arg14, java.lang.String arg15, java.lang.String arg16, java.lang.String arg17, java.lang.String arg18, java.lang.String arg19, java.lang.String arg20, java.lang.String arg21, java.lang.String arg22, java.lang.String arg23, java.lang.String arg24, java.lang.String arg25, java.lang.String arg26, java.lang.String arg27)" bounds="78,1062,141,105" partnerLink="ERPInterfaceServiceUtil" partnerLinkType="ERPInterfaceServiceUtil" operation="INT_WMS26" operationDesc="public void INT_WMS26(java.lang.String arg1, com.cim.idm.framework.data.EventInfo arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, java.lang.String arg7, java.lang.String arg8, java.lang.String arg9, java.lang.String arg10, java.lang.String arg11, java.lang.String arg12, java.lang.String arg13, java.lang.String arg14, java.lang.String arg15, java.lang.String arg16, java.lang.String arg17, java.lang.String arg18, java.lang.String arg19, java.lang.String arg20, java.lang.String arg21, java.lang.String arg22, java.lang.String arg23, java.lang.String arg24, java.lang.String arg25, java.lang.String arg26, java.lang.String arg27)" ignoreThrow="false" fork="false">
                        <source idx="0" terminal="5,A" />
                        <input variable="flag" type="java.lang.String" />
                        <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                        <input variable="erpFactory" type="java.lang.String" />
                        <input variable="receiveRequestName" type="java.lang.String" />
                        <input variable="receiveRequestDetailName" type="java.lang.String" />
                        <input variable="purchaseOrderGroup" type="java.lang.String" />
                        <input constant="Created" type="java.lang.String" />
                        <input variable="pocategory" type="java.lang.String" />
                        <input variable="receiveRequestDetailType" type="java.lang.String" />
                        <input variable="materialSpecName" type="java.lang.String" />
                        <input variable="description2" type="java.lang.String" />
                        <input variable="requestQuantity" type="java.lang.String" />
                        <input variable="receivedQuantity" type="java.lang.String" />
                        <input variable="erpLocation" type="java.lang.String" />
                        <input variable="returnFlag" type="java.lang.String" />
                        <input variable="freeFlag" type="java.lang.String" />
                        <input variable="forceCompletedFlag" type="java.lang.String" />
                        <input variable="receiveRequestDetailState" type="java.lang.String" />
                        <input variable="holdState" type="java.lang.String" />
                        <input variable="iqcFlag" type="java.lang.String" />
                        <input variable="planDate" type="java.lang.String" />
                        <input variable="applicant" type="java.lang.String" />
                        <input variable="charge" type="java.lang.String" />
                        <input variable="supplierNo" type="java.lang.String" />
                        <input variable="address" type="java.lang.String" />
                        <input variable="city" type="java.lang.String" />
                        <input variable="fax" type="java.lang.String" />
                        <input variable="tel" type="java.lang.String" />
                        <input variable="postCode" type="java.lang.String" />
                        <input variable="nationalNo" type="java.lang.String" />
                        <input variable="description" type="java.lang.String" />
                        <input variable="subMaterialSpecName" type="java.lang.String" />
                        <input variable="requestQuantity2" type="java.lang.String" />
                        <fault faultName="catchAll" variable="error" />
                    </invoke>
                    <whileend name="whileend" type="whileend" bounds="93,1187,110,49">
                        <source idx="0" terminal="5,A" />
                    </whileend>
                </while>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="67,1266,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="78,1399,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="319,489,88,19">
                <source idx="0" terminal="5,A" />
                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="293,538,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>

