<?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="GetPiReturn.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="eventName" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Body/LASTEVENTNAME')" />
        <variable name="eventTimeKey" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Body/LASTEVENTTIMEKEY')" />
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/header/eventUser')" />
        <variable name="GetPiReturn" messageType="org.jdom.Document"></variable>
        <variable name="messageId" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Body/MESSAGEID')" />
        <variable name="newMessageID" messageType="java.lang.String"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="resultCode" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Body/RESULTCODE')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('GetPiReturn', '//Message/Body/SITENAME')" />
    </variables>
    <sequence>
        <receive name="GetPiReturn" bounds="70,30,101,62">
            <input variable="GetPiReturn" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="50,122,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="CommonValidation GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="50,257,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" 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="newMessageID" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="50,392,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="50,527,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="ERPInterfaceServiceImpl GetPIReturn" type="invokebean" description="public static cn.com.api.cn.com.boe.PIReturn GetPIReturn(java.lang.String eventName, java.lang.String eventTimeKey, java.lang.String eventUser, java.lang.String messageID, java.lang.String resultCode, java.lang.String newMessageID, java.lang.String siteName)" bounds="50,662,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="GetPIReturn" operationDesc="public static cn.com.api.cn.com.boe.PIReturn GetPIReturn(java.lang.String eventName, java.lang.String eventTimeKey, java.lang.String eventUser, java.lang.String messageID, java.lang.String resultCode, java.lang.String newMessageID, java.lang.String siteName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventName" type="java.lang.String" />
            <input variable="eventTimeKey" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="messageId" type="java.lang.String" />
            <input variable="resultCode" type="java.lang.String" />
            <input variable="newMessageID" type="java.lang.String" />
            <input variable="siteName" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="50,797,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <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="50,932,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="GetPiReturn" type="org.jdom.Document" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

