<?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="Query.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="QueryServiceImpl" partnerLinkType="bean:QueryServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="bindElement" messageType="org.jdom.Element" expression="getXmlElement('message','//Message/Body/BINDV')" />
        <variable name="bindList" messageType="java.lang.Object[]" expression="getXmlChildNodeValueArray('message','//Message/Body/BINDV')" />
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="language" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/LANGUAGE')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/MESSAGENAME')" />
        <variable name="queryID" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/QUERYID')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="SResult" messageType="java.lang.String"></variable>
        <variable name="targetSubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/TARGETSUBJECTNAME')" />
        <variable name="transactionid" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/TRANSACTIONID')" />
        <variable name="version" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/VERSION')" />
    </variables>
    <faultHandlers name="faultHandlers" bounds="393,23,379,325">
        <catchAll name="catchAll" type="catchAll" bounds="10,34,304,222">
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(String replySubject, org.jdom.Document doc, String lanuage, Exception e, String senderName)" bounds="-4,66,300,92" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendErrorBySender" operationDesc="public void sendErrorBySender(String replySubject, org.jdom.Document doc, String lanuage, Exception e, String senderName)" ignoreThrow="false" fork="false">
                <input variable="replySubjectName" type="java.lang.String" />
                <input variable="message" type="org.jdom.Document" />
                <input variable="language" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="OICSender" type="java.lang.String" />
            </invoke>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="receive" bounds="33,28,140,75">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="QueryServiceImpl getQueryResult" type="invokebean" description="public String getQueryResult(String messageName, String sourceSubject, String targetSubject, String transactionId, String queryId, String version, org.jdom.Element bindElement)&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="-150,125,500,92" partnerLink="QueryServiceImpl" partnerLinkType="QueryServiceImpl" operation="getQueryResult" operationDesc="public String getQueryResult(String messageName, String sourceSubject, String targetSubject, String transactionId, String queryId, String version, org.jdom.Element bindElement)&#xA;&#x9;&#x9;throws java.lang.Exception" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="messagename" type="java.lang.String" />
            <input variable="replySubjectName" type="java.lang.String" />
            <input variable="targetSubjectName" type="java.lang.String" />
            <input variable="transactionid" type="java.lang.String" />
            <input variable="queryID" type="java.lang.String" />
            <input variable="version" type="java.lang.String" />
            <input variable="bindElement" type="org.jdom.Element" />
            <output variable="SResult" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(String replySubject, String sReplyMsg, String senderName)" bounds="-9,247,218,92" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(String replySubject, String sReplyMsg, String senderName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replySubjectName" type="java.lang.String" />
            <input variable="SResult" type="java.lang.String" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

