<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="SMTStockOutNew.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="boxName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="checkresultStocked" messageType="java.lang.String"></variable>
        <variable name="checkresultTransact" messageType="java.lang.String"></variable>
        <variable name="checkresultuser" messageType="java.lang.String"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/MESSAGENAME')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/SITENAME')" />
        <variable name="SMTSender" messageType="java.lang.String"></variable>
        <variable name="SMTStockOut" messageType="java.lang.String"></variable>
        <variable name="SMTStockOutNew" messageType="org.jdom.Document"></variable>
    </variables>
    <sequence>
        <receive name="SMTStockOutNew" bounds="658,30,140,75">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="MaterialPackingServiceImpl VerifySMTUser" type="invokebean" description="public java.lang.String VerifySMTUser(org.jdom.Document message)" bounds="658,135,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="VerifySMTUser" operationDesc="public java.lang.String VerifySMTUser(org.jdom.Document message)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="message" type="org.jdom.Document" />
            <output variable="checkresultuser" />
        </invoke>
        <switch name="switch" bounds="712,270,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="673,349,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('checkresultuser') = 'OK|0'" bounds="413,428,69,55">
                <source idx="0" terminal="5,A" />
                <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="377,513,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="SMTStockOut" 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="MaterialPackingServiceImpl CheckTransactionID_SMT" type="invokebean" description="public java.lang.String CheckTransactionID_SMT(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="377,648,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="CheckTransactionID_SMT" operationDesc="public java.lang.String CheckTransactionID_SMT(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="message" type="org.jdom.Document" />
                    <output variable="checkresultTransact" />
                </invoke>
                <switch name="switch" bounds="431,783,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="392,862,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('checkresultTransact') = 'OK|0'" bounds="215,941,66,54">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingServiceImpl CheckSMTStockedBox" type="invokebean" description="public java.lang.String CheckSMTStockedBox(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="178,1025,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="CheckSMTStockedBox" operationDesc="public java.lang.String CheckSMTStockedBox(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                            <input variable="message" type="org.jdom.Document" />
                            <output variable="checkresultStocked" />
                        </invoke>
                        <switch name="switch" bounds="232,1160,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="193,1239,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('checkresultStocked') = 'OK|0'" bounds="97,1318,86,47">
                                <source idx="0" terminal="5,A" />
                                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="61,1395,158,106" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                </invoke>
                                <invoke name="MaterialPackingServiceImpl BoxStockOutByLabelSMT_New" type="invokebean" description="public void BoxStockOutByLabelSMT_New(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="70,1531,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="BoxStockOutByLabelSMT_New" operationDesc="public void BoxStockOutByLabelSMT_New(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                    <input variable="message" type="org.jdom.Document" />
                                </invoke>
                                <invoke name="ERPInterfaceServiceImpl erpInterface_PI056_SMT_NewManner" type="invokebean" description="public void erpInterface_PI056_SMT_NewManner(java.lang.String siteName, java.lang.String boxName, com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="70,1666,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_PI056_SMT_NewManner" operationDesc="public void erpInterface_PI056_SMT_NewManner(java.lang.String siteName, java.lang.String boxName, com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="siteName" type="java.lang.String" />
                                    <input variable="boxName" type="java.lang.String" />
                                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                                    <input variable="message" type="org.jdom.Document" />
                                </invoke>
                                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="59,1801,162,103" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                </invoke>
                                <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="70,1934,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="message" type="org.jdom.Document" />
                                    <input constant="SMTSender" type="java.lang.String" />
                                </invoke>
                                <terminate name="terminate" bounds="70,2069,141,65">
                                    <source idx="0" terminal="5,A" />
                                </terminate>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="311,1318,92,41">
                                <source idx="0" terminal="5,A" />
                                <invoke name="ESBService SMTsendReplyBySender" type="invokebean" description="public void SMTsendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String checkresult)" bounds="287,1389,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="SMTsendReplyBySender" operationDesc="public void SMTsendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String checkresult)" ignoreThrow="false" fork="false">
                                    <source idx="0" terminal="5,A" />
                                    <input variable="replySubjectName" type="java.lang.String" />
                                    <input variable="message" type="org.jdom.Document" />
                                    <input constant="SMTSender" type="java.lang.String" />
                                    <input variable="checkresultStocked" type="java.lang.String" />
                                </invoke>
                                <terminate name="terminate" bounds="287,1524,141,65">
                                    <source idx="0" terminal="5,A" />
                                </terminate>
                            </otherwise>
                        </switch>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="596,941,101,53">
                        <source idx="0" terminal="5,A" />
                        <invoke name="ESBService SMTsendReplyBySender" type="invokebean" description="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xD;&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="498,1024,296,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="SMTsendReplyBySender" operationDesc="public void SMTsendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String checkresult)" ignoreThrow="false" fork="false">
                            <source idx="0" terminal="5,A" />
                            <input variable="replySubjectName" type="java.lang.String" />
                            <input variable="message" type="org.jdom.Document" />
                            <input constant="SMTSender" type="java.lang.String" />
                            <input variable="checkresultTransact" type="java.lang.String" />
                        </invoke>
                        <terminate name="terminate" bounds="576,1156,141,65">
                            <source idx="0" terminal="5,A" />
                        </terminate>
                    </otherwise>
                </switch>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="962,428,97,43">
                <source idx="0" terminal="5,A" />
                <invoke name="ESBService SMTsendReplyBySender" type="invokebean" description="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xD;&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="862,501,296,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="SMTsendReplyBySender" operationDesc="public void SMTsendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName, java.lang.String checkresult)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="replySubjectName" type="java.lang.String" />
                    <input variable="message" type="org.jdom.Document" />
                    <input constant="SMTSender" type="java.lang.String" />
                    <input variable="checkresultuser" type="java.lang.String" />
                </invoke>
                <terminate name="terminate" bounds="940,633,141,65">
                    <source idx="0" terminal="5,A" />
                </terminate>
            </otherwise>
        </switch>
    </sequence>
</process>

