<?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="SMTStockInNew.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="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="boaName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="checkresult" messageType="java.lang.String"></variable>
        <variable name="checkresultBox" 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="eventName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="messageName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/MESSAGENAME')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="SMTSender" messageType="java.lang.String"></variable>
        <variable name="SMTStockIn" messageType="java.lang.String"></variable>
        <variable name="SMTStockInNew" messageType="org.jdom.Document"></variable>
    </variables>
    <sequence>
        <receive name="SMTStockInNew" bounds="70,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="70,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="124,270,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="85,349,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('checkresultuser') = 'OK|0'" bounds="106,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="70,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="SMTStockIn" 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="70,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="124,783,33,33" type="switch">
                    <source idx="0" terminal="5,A" />
                    <switchstart name="switchstart" type="switchstart" bounds="85,862,110,49">
                        <source idx="0" terminal="5,A" />
                    </switchstart>
                    <case name="case" type="case" condition="getVariable('checkresultTransact') = 'OK|0'" bounds="107,941,66,54">
                        <source idx="0" terminal="5,A" />
                        <invoke name="MaterialPackingServiceImpl CheckSMTSite" type="invokebean" description="public java.lang.String CheckSMTSite(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="70,1025,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="CheckSMTSite" operationDesc="public java.lang.String CheckSMTSite(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="checkresult" />
                        </invoke>
                        <switch name="switch" bounds="124,1160,33,33" type="switch">
                            <source idx="0" terminal="5,A" />
                            <switchstart name="switchstart" type="switchstart" bounds="85,1239,110,49">
                                <source idx="0" terminal="5,A" />
                            </switchstart>
                            <case name="case" type="case" condition="getVariable('checkresult') = 'OK|0'" bounds="101,1318,78,55">
                                <source idx="0" terminal="5,A" />
                                <invoke name="MaterialPackingServiceImpl CheckBoxID_SMT" type="invokebean" description="public java.lang.String CheckBoxID_SMT(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="70,1403,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="CheckBoxID_SMT" operationDesc="public java.lang.String CheckBoxID_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="checkresultBox" />
                                </invoke>
                                <switch name="switch" bounds="124,1538,33,33" type="switch">
                                    <source idx="0" terminal="5,A" />
                                    <switchstart name="switchstart" type="switchstart" bounds="85,1617,110,49">
                                        <source idx="0" terminal="5,A" />
                                    </switchstart>
                                    <case name="case" type="case" condition="getVariable('checkresultBox') = 'OK|0'" bounds="108,1696,65,55">
                                        <source idx="0" terminal="5,A" />
                                        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="61,1781,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 PDACreateBoxByLabelSMT_New" type="invokebean" description="public void PDACreateBoxByLabelSMT_New(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document message)" bounds="70,1917,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="PDACreateBoxByLabelSMT_New" operationDesc="public void PDACreateBoxByLabelSMT_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="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="59,2052,162,103" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
                                            <source idx="0" terminal="5,A" />
                                        </invoke>
                                        <expression name="expression" type="expression" bounds="70,2185,141,65">
                                            <source idx="0" terminal="5,A" />
                                            <function value="setXmlData('message','/Message/Header/MESSAGENAME','SMTStockInReply')" />
                                        </expression>
                                        <invoke name="ESBService sendReplyBySender" 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="-8,2280,296,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xA;&#x9;&#x9;throws java.lang.Exception" 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 variable="returnElement" type="org.jdom.Element" />
                                            <input constant="SMTSender" type="java.lang.String" />
                                        </invoke>
                                        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="61,2412,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="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,2548,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="boaName" 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,2683,162,103" 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="70,2816,141,65">
                                            <source idx="0" terminal="5,A" />
                                        </terminate>
                                    </case>
                                    <otherwise name="otherwise" type="otherwise" bounds="456,1696,101,50">
                                        <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="358,1776,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="checkresultBox" type="java.lang.String" />
                                        </invoke>
                                    </otherwise>
                                </switch>
                            </case>
                            <otherwise name="otherwise" type="otherwise" bounds="822,1318,88,19">
                                <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="718,1367,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="1,A" />
                                    <input variable="replySubjectName" type="java.lang.String" />
                                    <input variable="message" type="org.jdom.Document" />
                                    <input constant="SMTSender" type="java.lang.String" />
                                    <input variable="checkresult" type="java.lang.String" />
                                </invoke>
                            </otherwise>
                        </switch>
                    </case>
                    <otherwise name="otherwise" type="otherwise" bounds="1182,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="1084,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>
                    </otherwise>
                </switch>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="1548,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="1448,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>
            </otherwise>
        </switch>
    </sequence>
</process>

