<?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="ModifyActInfo.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialPackingStockInImpl" partnerLinkType="bean:MaterialPackingStockInImpl" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="MaterialReceiveRequestDetailServiceImpl" partnerLinkType="bean:MaterialReceiveRequestDetailServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="actDetailQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ACTDETAILQUANTITY')" />
        <variable name="actType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ACTTYPE')" />
        <variable name="areaName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/AREANAME')" />
        <variable name="boxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <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="iqcFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DESCRIPTION')" />
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="receiveActNO" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEACTNO')" />
        <variable name="receiveQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQUANTITY')" />
        <variable name="receiveRequestDetailName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTDETAILNAME')" />
        <variable name="receiveRequestDetailQty" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTDETAILQTY')" />
        <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="subMaterialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUBMATERIALSPECNAME')" />
        <variable name="TrackOutBox" messageType="org.jdom.Document"></variable>
    </variables>
    <sequence>
        <receive name="ModifyActInfo" bounds="258,30,149,81">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="262,141,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="MaterialPackingStockInImpl checkReceiveactState" type="invokebean" description="public void checkReceiveactState(java.lang.String receiveActNo)" bounds="262,276,141,105" partnerLink="MaterialPackingStockInImpl" partnerLinkType="MaterialPackingStockInImpl" operation="checkReceiveactState" operationDesc="public void checkReceiveactState(java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="receiveActNO" type="java.lang.String" />
        </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="262,411,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="ModifyActInfo" 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 ModifyBoxQty" type="invokebean" description="public static void ModifyBoxQty(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document doc)" bounds="262,546,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="ModifyBoxQty" operationDesc="public static void ModifyBoxQty(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document doc)" 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>
        <switch name="switch{SEQ}1" bounds="316,681,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="277,760,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('actType') = 'Receive'&#xA; or getVariable('actType') = 'Normal'" bounds="128,839,32,49">
                <source idx="0" terminal="5,A" />
                <invoke name="MaterialReceiveRequestDetailServiceImpl ModifyRequestQtyInfo" type="invokebean" description="public static void ModifyRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String actDetailQuantity, java.lang.String iqcFlag)" bounds="74,918,141,105" partnerLink="MaterialReceiveRequestDetailServiceImpl" partnerLinkType="MaterialReceiveRequestDetailServiceImpl" operation="ModifyRequestQtyInfo" operationDesc="public static void ModifyRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String actDetailQuantity, java.lang.String iqcFlag)" 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="receiveRequestName" type="java.lang.String" />
                    <input variable="receiveRequestDetailName" type="java.lang.String" />
                    <input variable="receiveQuantity" type="java.lang.String" />
                    <input variable="receiveRequestDetailQty" type="java.lang.String" />
                    <input variable="makeDate" type="java.lang.String" />
                    <input variable="receiveActNO" type="java.lang.String" />
                    <input variable="actDetailQuantity" type="java.lang.String" />
                    <input variable="iqcFlag" type="java.lang.String" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,1053,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
                    <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,1188,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>
            </case>
            <case name="case" type="case" condition="getVariable('actType') = 'POOEM'" bounds="305,839,54,53">
                <source idx="0" terminal="5,A" />
                <invoke name="MaterialReceiveRequestDetailServiceImpl ModifyPOOEMRequestQtyInfo" type="invokebean" description="public static void ModifyPOOEMRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String subMaterialSpecName, java.lang.String actDetailQuantity)" bounds="262,922,141,105" partnerLink="MaterialReceiveRequestDetailServiceImpl" partnerLinkType="MaterialReceiveRequestDetailServiceImpl" operation="ModifyPOOEMRequestQtyInfo" operationDesc="public static void ModifyPOOEMRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String subMaterialSpecName, java.lang.String actDetailQuantity)" 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="receiveRequestName" type="java.lang.String" />
                    <input variable="receiveRequestDetailName" type="java.lang.String" />
                    <input variable="receiveQuantity" type="java.lang.String" />
                    <input variable="receiveRequestDetailQty" type="java.lang.String" />
                    <input variable="makeDate" type="java.lang.String" />
                    <input variable="receiveActNO" type="java.lang.String" />
                    <input variable="subMaterialSpecName" type="java.lang.String" />
                    <input variable="actDetailQuantity" type="java.lang.String" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="262,1057,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
                    <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="262,1192,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>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="493,839,61,49">
                <source idx="0" terminal="5,A" />
                <invoke name="MaterialReceiveRequestDetailServiceImpl ModifyShipRequestQtyInfo" type="invokebean" description="public static void ModifyShipRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String actDetailQuantity)" bounds="453,918,141,105" partnerLink="MaterialReceiveRequestDetailServiceImpl" partnerLinkType="MaterialReceiveRequestDetailServiceImpl" operation="ModifyShipRequestQtyInfo" operationDesc="public static void ModifyShipRequestQtyInfo(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String receiveQuantity, java.lang.String receiveRequestDetailQty, java.lang.String makeDate, java.lang.String receiveActNO, java.lang.String actDetailQuantity)" 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="receiveRequestName" type="java.lang.String" />
                    <input variable="receiveRequestDetailName" type="java.lang.String" />
                    <input variable="receiveQuantity" type="java.lang.String" />
                    <input variable="receiveRequestDetailQty" type="java.lang.String" />
                    <input variable="makeDate" type="java.lang.String" />
                    <input variable="receiveActNO" type="java.lang.String" />
                    <input variable="actDetailQuantity" type="java.lang.String" />
                </invoke>
                <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="453,1053,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
                    <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="453,1188,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>
            </otherwise>
        </switch>
    </sequence>
</process>

