<?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="OnlineStockImportByPC.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="E" messageType="java.lang.String"></variable>
        <variable name="EXPIRINGDATE" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/EXPIRINGDATE')" />
        <variable name="LASETEVENTUSER" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/LASTEVENTUSER')" />
        <variable name="MAKEDATE" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/MAKEDATE')" />
        <variable name="MATERIALPACKINGNAME" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="MATERIALQUANTITY" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="MATERIALSPECNAME" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="OnlineStockImportByPC" messageType="org.jdom.Document"></variable>
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="Result" messageType="java.lang.String"></variable>
        <variable name="S" messageType="java.lang.String"></variable>
        <variable name="SITENAME" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/SITENAME')" />
        <variable name="SUPPLIERNO" messageType="java.lang.String" expression="getXmlData('OnlineStockImportByPC', '//Message/Body/SUPPLIERNO')" />
        <variable name="录入失败" messageType="java.lang.String"></variable>
        <variable name="录入成功" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="OnlineStockImportByPC" bounds="70,30,149,62">
            <input variable="OnlineStockImportByPC" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="65,122,158,106" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,2" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl OnlineStockImportByPC" type="invokebean" description="public java.lang.String OnlineStockImportByPC(java.lang.String siteName, java.lang.String materialpackingname, java.lang.String materialspecname, java.lang.String materialquantity, java.lang.String makeDate, java.lang.String supplierNo, java.lang.String expiringdate)" bounds="74,258,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="OnlineStockImportByPC" operationDesc="public java.lang.String OnlineStockImportByPC(java.lang.String siteName, java.lang.String materialpackingname, java.lang.String materialspecname, java.lang.String materialquantity, java.lang.String makeDate, java.lang.String supplierNo, java.lang.String expiringdate)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="SITENAME" type="java.lang.String" />
            <input variable="MATERIALPACKINGNAME" type="java.lang.String" />
            <input variable="MATERIALSPECNAME" type="java.lang.String" />
            <input variable="MATERIALQUANTITY" type="java.lang.String" />
            <input variable="MAKEDATE" type="java.lang.String" />
            <input variable="SUPPLIERNO" type="java.lang.String" />
            <input variable="EXPIRINGDATE" type="java.lang.String" />
            <input variable="LASETEVENTUSER" type="java.lang.String" />
            <input variable="OnlineStockImportByPC" type="org.jdom.Document" />
            <output variable="Result" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="63,393,162,103" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <switch name="switch" bounds="120,551,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="188,599,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('Result')   = '1'" bounds="213,668,60,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="119,739,162,103" 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="replysubjectname" type="java.lang.String" />
                    <input variable="OnlineStockImportByPC" type="org.jdom.Document" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="S" type="java.lang.String" />
                    <input constant="录入成功" type="java.lang.String" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="283,668,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="333,730,162,103" 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="replysubjectname" type="java.lang.String" />
                    <input variable="OnlineStockImportByPC" type="org.jdom.Document" />
                    <input constant="OICSender" type="java.lang.String" />
                    <input constant="E" type="java.lang.String" />
                    <input constant="录入失败" type="java.lang.String" />
                </invoke>
            </otherwise>
        </switch>
    </sequence>
</process>

