<?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="OQAResult.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialPackingStockInImpl" partnerLinkType="bean:MaterialPackingStockInImpl" />
        <partnerLink name="OQAResultImpl" partnerLinkType="bean:OQAResultImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="changeresult" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/OQARESULT')" />
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/LASTEVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventInfoMessage" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Header/EVENTUSER')" />
        <variable name="groupname" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/MATERIALPROCESSGROUPNAME')" />
        <variable name="messageid" messageType="java.lang.String"></variable>
        <variable name="messageName" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Header/messagename')" />
        <variable name="mplist" messageType="java.util.List"></variable>
        <variable name="OQAResult" messageType="org.jdom.Document"></variable>
        <variable name="receivetime" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/RECEIVETIME')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shiptype" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/DESCRIPTION')" />
        <variable name="sitename" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/SITENAME')" />
        <variable name="type" messageType="java.lang.String" expression="getXmlData('OQAResult', '//Message/Body/LASTEVENTNAME')" />
        <variable name="undoinfo" messageType="com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo"></variable>
        <variable name="undolist" messageType="java.util.List"></variable>
    </variables>
    <sequence>
        <receive name="OQAResult" bounds="164,30,149,62">
            <input variable="OQAResult" type="org.jdom.Document" />
        </receive>
        <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="168,122,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 variable="type" 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="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="168,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="SetMessageID" 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="eventInfoMessage" />
        </invoke>
        <invoke name="CommonValidation print" type="invokebean" description="public void print(java.lang.Object obj)" bounds="168,392,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="print" operationDesc="public void print(java.lang.Object obj)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="type" type="java.lang.Object" />
        </invoke>
        <switch name="switch" bounds="222,527,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="183,606,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('type') =&quot;OQAResult&quot;" bounds="114,685,60,56">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,771,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,906,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,1041,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,1176,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="OQAResultImpl SaveOQAResult" type="invokebean" description="public com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo SaveOQAResult(java.lang.String groupname, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document doc, java.lang.String messageid)" bounds="74,1311,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="SaveOQAResult" operationDesc="public com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo SaveOQAResult(java.lang.String groupname, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document doc, java.lang.String messageid)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="groupname" type="java.lang.String" />
                    <input variable="receivetime" type="java.lang.String" />
                    <input variable="eventInfoMessage" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="OQAResult" type="org.jdom.Document" />
                    <input variable="messageid" type="java.lang.String" />
                    <output variable="undoinfo" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1446,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,1581,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="OQAResultImpl SaveOQAResultInfo" type="invokebean" description="public void SaveOQAResultInfo(org.jdom.Document doc, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo undoinfo, java.lang.String groupname)" bounds="74,1716,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="SaveOQAResultInfo" operationDesc="public void SaveOQAResultInfo(org.jdom.Document doc, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo undoinfo, java.lang.String groupname)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="OQAResult" type="org.jdom.Document" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="undoinfo" type="com.cim.idm.wmspackage.materialundo.info.MaterialUnDoinfo" />
                    <input variable="groupname" type="java.lang.String" />
                </invoke>
                <invoke name="OQAResultImpl updatePalletOQAResult" type="invokebean" description="public void updatePalletOQAResult(java.lang.String siteName, java.lang.String processGroupName, com.cim.idm.framework.data.EventInfo evetInfo)" bounds="74,1851,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="updatePalletOQAResult" operationDesc="public void updatePalletOQAResult(java.lang.String siteName, java.lang.String processGroupName, com.cim.idm.framework.data.EventInfo evetInfo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="sitename" type="java.lang.String" />
                    <input variable="groupname" type="java.lang.String" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1986,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                </invoke>
            </case>
            <case name="case" type="case" condition="getVariable('type') =&quot;ChangeOQAResult&quot;" bounds="305,685,57,53">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="263,768,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="263,903,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="263,1038,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="263,1173,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="OQAResultImpl GetOQAList" type="invokebean" description="public java.util.List GetOQAList(org.jdom.Document doc)" bounds="263,1308,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="GetOQAList" operationDesc="public java.util.List GetOQAList(org.jdom.Document doc)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="OQAResult" type="org.jdom.Document" />
                    <output variable="mplist" />
                </invoke>
                <invoke name="OQAResultImpl generateOQAManualMessage" type="invokebean" description="public java.util.List generateOQAManualMessage(java.util.List mplist, java.lang.String shiptype, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageid)" bounds="263,1443,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="generateOQAManualMessage" operationDesc="public java.util.List generateOQAManualMessage(java.util.List mplist, java.lang.String shiptype, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String messageid)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="mplist" type="java.util.List" />
                    <input variable="shiptype" type="java.lang.String" />
                    <input variable="receivetime" type="java.lang.String" />
                    <input variable="eventInfoMessage" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="messageid" type="java.lang.String" />
                    <output variable="undolist" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="263,1578,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="263,1713,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="OQAResultImpl SaveChangeOQAResult" type="invokebean" description="public void SaveChangeOQAResult(java.util.List mplist, java.util.List undolist, java.lang.String shiptype, java.lang.String result, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="263,1848,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="SaveChangeOQAResult" operationDesc="public void SaveChangeOQAResult(java.util.List mplist, java.util.List undolist, java.lang.String shiptype, java.lang.String result, java.lang.String receivetime, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="mplist" type="java.util.List" />
                    <input variable="undolist" type="java.util.List" />
                    <input variable="shiptype" type="java.lang.String" />
                    <input variable="changeresult" type="java.lang.String" />
                    <input variable="receivetime" type="java.lang.String" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                </invoke>
                <invoke name="OQAResultImpl updatePalletOQAResult" type="invokebean" description="public void updatePalletOQAResult(java.lang.String siteName, java.lang.String processGroupName, com.cim.idm.framework.data.EventInfo evetInfo)" bounds="263,1983,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="updatePalletOQAResult" operationDesc="public void updatePalletOQAResult(java.lang.String siteName, java.lang.String processGroupName, com.cim.idm.framework.data.EventInfo evetInfo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="sitename" type="java.lang.String" />
                    <input variable="groupname" type="java.lang.String" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="263,2118,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                </invoke>
            </case>
            <switchend name="switchend" type="switchend" bounds="183,2243,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A" />
            </switchend>
        </switch>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="168,2322,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="OQAResult" type="org.jdom.Document" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
        <terminate name="terminate" bounds="168,2457,141,65">
            <source idx="0" terminal="5,A" />
        </terminate>
    </sequence>
</process>

