<?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="OEMStockIn.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="MaterialPackingStockInImpl" partnerLinkType="bean:MaterialPackingStockInImpl" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
    </partnerLinks>
    <variables>
        <variable name="costCenter" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Body/AREANAME')" />
        <variable name="erpDate" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Body/RECEIVETIME')" />
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//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/Body/LASTEVENTUSER')" />
        <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('OEMStockIn', '//Message/Header/MESSAGENAME')" />
        <variable name="OEMStockIn" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="PDASender" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Body/RECEIVEACTNO')" />
        <variable name="receiveRequestName" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Body/RECEIVEREQUESTNAME')" />
        <variable name="RefundStockIn" messageType="org.jdom.Document"></variable>
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('OEMStockIn', '//Message/Body/SITENAME')" />
        <variable name="stockinList" messageType="java.util.List"></variable>
        <variable name="tqmslist" messageType="java.util.List"></variable>
        <variable name="undolist" messageType="java.util.List"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="530,52,260,586">
        <catchAll name="catchAll" type="catchAll" bounds="14,30,209,528">
            <invoke name="TransactionUtil rollbackTransaction" type="invokebean" description="public void rollbackTransaction()" bounds="23,6,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="22,141,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="OEMStockIn" type="org.jdom.Document" />
                <input constant="" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="PDASender" 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="23,277,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="OEMStockIn" type="org.jdom.Document" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="" type="java.lang.String" />
            </invoke>
            <terminate name="terminate" bounds="26,412,141,65">
                <source idx="0" terminal="5,A" />
            </terminate>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="OEMStockIn" bounds="70,30,149,62">
            <input variable="OEMStockIn" type="org.jdom.Document" />
        </receive>
        <invoke name="MaterialPackingStockInImpl checkReceiveactState" type="invokebean" description="public void checkReceiveactState(java.lang.String receiveActNo)" bounds="74,122,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="checkReceiveactState" operationDesc="public void checkReceiveactState(java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="receiveActNo" type="java.lang.String" />
        </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 constant="OEMStockIn" 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="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,392,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="MaterialPackingStockInImpl GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="74,527,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="GetMessageID" operationDesc="public java.lang.String GetMessageID(java.lang.String sitename)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <output variable="messageid" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,662,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="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,797,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="MaterialPackingStockInImpl getOEMPackingList" type="invokebean" description="public java.util.List getOEMPackingList(java.lang.String siteName, java.lang.String actNO)" bounds="74,932,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="getOEMPackingList" operationDesc="public java.util.List getOEMPackingList(java.lang.String siteName, java.lang.String actNO)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <output variable="stockinList" />
        </invoke>
        <invoke name="MaterialPackingStockInImpl sendOEMStockinList" type="invokebean" description="public java.util.List sendOEMStockinList(java.lang.String siteName, java.util.List stockInList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String actNO, java.lang.String costCenter, java.lang.String receiveRequestName)" bounds="74,1067,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="sendOEMStockinList" operationDesc="public java.util.List sendOEMStockinList(java.lang.String siteName, java.util.List stockInList, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageID, java.lang.String actNO, java.lang.String costCenter, java.lang.String receiveRequestName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="stockinList" type="java.util.List" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="messageid" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input variable="costCenter" type="java.lang.String" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="erpDate" type="java.lang.String" />
            <output variable="undolist" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="MaterialPackingStockInImpl saveOEMStockinInfo" type="invokebean" description="public java.util.List saveOEMStockinInfo(java.util.List stockinList, java.util.List undoList, java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String actNo)" bounds="74,1202,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="saveOEMStockinInfo" operationDesc="public java.util.List saveOEMStockinInfo(java.util.List stockinList, java.util.List undoList, java.lang.String siteName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String actNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="stockinList" type="java.util.List" />
            <input variable="undolist" type="java.util.List" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="receiveActNo" type="java.lang.String" />
            <output variable="tqmslist" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1337,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,1472,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="OEMStockIn" type="org.jdom.Document" />
            <input constant="PDASender" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialPackingStockInImpl sendToTQMS" type="invokebean" description="public void sendToTQMS(java.util.List toerplist, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageid)" bounds="74,1607,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="sendToTQMS" operationDesc="public void sendToTQMS(java.util.List toerplist, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageid)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="tqmslist" type="java.util.List" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="messageid" type="java.lang.String" />
        </invoke>
        <terminate name="terminate" bounds="74,1742,141,65">
            <source idx="0" terminal="5,A" />
        </terminate>
    </sequence>
</process>

