<?xml version="1.0" encoding="GBK"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="shipRequestCreateBoxByLabel.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="boxFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/BOXQTYFLAG')" />
        <variable name="boxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="charge" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CHARGE')" />
        <variable name="CreateStorageSpec" messageType="java.lang.String"></variable>
        <variable name="doc" messageType="org.jdom.Document"></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="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="EveryBoxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="EXPIRINGDATE" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/EXPIRINGDATE')" />
        <variable name="listMaterialPacking" messageType="java.lang.String"></variable>
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="materialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="N" messageType="java.lang.String"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="PalletID" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPERMATERIALPACKINGNAME')" />
        <variable name="poDetailName" messageType="java.lang.String"></variable>
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODETYPE')" />
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEACTNO')" />
        <variable name="receiveQty" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQTY')" />
        <variable name="receiveQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQTY')" />
        <variable name="receiveRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTNAME')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="supplierName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPPLIERNAME')" />
        <variable name="TrackOutBox" messageType="org.jdom.Document"></variable>
    </variables>
    <sequence>
        <receive name="shipRequestCreateBoxByLabel" bounds="70,30,149,81">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,141,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="74,276,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="shipRequestCreateBoxByLabel" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="eventComment" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input variable="reasonCode" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl findActNoByShipRequest" type="invokebean" description="public java.lang.String findActNoByShipRequest(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ShipRequestName, java.lang.String siteName)" bounds="74,411,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="findActNoByShipRequest" operationDesc="public java.lang.String findActNoByShipRequest(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String ShipRequestName, java.lang.String siteName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="siteName" type="java.lang.String" />
            <output variable="receiveActNo" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl getShipRequestDetail" type="invokebean" description="public java.lang.String getShipRequestDetail(java.lang.String shipRequestName, java.lang.String materialSpecName, java.lang.String materialQuantity)" bounds="74,546,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="getShipRequestDetail" operationDesc="public java.lang.String getShipRequestDetail(java.lang.String shipRequestName, java.lang.String materialSpecName, java.lang.String materialQuantity)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="materialSpecName" type="java.lang.String" />
            <input variable="receiveQuantity" type="java.lang.String" />
            <output variable="poDetailName" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl checkLimitedSpec" type="invokebean" description="public void checkLimitedSpec(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveQty, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String materialSpecName, java.lang.String receiveActno, java.lang.String flag)" bounds="296,606,174,100" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="checkLimitedSpec" operationDesc="public void checkLimitedSpec(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveQty, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String materialSpecName, java.lang.String receiveActno, java.lang.String flag)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="receiveQuantity" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="poDetailName" type="java.lang.String" />
            <input variable="materialPackingName" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl ShipRequestCreateBoxByLabel" type="invokebean" description="public void ShipRequestCreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String receiveRequestName, java.lang.String materialPackingName, java.lang.String poDetailName, java.lang.String makeDate, java.lang.String receiveQuantity, java.lang.String materialSpecName, java.lang.String supplierName, java.lang.String NPFlag, java.lang.String palletID, java.lang.String EXPIRINGDATE)" bounds="74,681,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="ShipRequestCreateBoxByLabel" operationDesc="public void ShipRequestCreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String receiveRequestName, java.lang.String materialPackingName, java.lang.String poDetailName, java.lang.String makeDate, java.lang.String receiveQuantity, java.lang.String materialSpecName, java.lang.String supplierName, java.lang.String NPFlag, java.lang.String palletID, java.lang.String EXPIRINGDATE)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" />
            <input variable="siteName" />
            <input variable="receiveActNo" />
            <input variable="receiveRequestName" />
            <input variable="materialPackingName" />
            <input variable="poDetailName" />
            <input variable="makeDate" />
            <input variable="receiveQuantity" />
            <input variable="materialSpecName" />
            <input variable="supplierName" />
            <input constant="N" type="java.lang.String" />
            <input variable="PalletID" />
            <input variable="EXPIRINGDATE" />
            <input variable="charge" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,816,141,105" 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="74,951,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="PDASender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

