<?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="SMTReSend.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <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="eventComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ACTTYPE')" />
        <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="interfaceFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/NPFLAG')" />
        <variable name="materialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="materialType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALTYPE')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="seq" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SEQ')" />
        <variable name="SiteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="SMTChangeOKToNG" messageType="java.lang.String"></variable>
        <variable name="SMTReSend" messageType="org.jdom.Document"></variable>
        <variable name="SMTSender" messageType="java.lang.String"></variable>
        <variable name="TransactionID" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/TRANSACTIONID')" />
    </variables>
    <sequence>
        <receive name="SMTReSend" bounds="207,30,140,75">
            <input variable="message" 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="207,135,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="SMTReSend" 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>
        <switch name="switch" bounds="261,270,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="222,349,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('interfaceFlag') = 'PI067'" bounds="110,428,60,47">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="70,505,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="ERPInterfaceServiceImpl erpInterface_PI067_SMT_New_ReSend" type="invokebean" description="public void erpInterface_PI067_SMT_New_ReSend(java.lang.String seq, java.lang.String materialSpecName, java.lang.String transactionid, java.lang.String SiteName, java.lang.String materialType, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="70,640,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_PI067_SMT_New_ReSend" operationDesc="public void erpInterface_PI067_SMT_New_ReSend(java.lang.String seq, java.lang.String materialSpecName, java.lang.String transactionid, java.lang.String SiteName, java.lang.String materialType, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="seq" type="java.lang.String" />
                    <input variable="materialSpecName" type="java.lang.String" />
                    <input variable="TransactionID" type="java.lang.String" />
                    <input variable="SiteName" type="java.lang.String" />
                    <input variable="materialType" 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="28,775,225,104" 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('interfaceFlag') = 'PI056'" bounds="385,428,60,50">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="345,508,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="ERPInterfaceServiceImpl erpInterface_PI056_SMT_New_ReSend" type="invokebean" description="public void erpInterface_PI056_SMT_New_ReSend(java.lang.String seq, java.lang.String materialSpecName, java.lang.String transactionid, java.lang.String SiteName, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="345,643,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_PI056_SMT_New_ReSend" operationDesc="public void erpInterface_PI056_SMT_New_ReSend(java.lang.String seq, java.lang.String materialSpecName, java.lang.String transactionid, java.lang.String SiteName, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="seq" />
                    <input variable="materialSpecName" />
                    <input variable="TransactionID" />
                    <input variable="SiteName" />
                    <input variable="materialType" />
                    <input variable="eventInfo" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="303,778,225,104" 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="222,902,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="207,981,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="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

