<?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="QueryBySQL.bpel">
    <partnerLinks>
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="QueryServiceImpl" partnerLinkType="bean:QueryServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="bindList" messageType="java.lang.Object[]" expression="getXmlChildNodeValueArray('xml.Data','//Message/Body/BINDV')" />
        <variable name="error" messageType="java.lang.Exception"></variable>
        <variable name="language" messageType="java.lang.String" expression="getXmlData('xml.Data', '//Message/Body/LANGUAGE')" />
        <variable name="queryID" messageType="java.lang.String" expression="getXmlData('xml.Data', '//Message/Body/QUERYID')" />
        <variable name="queryString" messageType="java.lang.String" expression="getXmlData('xml.Data', '//Message/Body/QUERYID')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('xml.Data', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="SResult" messageType="java.lang.String"></variable>
        <variable name="version" messageType="java.lang.String" expression="getXmlData('xml.Data', '//Message/Body/VERSION')" />
        <variable name="xml.Data" messageType="org.jdom.Document"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="485,88,321,333">
        <catchAll name="catchAll" type="catchAll" bounds="10,34,281,250">
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(String replySubject, org.jdom.Document doc, String lanuage, Exception e, String senderName)" bounds="94,74,101,83" 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="xml.Data" 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="101,37,101,62">
            <input variable="xml.Data" type="org.jdom.Document" />
        </receive>
        <expression name="parse" type="parse" variable="xml.Data" bounds="101,171,101,35">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('queryID',getXmlData('xml.Data', '//message/body/QUERYID'))" />
            <function value="setVariable('version',getXmlData('xml.Data', '//message/body/VERSION'))" />
            <function value="setVariable('bindList',getXmlChildNodeValueArray('xml.Data','//message/body/BINDV'))" />
            <function value="setVariable('replySubjectName',getXmlData('xml.Data', '//message/header/replysubjectname'))" />
            <function value="setVariable('language',getXmlData('xml.Data', '//message/body/LANGUAGE'))" />
            <function value="setVariable('queryString',getXmlData('xml.Data', '//message/body/QUERYID'))" />
        </expression>
        <invoke name="QueryServiceImpl getQueryResult" type="invokebean" description="" bounds="279,147,101,83" partnerLink="QueryServiceImpl" partnerLinkType="QueryServiceImpl" operation="getQueryResult" operationDesc="" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="queryID" type="java.lang.String" />
            <input variable="version" type="java.lang.String" />
            <input variable="queryString" type="java.lang.String" />
            <input variable="bindList" type="java.lang.Object[]" />
            <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="279,281,101,83" 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>

