<?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="ModifyMESRefundRequestSendReport.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="XmlUtil" partnerLinkType="bean:XmlUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="ERPInterfaceServiceUtil" partnerLinkType="bean:ERPInterfaceServiceUtil" />
    </partnerLinks>
    <variables>
        <variable name="charge" messageType="java.lang.String"></variable>
        <variable name="description" messageType="java.lang.String"></variable>
        <variable name="erpFactory" messageType="java.lang.String"></variable>
        <variable name="erpLocation" messageType="java.lang.String"></variable>
        <variable name="erpReceiveLocation" messageType="java.lang.String" expression="getXmlData('ModifyMESRefundRequestSendReport', '//Message/Body/ERPRECEIVELOCATION')" />
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="expiringDate" messageType="java.lang.String"></variable>
        <variable name="line" messageType="java.lang.String"></variable>
        <variable name="makeDate" messageType="java.lang.String"></variable>
        <variable name="materialElement" messageType="org.jdom.Element"></variable>
        <variable name="materialList" messageType="java.util.List"></variable>
        <variable name="materialQuantity" messageType="java.lang.String"></variable>
        <variable name="materialSpecName" messageType="java.lang.String"></variable>
        <variable name="ModifyMESRefundRequestSendReport" messageType="org.jdom.Document"></variable>
        <variable name="reasonCode" messageType="java.lang.String"></variable>
        <variable name="reasonCodeType" messageType="java.lang.String"></variable>
        <variable name="receiveLocation" messageType="java.lang.String"></variable>
        <variable name="remark" messageType="java.lang.String"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('ModifyMESRefundRequestSendReport', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnType" messageType="java.lang.String"></variable>
        <variable name="rtShipRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="rtShipRequestName" messageType="java.lang.String" expression="getXmlData('ModifyMESRefundRequestSendReport', '//Message/Body/INVOICENO')" />
        <variable name="rtTypeDescription" messageType="java.lang.String"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('ModifyMESRefundRequestSendReport', '//Message/Body/SITENAME')" />
        <variable name="supplierName" messageType="java.lang.String"></variable>
        <variable name="supplierNO" messageType="java.lang.String"></variable>
        <variable name="toMESMessage" messageType="org.jdom.Document"></variable>
        <variable name="woElement" messageType="org.jdom.Element"></variable>
        <variable name="workOrder" messageType="java.lang.String"></variable>
        <variable name="workOrderList" messageType="java.util.List"></variable>
        <variable name="workOrderType" messageType="java.lang.String"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="492,39,339,800">
        <catchAll name="catchAll" type="catchAll" bounds="24,49,285,715">
            <invoke name="TransactionUtil rollbackTransaction" type="invokebean" description="public void rollbackTransaction()" bounds="67,0,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="rollbackTransaction" operationDesc="public void rollbackTransaction()" ignoreThrow="false" fork="false" />
            <invoke name="XmlUtil clone" type="invokebean" description="public org.jdom.Document clone(org.jdom.Document doc)" bounds="66,118,141,105" 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="ReturnMaterialSendReport" type="org.jdom.Document" />
                <output variable="toMESMessage" />
            </invoke>
            <expression name="expression" type="expression" bounds="65,244,141,65">
                <source idx="0" terminal="5,A" />
                <function value="setXmlData('toMESMessage','/Message/Header/MESSAGENAME','ReturnMaterialReceiveReport')" />
                <function value="removeElement('toMESMessage','/Message/Body')" />
                <function value="addChildNode('toMESMessage','/Message',createNode('Body',''))" />
                <function value="addElement('toMESMessage','/Message/Body','SHIPREQUESTNAME',getVariable('rtShipRequestName'))" />
            </expression>
            <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="65,331,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="toMESMessage" type="org.jdom.Document" />
                <input constant="" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="MESSender" 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="64,456,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="ReturnMaterialSendReport" type="org.jdom.Document" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="" type="java.lang.String" />
            </invoke>
            <terminate name="terminate" bounds="65,577,141,65">
                <source idx="0" terminal="5,A" />
            </terminate>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="ModifyMESRefundRequestSendReport" bounds="65,-15,149,62">
            <input variable="ModifyMESRefundRequestSendReport" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="53,80,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="52,198,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="ModifyMESRefundRequestSendReport" type="java.lang.String" />
            <input constant="MES" type="java.lang.String" />
            <input constant="ModifyMESRefundRequestSendReport" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input variable="reasonCode" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="ERPInterfaceServiceUtil ModifyRTShipRequest" type="invokebean" description="public void ModifyRTShipRequest(java.lang.String rtShipRequestName, java.lang.String erpReceiveLocation, java.lang.String sitename, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="55,323,141,105" partnerLink="ERPInterfaceServiceUtil" partnerLinkType="ERPInterfaceServiceUtil" operation="ModifyRTShipRequest" operationDesc="public void ModifyRTShipRequest(java.lang.String rtShipRequestName, java.lang.String erpReceiveLocation, java.lang.String sitename, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="rtShipRequestName" type="java.lang.String" />
            <input variable="erpReceiveLocation" type="java.lang.String" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <fault faultName="catchAll" variable="" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="56,450,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="40,570,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="ReturnMaterialSendReport" type="org.jdom.Document" />
            <input constant="MESSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

