<?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="OQAResultConfirm.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="OQAResultImpl" partnerLinkType="bean:OQAResultImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="confirmresult" messageType="java.lang.String"></variable>
        <variable name="mpgroupName" messageType="java.lang.String" expression="getXmlData('OQAResultConfirm', '//Message/Body/MATERIALPROCESSGROUPNAME')" />
        <variable name="ngquantity" messageType="int" expression="getXmlData('OQAResultConfirm', '//Message/Body/NG')" />
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="okquantity" messageType="int" expression="getXmlData('OQAResultConfirm', '//Message/Body/OK')" />
        <variable name="OQAResultConfirm" messageType="org.jdom.Document"></variable>
        <variable name="oqaupdate" messageType="java.lang.String"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('OQAResultConfirm', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="result" messageType="java.lang.String"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('OQAResultConfirm', '//Message/Body/SITENAME')" />
    </variables>
    <sequence>
        <receive name="OQAResultConfirm" bounds="70,30,149,62">
            <input variable="OQAResultConfirm" type="org.jdom.Document" />
        </receive>
        <invoke name="OQAResultImpl OQAResultConfirm" type="invokebean" description="public java.lang.String OQAResultConfirm(java.lang.String siteName, java.lang.String mpgroupName, int okquantity, int ngquantity)" bounds="74,172,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="OQAResultConfirm" operationDesc="public java.lang.String OQAResultConfirm(java.lang.String siteName, java.lang.String mpgroupName, int okquantity, int ngquantity)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="mpgroupName" type="java.lang.String" />
            <input variable="okquantity" type="int" />
            <input variable="ngquantity" type="int" />
            <output variable="result" />
        </invoke>
        <switch name="switch" bounds="128,352,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="89,431,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('result') =&quot;NoError&quot;" bounds="114,510,60,51">
                <source idx="0" terminal="5,A" />
                <invoke name="OQAResultImpl UpdateOQAState" type="invokebean" description="public java.lang.String UpdateOQAState(java.lang.String siteName, java.lang.String mpgroupName, java.lang.String stateOQA)" bounds="74,591,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="UpdateOQAState" operationDesc="public java.lang.String UpdateOQAState(java.lang.String siteName, java.lang.String mpgroupName, java.lang.String stateOQA)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="siteName" type="java.lang.String" />
                    <input variable="mpgroupName" type="java.lang.String" />
                    <input constant="C" type="java.lang.String" />
                    <output variable="oqaupdate" />
                </invoke>
                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="74,726,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replySubjectName" type="java.lang.String" />
                    <input variable="OQAResultConfirm" type="org.jdom.Document" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input variable="oqaupdate" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                </invoke>
                <terminate name="terminate" bounds="74,861,141,65">
                    <source idx="0" terminal="5,A" />
                </terminate>
            </case>
            <case name="case" type="case" condition="getVariable('result') =&quot;Error&quot;" bounds="305,510,60,61">
                <source idx="0" terminal="5,A" />
                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" bounds="265,601,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String resultCode, java.lang.String resultMessage)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replySubjectName" type="java.lang.String" />
                    <input variable="OQAResultConfirm" type="org.jdom.Document" />
                    <input constant="1" type="java.lang.String" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="OQA result unmatch" type="java.lang.String" />
                </invoke>
                <terminate name="terminate" bounds="265,736,141,65">
                    <source idx="0" terminal="5,A" />
                </terminate>
            </case>
        </switch>
    </sequence>
</process>

