<?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="INT_WMS16.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="OQAResultImpl" partnerLinkType="bean:OQAResultImpl" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="1" messageType="java.lang.String"></variable>
        <variable name="allquantity" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/LOSMENGE')" />
        <variable name="CancelOQA" messageType="java.lang.String"></variable>
        <variable name="charge" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/CHARG')" />
        <variable name="confirmresult" messageType="java.lang.String"></variable>
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="erpfactory" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/WERKS')" />
        <variable name="ERPSender" messageType="java.lang.String"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="flag" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/FLAG')" />
        <variable name="isTempMaterialTrue" messageType="java.lang.String"></variable>
        <variable name="materialPackingList" messageType="java.util.List"></variable>
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/MATNR')" />
        <variable name="Message" messageType="org.jdom.Document"></variable>
        <variable name="mpgroupName" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/PRUEFLOS')" />
        <variable name="newUnDoId" messageType="java.lang.String"></variable>
        <variable name="ngquantity" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/LMENGE04')" />
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="okquantity" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Body/item/LMENGE01')" />
        <variable name="OQA result unmatch" messageType="java.lang.String"></variable>
        <variable name="oqaupdate" messageType="java.lang.String"></variable>
        <variable name="replaysubjectname" messageType="java.lang.String" expression="getXmlData('Message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="requestDetailName" messageType="java.lang.String"></variable>
        <variable name="requestName" messageType="java.lang.String"></variable>
        <variable name="result" messageType="java.lang.String"></variable>
        <variable name="result2" messageType="java.lang.Boolean"></variable>
        <variable name="siteName" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="INT_WMS16" bounds="1048,-159,149,62">
            <input variable="Message" type="org.jdom.Document" />
        </receive>
        <invoke name="CommonValidation getSiteName" type="invokebean" description="public java.lang.String getSiteName(java.lang.String erpFactoryName)" bounds="1052,-10,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="getSiteName" operationDesc="public java.lang.String getSiteName(java.lang.String erpFactoryName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="erpfactory" type="java.lang.String" />
            <output variable="siteName" />
        </invoke>
        <invoke name="OQAResultImpl isTempMaterialTrue" type="invokebean" description="public java.lang.String isTempMaterialTrue()" bounds="1052,122,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="isTempMaterialTrue" operationDesc="public java.lang.String isTempMaterialTrue()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="mpgroupName" />
            <input variable="siteName" />
            <input variable="materialPackingName" />
            <output variable="isTempMaterialTrue" />
        </invoke>
        <switch name="switch" bounds="1106,257,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="1067,336,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('isTempMaterialTrue') ='true'" bounds="842,415,60,19">
                <source idx="0" terminal="5,A" />
                <invoke name="CommonValidation print" type="invokebean" description="public void print(java.lang.Object obj)" bounds="802,464,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="flag" type="java.lang.Object" />
                </invoke>
                <switch name="switch" bounds="856,599,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="817,678,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('flag') =01" bounds="323,757,60,55">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="283,842,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="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="264,977,178,102" 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="ERPComfirmOQA" type="java.lang.String" />
                            <input constant="" 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="OQAResultImpl OQAResultConfirm" type="invokebean" description="public boolean OQAResultConfirm(java.lang.String mpgroupName, java.lang.String okquantity, java.lang.String ngquantity, java.lang.String charge)" bounds="283,1109,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="OQAResultConfirm" operationDesc="public boolean OQAResultConfirm(java.lang.String mpgroupName, java.lang.String okquantity, java.lang.String ngquantity, java.lang.String charge)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="mpgroupName" type="java.lang.String" />
                            <input variable="okquantity" type="java.lang.String" />
                            <input variable="ngquantity" type="java.lang.String" />
                            <input variable="charge" type="java.lang.String" />
                            <output variable="result" />
                        </invoke>
                        <invoke name="CommonValidation print" type="invokebean" description="public void print(java.lang.Object obj)" bounds="283,1244,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="result" type="java.lang.Object" />
                        </invoke>
                        <switch name="switch" bounds="337,1379,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="298,1458,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('result')  = 'OK'" bounds="114,1537,60,51">
                                <source idx="0" terminal="5,A" />
                                <invoke name="OQAResultImpl UpdateOQAState" type="invokebean" description="public void UpdateOQAState(java.lang.String mpgroupName, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="74,1618,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="UpdateOQAState" operationDesc="public void UpdateOQAState(java.lang.String mpgroupName, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="mpgroupName" type="java.lang.String" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                </invoke>
                                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" bounds="74,1753,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="replaysubjectname" />
                                    <input variable="Message" />
                                    <input constant="ERPSender" type="java.lang.String" />
                                </invoke>
                            </case>
                            <case name="case" type="case" condition="getVariable('result')  = 'NPOK'" bounds="323,1537,60,56">
                                <source idx="0" terminal="5,A" />
                                <invoke name="OQAResultImpl UpdateNPOQAInfo" type="invokebean" description="public void UpdateNPOQAInfo(java.lang.String mpgroupName, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="283,1623,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="UpdateNPOQAInfo" operationDesc="public void UpdateNPOQAInfo(java.lang.String mpgroupName, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="mpgroupName" type="java.lang.String" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                </invoke>
                                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" bounds="283,1758,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="replaysubjectname" />
                                    <input variable="Message" />
                                    <input constant="ERPSender" type="java.lang.String" />
                                </invoke>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="514,1537,88,55">
                                <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="489,1698,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="replaysubjectname" type="java.lang.String" />
                                    <input variable="Message" type="org.jdom.Document" />
                                    <input constant="ERPSender" type="java.lang.String" />
                                    <input constant="E" type="java.lang.String" />
                                    <input constant="QTY is wrong" type="java.lang.String" />
                                </invoke>
                            </otherwise>
                            <switchend name="switchend" type="switchend" bounds="298,1883,110,49">
                                <source idx="0" terminal="5,A" />
                                <source idx="1" terminal="5,A" />
                                <source idx="2" terminal="5,A" />
                            </switchend>
                        </switch>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="283,1962,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                        <terminate name="terminate" bounds="283,2097,141,65">
                            <source idx="0" terminal="5,A" />
                        </terminate>
                    </case>
                    <case name="case" type="case" condition=" getVariable('flag') =02" bounds="842,757,60,55">
                        <source idx="0" terminal="5,A" />
                        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="802,842,140,102" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </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="783,974,178,102" 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="CancelOQA" type="java.lang.String" />
                            <input constant="E" 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="OQAResultImpl GetUnDoOQAValidation" type="invokebean" description="public boolean GetUnDoOQAValidation(java.lang.String mpgroupName, java.lang.String okquantity, java.lang.String ngquantity, java.lang.String allquantity)" bounds="802,1106,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="GetUnDoOQAValidation" operationDesc="public boolean GetUnDoOQAValidation(java.lang.String mpgroupName, java.lang.String okquantity, java.lang.String ngquantity, java.lang.String allquantity)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="mpgroupName" type="java.lang.String" />
                            <input variable="okquantity" type="java.lang.String" />
                            <input variable="ngquantity" type="java.lang.String" />
                            <input variable="allquantity" type="java.lang.String" />
                            <output variable="result2" />
                        </invoke>
                        <switch name="switch" bounds="856,1241,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="817,1320,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('result2') " bounds="738,1399,60,45">
                                <source idx="0" terminal="5,A" />
                                <invoke name="OQAResultImpl UpdateUnDoOQA" type="invokebean" description="public void UpdateUnDoOQA(java.lang.String mpgroupname, java.lang.String charge, com.cim.idm.framework.data.EventInfo eventinfo)" bounds="698,1474,141,105" partnerLink="OQAResultImpl" partnerLinkType="OQAResultImpl" operation="UpdateUnDoOQA" operationDesc="public void UpdateUnDoOQA(java.lang.String mpgroupname, java.lang.String charge, com.cim.idm.framework.data.EventInfo eventinfo)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="mpgroupName" type="java.lang.String" />
                                    <input variable="charge" type="java.lang.String" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                </invoke>
                                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="698,1609,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="replaysubjectname" type="java.lang.String" />
                                    <input variable="Message" type="org.jdom.Document" />
                                    <input constant="ERPSender" type="java.lang.String" />
                                </invoke>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="947,1399,61,49">
                                <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="907,1478,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="replaysubjectname" type="java.lang.String" />
                                    <input variable="Message" type="org.jdom.Document" />
                                    <input constant="ERPSender" type="java.lang.String" />
                                    <input constant="E" type="java.lang.String" />
                                    <input constant="OQA result unmatch" type="java.lang.String" />
                                </invoke>
                            </otherwise>
                            <switchend name="switchend" type="switchend" bounds="817,1734,110,49">
                                <source idx="0" terminal="5,A" />
                                <source idx="1" terminal="5,A" />
                            </switchend>
                        </switch>
                        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="802,1813,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                        </invoke>
                        <terminate name="terminate" bounds="802,1948,141,65">
                            <source idx="0" terminal="5,A" />
                        </terminate>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="1138,757,61,49">
                        <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="1098,836,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="replaysubjectname" type="java.lang.String" />
                            <input variable="Message" type="org.jdom.Document" />
                            <input constant="ERPSender" type="java.lang.String" />
                            <input constant="E" type="java.lang.String" />
                            <input constant="OQA result unmatch" type="java.lang.String" />
                        </invoke>
                    </otherwise>
                </switch>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="1329,415,88,19">
                <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="1303,464,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="replaysubjectname" type="java.lang.String" />
                    <input variable="Message" type="org.jdom.Document" />
                    <input constant="ERPSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="Items more than 15000 ŁĄ" type="java.lang.String" />
                </invoke>
                <terminate name="terminate" bounds="1303,599,141,65">
                    <source idx="0" terminal="5,A" />
                </terminate>
            </otherwise>
        </switch>
    </sequence>
</process>

