<?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="PDAMakeMaterialPreScrapped.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="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="511" messageType="java.lang.String"></variable>
        <variable name="erpEventTime" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/RECEIVETIME')" />
        <variable name="erpLocation" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/ERPLOCATION')" />
        <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="factory" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/ERPFACTORY')" />
        <variable name="MakeMaterialPreScraped" messageType="java.lang.String"></variable>
        <variable name="materialPackingNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/BoxState/MATERIALPACKINGNAME')" />
        <variable name="materialSpecNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/BoxState/MATERIALSPECNAME')" />
        <variable name="materialUnDoInfoList" messageType="java.util.List"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="PDAMakeMaterialPreScrapped" messageType="org.jdom.Document"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/SHIPREQUESTNAME')" />
        <variable name="siteList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/BoxState/SITENAME')" />
        <variable name="unDoDetailNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/MATERIALINVOKE/UNDODETAILNAME')" />
        <variable name="unDoMaterialChargeList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/MATERIALINVOKE/CHARGE')" />
        <variable name="unDoMaterialQuantityList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/MATERIALINVOKE/MATERIALQUANTITY')" />
        <variable name="unDoMaterialSpecNameList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/MATERIALINVOKE/MATERIALSPECNAME')" />
    </variables>
    <sequence>
        <receive name="PDAMakeMaterialPreScraped" bounds="100,60,149,62">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="104,152,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 eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="104,287,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="PDAMakeMaterialPreScraped" 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 makePreScrapped" type="invokebean" description="public void makePreScrapped(java.util.List siteNameList, java.util.List materialPackingNameList, java.util.List materialSpecNameList, java.util.List unDoDetailNameList, java.util.List unDoMaterialSpecNameList, java.lang.String factory, java.lang.String erpLocation, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String shipRequestName)" bounds="104,422,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makePreScrapped" operationDesc="public void makePreScrapped(java.util.List siteNameList, java.util.List materialPackingNameList, java.util.List materialSpecNameList, java.util.List unDoDetailNameList, java.util.List unDoMaterialSpecNameList, java.lang.String factory, java.lang.String erpLocation, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String shipRequestName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteList" type="java.util.List" />
            <input variable="materialPackingNameList" type="java.util.List" />
            <input variable="materialSpecNameList" type="java.util.List" />
            <input variable="unDoDetailNameList" type="java.util.List" />
            <input variable="unDoMaterialSpecNameList" type="java.util.List" />
            <input variable="factory" type="java.lang.String" />
            <input variable="erpLocation" type="java.lang.String" />
            <input variable="erpEventTime" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="shipRequestName" type="java.lang.String" />
        </invoke>
        <invoke name="ERPInterfaceServiceImpl erpInterface_WMS19ForPreScrapped" type="invokebean" description="public static java.util.List erpInterface_WMS19ForPreScrapped(java.lang.String shipType, java.util.List unDoDetailNameList, java.util.List unDoMaterialSpecNameList, java.util.List materialQuantityList, java.util.List materialChargeList, java.lang.String erpFactoryName, java.lang.String erpLocation, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="104,557,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS19ForPreScrapped" operationDesc="public static java.util.List erpInterface_WMS19ForPreScrapped(java.lang.String shipType, java.util.List unDoDetailNameList, java.util.List unDoMaterialSpecNameList, java.util.List materialQuantityList, java.util.List materialChargeList, java.lang.String erpFactoryName, java.lang.String erpLocation, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input constant="511" type="java.lang.String" />
            <input variable="unDoDetailNameList" type="java.util.List" />
            <input variable="unDoMaterialSpecNameList" type="java.util.List" />
            <input variable="unDoMaterialQuantityList" type="java.util.List" />
            <input variable="unDoMaterialChargeList" type="java.util.List" />
            <input variable="factory" type="java.lang.String" />
            <input variable="erpLocation" type="java.lang.String" />
            <input variable="erpEventTime" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <output variable="materialUnDoInfoList" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl insertScrappedInfo" type="invokebean" description="public void insertScrappedInfo(java.util.List materialUnDoinfoList)" bounds="104,692,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="insertScrappedInfo" operationDesc="public void insertScrappedInfo(java.util.List materialUnDoinfoList)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="materialUnDoInfoList" />
            <input variable="eventInfo" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="104,827,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="104,962,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>

