<?xml version="1.0" encoding="euc-kr"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="DeassignShipRequestToOEM.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="MaterialShipRequestToOEMServiceImpl" partnerLinkType="bean:MaterialShipRequestToOEMServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="boxList" messageType="java.util.List"></variable>
        <variable name="boxName" messageType="org.jdom.Element"></variable>
        <variable name="boxQty" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="Deassign" messageType="java.lang.String"></variable>
        <variable name="DeassignShipRequestToOEM" messageType="org.jdom.Document"></variable>
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Header/EVENTUSER')" />
        <variable name="Language" messageType="java.lang.String"></variable>
        <variable name="materialPacking" messageType="com.cim.idm.wmspackage.materialpacking.management.data.MaterialPacking"></variable>
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="messageName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Header/MESSAGENAME')" />
        <variable name="packingName" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/RECEIVEACTNO')" />
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shipRequestDetailName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/SITENAME')" />
        <variable name="subMaterialSpecName" messageType="java.lang.String" expression="getXmlData('DeassignShipRequestToOEM', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="validateMessage" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="DeassignShipRequestToOEM" bounds="70,30,149,62">
            <input variable="DeassignShipRequestToOEM" 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('DeassignShipRequestToOEM','//MATERIALPACKINGNAME'))" />
        </expression>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,217,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()">
            <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,352,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="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,487,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="Deassign" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
        </invoke>
        <invoke name="MaterialShipRequestToOEMServiceImpl MakeOEMAssignedQty" type="invokebean" description="public void MakeOEMAssignedQty(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String invoiceNo, java.lang.String invoiceDetailNo, java.lang.String subMaterialSpecName, java.lang.String boxQty, java.lang.String flag)" bounds="74,622,141,105" partnerLink="MaterialShipRequestToOEMServiceImpl" partnerLinkType="MaterialShipRequestToOEMServiceImpl" operation="MakeOEMAssignedQty" operationDesc="public void MakeOEMAssignedQty(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String invoiceNo, java.lang.String invoiceDetailNo, java.lang.String subMaterialSpecName, java.lang.String boxQty, 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="shipRequestName" type="java.lang.String" />
            <input variable="shipRequestDetailName" type="java.lang.String" />
            <input variable="subMaterialSpecName" type="java.lang.String" />
            <input variable="boxQty" type="java.lang.String" />
            <input constant="Deassign" 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,757,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="DeassignShipRequestToOEM" 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="74,892,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()">
            <source idx="0" terminal="5,A" />
        </invoke>
    </sequence>
</process>

