<?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="CreateBoxAndActInfo.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialReceiveRequestServiceImpl" partnerLinkType="bean:MaterialReceiveRequestServiceImpl" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="actType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ACTTYPE')" />
        <variable name="areaName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/AREANAME')" />
        <variable name="boxFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/BOXQTYFLAG')" />
        <variable name="boxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="charge" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CHARGE')" />
        <variable name="CreateStorageSpec" messageType="java.lang.String"></variable>
        <variable name="erpFactory" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ERPFACTORY')" />
        <variable name="erpLocation" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/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="EveryBoxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="lastEventTimeKey" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/LASTEVENTTIMEKEY')" />
        <variable name="listMaterialPacking" messageType="java.lang.String"></variable>
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="materialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODETYPE')" />
        <variable name="ReceiveAct" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEACTNO')" />
        <variable name="receiveQty" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQTY')" />
        <variable name="receiveQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQTY')" />
        <variable name="receiveRequestDetailName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTDETAILNAME')" />
        <variable name="receiveRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTNAME')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="shipRequestDetailName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="subMaterialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUBMATERIALSPECNAME')" />
        <variable name="supplierName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPPLIERNAME')" />
        <variable name="TrackOutBox" messageType="org.jdom.Document"></variable>
    </variables>
    <faultHandlers name="faultHandlers" bounds="457,564,260,160">
        <catchAll name="catchAll" type="catchAll" bounds="78,33,111,105">
            <invoke name="MaterialPackingServiceImpl deleteActNO" type="invokebean" description="public static void deleteActNO(java.lang.String receiveActNo)" bounds="9,1,66,49" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="deleteActNO" operationDesc="public static void deleteActNO(java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
                <input variable="receiveActNo" type="java.lang.String" />
            </invoke>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="CreateBoxAndActInfo" bounds="70,30,149,81">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="65,141,158,106" 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 eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="74,277,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="TrackOutBox" 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 CreateMaterialReceiveRequestAct" type="invokebean" description="public void CreateMaterialReceiveRequestAct(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String ReceiveRequestDetailName, java.lang.String makeDate, java.lang.String receiveActNo, java.lang.String actType, java.lang.String receiveQuantity, java.lang.String subMaterialSpecName)" bounds="74,412,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="CreateMaterialReceiveRequestAct" operationDesc="public void CreateMaterialReceiveRequestAct(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveRequestName, java.lang.String ReceiveRequestDetailName, java.lang.String makeDate, java.lang.String receiveActNo, java.lang.String actType, java.lang.String receiveQuantity, java.lang.String subMaterialSpecName)" 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="receiveRequestName" type="java.lang.String" />
            <input variable="receiveRequestDetailName" type="java.lang.String" />
            <input variable="makeDate" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input variable="actType" type="java.lang.String" />
            <input variable="receiveQuantity" type="java.lang.String" />
            <input variable="subMaterialSpecName" type="java.lang.String" />
            <fault faultName="catchAll" variable="receiveActNo" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl Packing" type="invokebean" description="public static java.lang.String Packing(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String areaName, java.lang.String receiveQty, java.lang.String boxQuantity, java.lang.String EveryBoxQuantity, java.lang.String boxFlag, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String materialSpecName, java.lang.String receiveActNo, java.lang.String makeDate, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String reasonCodeType, java.lang.String reasonCode, java.lang.String erpLocation, java.lang.String erpFactory, java.lang.String charge, java.lang.String supplierName)" bounds="74,547,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="Packing" operationDesc="public static java.lang.String Packing(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String areaName, java.lang.String receiveQty, java.lang.String boxQuantity, java.lang.String EveryBoxQuantity, java.lang.String boxFlag, java.lang.String receiveRequestName, java.lang.String receiveRequestDetailName, java.lang.String materialSpecName, java.lang.String receiveActNo, java.lang.String makeDate, java.lang.String shipRequestName, java.lang.String shipRequestDetailName, java.lang.String reasonCodeType, java.lang.String reasonCode, java.lang.String erpLocation, java.lang.String erpFactory, java.lang.String charge, java.lang.String supplierName)" 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="areaName" type="java.lang.String" />
            <input variable="receiveQty" type="java.lang.String" />
            <input variable="boxQuantity" type="java.lang.String" />
            <input variable="EveryBoxQuantity" type="java.lang.String" />
            <input variable="boxFlag" type="java.lang.String" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="receiveRequestDetailName" type="java.lang.String" />
            <input variable="materialSpecName" type="java.lang.String" />
            <input variable="receiveActNo" type="java.lang.String" />
            <input variable="makeDate" type="java.lang.String" />
            <input variable="shipRequestName" type="java.lang.String" />
            <input variable="shipRequestDetailName" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input variable="reasonCode" type="java.lang.String" />
            <input variable="erpLocation" type="java.lang.String" />
            <input variable="erpFactory" type="java.lang.String" />
            <input variable="charge" type="java.lang.String" />
            <input variable="supplierName" type="java.lang.String" />
            <output variable="lastEventTimeKey" />
            <fault faultName="catchAll" variable="receiveActNo" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="63,682,162,103" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="CommonValidation setReturnDoc" type="invokebean" description="public static void setReturnDoc(java.lang.String nodeValue, java.lang.String nodeName, org.jdom.Document doc)" bounds="74,815,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="setReturnDoc" operationDesc="public static void setReturnDoc(java.lang.String nodeValue, java.lang.String nodeName, org.jdom.Document doc)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="lastEventTimeKey" type="java.lang.String" />
            <input constant="LASTEVENTTIMEKEY" type="java.lang.String" />
            <input variable="message" type="org.jdom.Document" />
        </invoke>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="74,950,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="OICSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

