<?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="ChangeERPLocation.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialPackingServiceUtil" partnerLinkType="bean:MaterialPackingServiceUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="ChangeERPLocation" messageType="org.jdom.Document"></variable>
        <variable name="ERPLocation" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation, '//Message/Body/ERPLOCATION')" />
        <variable name="ERPReceiveLocation" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation, '//Message/Body/ERPRECEIVELOCATION')" />
        <variable name="EventComment" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation', '//Message/Header/EVENTUSER')" />
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation', '//message/header/messagename')" />
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('CompleteShipRequest', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shipRequestDetailName" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation, '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation, '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('ChangeERPLocation', '//Message/Body/SITENAME')" />
        <variable name="unDoDetailName" messageType="java.lang.String"></variable>
        <variable name="unDoID" messageType="java.lang.String"></variable>
        <variable name="unDoIdDate" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="ChangeERPLocation" bounds="70,30,149,62">
            <input variable="ChangeERPLocation" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,122,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <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="74,257,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 variable="messagename" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="EventComment" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="MaterialPackingServiceUtil getPackingListFromShipRequest" type="invokebean" description="public java.util.List getPackingListFromShipRequest(java.lang.String invoiceNo)" bounds="74,392,141,105" partnerLink="MaterialPackingServiceUtil" partnerLinkType="MaterialPackingServiceUtil" operation="getPackingListFromShipRequest" operationDesc="public java.util.List getPackingListFromShipRequest(java.lang.String invoiceNo)">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl ChangeERPLocation" type="invokebean" description="public void ChangeERPLocation(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingNameList, java.util.List ChargeList, java.lang.String requestDetailName, java.lang.String erpReceiveLocation, java.lang.String erpEventTime, java.lang.String eventUser, java.lang.String eventComment, java.lang.String receiptor)" bounds="74,527,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="ChangeERPLocation" operationDesc="public void ChangeERPLocation(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingNameList, java.util.List ChargeList, java.lang.String requestDetailName, java.lang.String erpReceiveLocation, java.lang.String erpEventTime, java.lang.String eventUser, java.lang.String eventComment, java.lang.String receiptor)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="ChangeERPLocation" type="org.jdom.Document" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="boxList" type="java.util.List" />
            <input variable="ERPReceiveLocation" type="java.lang.String" />
            <input variable="ERPLocation" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="EventComment" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
        </invoke>
        <invoke name="ERPInterfaceServiceImpl erp_StockOut_WMS15" type="invokebean" description="public static com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo erp_StockOut_WMS15(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo, java.lang.String erpEventTime)" bounds="74,662,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockOut_WMS15" operationDesc="public static com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo erp_StockOut_WMS15(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String receiveActNo, java.lang.String erpEventTime)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="shipRequestName" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input constant="" type="java.lang.String" />
        </invoke>
        <expression name="expression" type="expression" bounds="74,797,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('unDoID', getField('materialDoinfo', 'unDoID'))" />
            <function value="setVariable('unDoDetailName', getField('materialDoinfo', 'unDoDetailName'))" />
            <function value="setVariable('unDoIDDate', getField('materialDoinfo', 'unDoIDDate'))" />
        </expression>
        <invoke name="MaterialPackingServiceImpl insertUnDoBoxInfo" type="invokebean" description="public void insertUnDoBoxInfo(java.lang.String siteName, java.lang.String invoiceNo, java.lang.String unDoID, java.lang.String unDoDetailName, java.lang.String unDoIDDate)" bounds="74,892,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="insertUnDoBoxInfo" operationDesc="public void insertUnDoBoxInfo(java.lang.String siteName, java.lang.String invoiceNo, java.lang.String unDoID, java.lang.String unDoDetailName, java.lang.String unDoIDDate)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="shipRequestName" type="java.lang.String" />
            <input variable="unDoID" type="java.lang.String" />
            <input variable="unDoDetailName" type="java.lang.String" />
            <input variable="unDoIdDate" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl UpdateUnDoInfo" type="invokebean" description="public void UpdateUnDoInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingKeyList, java.lang.String unDoID, java.lang.String unDoDetailName, java.lang.String eventUser, java.lang.String eventComment)" bounds="74,1027,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="UpdateUnDoInfo" operationDesc="public void UpdateUnDoInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingKeyList, java.lang.String unDoID, java.lang.String unDoDetailName, java.lang.String eventUser, java.lang.String eventComment)" 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="boxList" type="java.util.List" />
            <input variable="unDoID" type="java.lang.String" />
            <input variable="unDoDetailName" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="eventComment" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1162,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="ESBService sendBySender" type="invokebean" description="public void sendBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" bounds="74,1297,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendBySender" operationDesc="public void sendBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replysubjectname" type="java.lang.String" />
            <input variable="ChangeERPLocation" type="org.jdom.Document" />
            <input variable="returnElement" type="org.jdom.Element" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

