<?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="AssignInnerRequestToBox.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialReceiveRequestServiceImpl" partnerLinkType="bean:MaterialReceiveRequestServiceImpl" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="actType" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/ACTTYPE')" />
        <variable name="Assign" messageType="java.lang.String"></variable>
        <variable name="AssignInnerRequestToBox" messageType="org.jdom.Document"></variable>
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="boxQty" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="EVENTCOMMENT" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Header/EVENTUSER')" />
        <variable name="INNERREQUESTDETAILNAME" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/RECEIVEREQUESTDETAILNAME')" />
        <variable name="INNERREQUESTNAME" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/RECEIVEREQUESTNAME')" />
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Header/MESSAGENAME')" />
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/RECEIVEACTNO')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="SHIPREQUESTDETAILNAME" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="SHIPREQUESTNAME" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/SITENAME')" />
        <variable name="subMaterialSpecName" messageType="java.lang.String" expression="getXmlData('AssignInnerRequestToBox', '//Message/Body/MATERIALSPECNAME')" />
    </variables>
    <sequence>
        <receive name="AssignInnerRequestToBox" bounds="70,30,149,62">
            <input variable="AssignInnerRequestToBox" type="org.jdom.Document" />
        </receive>
        <expression name="expression" type="expression" bounds="74,122,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('boxList', getElementList('AssignInnerRequestToBox','//MATERIALPACKINGNAME'))" />
        </expression>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="94,217,100,92" 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 behaviorName, java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="74,339,141,105" partnerLink="EventInfoUtil" partnerLinkType="EventInfoUtil" operation="makeEventInfo" operationDesc="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String behaviorName, 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="action_exceptAction" type="java.lang.String" />
            <input variable="messagename" 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="MaterialReceiveRequestServiceImpl CreateInnerRequestActByLabel" type="invokebean" description="public static void CreateInnerRequestActByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveActNo, java.lang.String actType, java.util.List materialPackingNameList)" bounds="72,480,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="CreateInnerRequestActByLabel" operationDesc="public static void CreateInnerRequestActByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String receiveActNo, java.lang.String actType, java.util.List materialPackingNameList)" 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="SHIPREQUESTNAME" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input constant="RMA" type="java.lang.String" />
            <input variable="boxList" type="java.util.List" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl updateMaterialPackingShipRequest" type="invokebean" description="public void updateMaterialPackingShipRequest(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingNameList, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String flag, java.lang.String receiveActNo)" bounds="74,609,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="updateMaterialPackingShipRequest" operationDesc="public void updateMaterialPackingShipRequest(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.util.List materialPackingNameList, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String flag, java.lang.String receiveActNo)" 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="boxList" type="java.util.List" />
            <input variable="SHIPREQUESTNAME" type="java.lang.String" />
            <input variable="SHIPREQUESTDETAILNAME" type="java.lang.String" />
            <input constant="Assign" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialReceiveRequestServiceImpl InnerRequestDetailQuantity" type="invokebean" description="public void InnerRequestDetailQuantity(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String innerRequestName, java.lang.String innerRequestDetailName, java.lang.String receiveQuantity, java.lang.String flag)" bounds="74,744,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="InnerRequestDetailQuantity" operationDesc="public void InnerRequestDetailQuantity(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String innerRequestName, java.lang.String innerRequestDetailName, java.lang.String receiveQuantity, 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="INNERREQUESTNAME" type="java.lang.String" />
            <input variable="INNERREQUESTDETAILNAME" type="java.lang.String" />
            <input variable="boxQty" type="java.lang.String" />
            <input constant="Assign" type="java.lang.String" />
        </invoke>
        <invoke name="ESBService sendBySender" type="invokebean" description="public void sendBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" bounds="74,879,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendBySender" operationDesc="public void sendBySender(java.lang.String replySubject, org.jdom.Document doc, org.jdom.Element element, java.lang.String senderName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replysubjectname" type="java.lang.String" />
            <input variable="AssignInnerRequestToBox" type="org.jdom.Document" />
            <input variable="returnElement" type="org.jdom.Element" />
            <input constant="OICSender" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="94,1014,100,92" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
    </sequence>
</process>

