<?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="ReceiveMaterialReport.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="0001" messageType="java.lang.String"></variable>
        <variable name="311" messageType="java.lang.String"></variable>
        <variable name="B17" messageType="java.lang.String"></variable>
        <variable name="charge" messageType="java.lang.String"></variable>
        <variable name="checkResult" messageType="java.lang.String"></variable>
        <variable name="description" messageType="java.lang.String"></variable>
        <variable name="erpFactory" messageType="java.lang.String"></variable>
        <variable name="erpLocation" messageType="java.lang.String"></variable>
        <variable name="error" messageType="java.lang.Exception"></variable>
        <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="expiringDate" messageType="java.lang.String"></variable>
        <variable name="line" messageType="java.lang.String"></variable>
        <variable name="makeDate" messageType="java.lang.String"></variable>
        <variable name="materialElement" messageType="org.jdom.Element"></variable>
        <variable name="materialList" messageType="java.util.List"></variable>
        <variable name="materialQuantity" messageType="java.lang.String"></variable>
        <variable name="materialSpecName" messageType="java.lang.String"></variable>
        <variable name="MES" messageType="java.lang.String"></variable>
        <variable name="MESCALL" messageType="java.lang.String"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="reasonCode" messageType="java.lang.String"></variable>
        <variable name="reasonCodeType" messageType="java.lang.String"></variable>
        <variable name="receiveLocation" messageType="java.lang.String"></variable>
        <variable name="receiver" messageType="java.lang.String"></variable>
        <variable name="remark" messageType="java.lang.String"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnType" messageType="java.lang.String"></variable>
        <variable name="rtTypeDescription" messageType="java.lang.String"></variable>
        <variable name="shipRequestDetailName" messageType="java.lang.String"></variable>
        <variable name="shipRequestName" messageType="java.lang.String"></variable>
        <variable name="shipTime" messageType="java.lang.String"></variable>
        <variable name="SMTSender" messageType="java.lang.String"></variable>
        <variable name="supplierName" messageType="java.lang.String"></variable>
        <variable name="supplierNO" messageType="java.lang.String"></variable>
        <variable name="toMESMessage" messageType="org.jdom.Document"></variable>
        <variable name="woElement" messageType="org.jdom.Element"></variable>
        <variable name="workOrder" messageType="java.lang.String"></variable>
        <variable name="workOrderList" messageType="java.util.List"></variable>
        <variable name="workOrderType" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="ReceiveMaterialReport" bounds="70,30,149,62">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <expression name="expression" type="expression" bounds="74,122,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('shipRequestName',getXmlData('message', '//SHIPREQUESTNAME'))" />
            <function value="setVariable('materialList',getElementList('message','//MATERIAL'))" />
        </expression>
        <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,217,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="FABReceiveMaterialReport" type="java.lang.String" />
            <input constant="FABMES" type="java.lang.String" />
            <input constant="FABReceiveMaterialReport" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input variable="reasonCode" type="java.lang.String" />
            <output variable="eventInfo" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,352,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <while name="while" bounds="128,487,32,32" type="2" collection="materialList" element="materialElement">
            <source idx="0" terminal="5,A" />
            <whilestart name="whilestart" type="whilestart" bounds="89,566,110,49">
                <source idx="0" terminal="5,A" />
            </whilestart>
            <expression name="expression" type="expression" bounds="74,645,141,65">
                <source idx="0" terminal="5,A" />
                <function value="setVariable('shipRequestDetailName',getXmlData('materialElement','//SHIPREQUESTDETAIL'))" />
                <function value="setVariable('materialSpecName',getXmlData('materialElement','//MATERIALSPEC'))" />
                <function value="setVariable('materialQuantity',getXmlData('materialElement','//QUANTITY'))" />
            </expression>
            <invoke name="MaterialShipRequestServiceImpl FABReceiveMaterialReport" type="invokebean" description="public void FABReceiveMaterialReport(java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String materialSpecName, java.lang.String materialQuantity)" bounds="74,740,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="FABReceiveMaterialReport" operationDesc="public void FABReceiveMaterialReport(java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String materialSpecName, java.lang.String materialQuantity)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="shipRequestName" type="java.lang.String" />
                <input variable="shipRequestDetailName" type="java.lang.String" />
                <input variable="materialSpecName" type="java.lang.String" />
                <input variable="materialQuantity" type="java.lang.String" />
            </invoke>
            <whileend name="whileend" type="whileend" bounds="89,865,110,49">
                <source idx="0" terminal="5,A" />
            </whileend>
        </while>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,944,141,105" 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="74,1079,141,65">
            <source idx="0" terminal="5,A" />
        </terminate>
    </sequence>
</process>

