<?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="PDAMakeMaterialScrapped.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="119" messageType="java.lang.String"></variable>
        <variable name="ERPEventTime" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/RECEIVETIME')" />
        <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="makeScrappedInfo" messageType="com.cim.idm.wmspackage.materialpacking.management.info.MaterialPackingMakeScrappedInfo"></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="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="requestDetailName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/RECEIVEREQUESTDETAILNAME')" />
        <variable name="siteList" messageType="java.util.List" expression="getXmlDataList('message', '//Message/Body/BoxState/SITENAME')" />
    </variables>
    <sequence>
        <receive name="PDAMakeMaterialScraped" bounds="85,45,149,62">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="89,137,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="89,272,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="PDAMakeMaterialScraped" 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 makeScrapped" type="invokebean" description="public void makeScrapped(java.util.List siteNameList, java.util.List materialPackingNameList, java.util.List materialSpecNameList, java.lang.String requestDetailName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="89,407,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="makeScrapped" operationDesc="public void makeScrapped(java.util.List siteNameList, java.util.List materialPackingNameList, java.util.List materialSpecNameList, java.lang.String requestDetailName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" 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="requestDetailName" type="java.lang.String" />
            <input variable="ERPEventTime" type="java.lang.String" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
        </invoke>
        <invoke name="ERPInterfaceServiceImpl erpInterface_WMS19" type="invokebean" description="public static java.util.List erpInterface_WMS19(java.lang.String shipType, java.lang.String requestDetailName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="89,542,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erpInterface_WMS19" operationDesc="public static java.util.List erpInterface_WMS19(java.lang.String shipType, java.lang.String requestDetailName, java.lang.String erpEventTime, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input constant="551" type="java.lang.String" />
            <input variable="requestDetailName" 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, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="89,677,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="insertScrappedInfo" operationDesc="public void insertScrappedInfo(java.util.List materialUnDoinfoList, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="materialUnDoInfoList" type="java.util.List" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="89,812,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="89,947,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>

