<?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="PDACreateBoxByLabel.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="areaName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKING/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="doc" messageType="org.jdom.Document"></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="ERPSender" messageType="java.lang.String"></variable>
        <variable name="error" messageType="java.lang.Exception"></variable>
        <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/Body/LASTEVENTUSER')" />
        <variable name="EveryBoxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/BodyMATERIALCREATEQUANTITY')" />
        <variable name="expiringDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/EXPIRINGDATE')" />
        <variable name="improvmentFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/IMPROVMENTFLAG')" />
        <variable name="invoiceType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/STOCKINTYPE')" />
        <variable name="listMaterialPacking" messageType="java.lang.String"></variable>
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKINGNAME')" />
        <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="palletID" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPERMATERIALPACKINGNAME')" />
        <variable name="poDetailName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEREQUESTDETAILNAME')" />
        <variable name="reasonCodeType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODETYPE')" />
        <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="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="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <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="492,34,301,564">
        <catchAll name="catchAll" type="catchAll" bounds="31,43,212,492">
            <invoke name="TransactionUtil rollbackTransaction" type="invokebean" description="public void rollbackTransaction()" bounds="33,7,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="rollbackTransaction" operationDesc="public void rollbackTransaction()" ignoreThrow="false" fork="false" />
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, java.lang.String senderName)" bounds="34,128,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendErrorBySender" operationDesc="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, java.lang.Exception e, 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="" type="java.lang.String" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="PDASender" type="java.lang.String" />
            </invoke>
            <invoke name="ESBService makeErrorMessageLog" type="invokebean" description="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" bounds="35,254,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="makeErrorMessageLog" operationDesc="public java.lang.String makeErrorMessageLog(org.jdom.Document doc, java.lang.Exception e, java.lang.String language)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="message" type="org.jdom.Document" />
                <input variable="error" type="java.lang.Exception" />
                <input constant="" type="java.lang.String" />
            </invoke>
            <terminate name="terminate" bounds="34,381,141,65">
                <source idx="0" terminal="5,A" />
            </terminate>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="PDACreateBoxByLabel" bounds="70,30,149,81">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <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,141,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="CreateBoxByLabel" type="java.lang.String" />
            <input variable="eventUser" type="java.lang.String" />
            <input variable="eventComment" type="java.lang.String" />
            <input variable="reasonCodeType" type="java.lang.String" />
            <input constant="" type="java.lang.String" />
            <output variable="eventInfo" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="74,276,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl checkActState" type="invokebean" description="public void checkActState(java.lang.String receiveActNo)" bounds="74,411,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="checkActState" operationDesc="public void checkActState(java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="receiveActNo" type="java.lang.String" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="MaterialPackingServiceImpl PDACreateBoxByLabel" type="invokebean" description="public void PDACreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String receiveRequestName, java.lang.String materialPackingName, java.lang.String poDetailName, java.lang.String makeDate, java.lang.String receiveQuantity, java.lang.String materialSpecName, java.lang.String supplierName, java.lang.String NPFlag, java.lang.String palletID, java.lang.String improvmentFlag, java.lang.String erpLocation, java.lang.String erpFactory, java.lang.String invoiceType, java.lang.String charge, java.lang.String expiringDate)" bounds="74,546,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="PDACreateBoxByLabel" operationDesc="public void PDACreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String receiveActNo, java.lang.String receiveRequestName, java.lang.String materialPackingName, java.lang.String poDetailName, java.lang.String makeDate, java.lang.String receiveQuantity, java.lang.String materialSpecName, java.lang.String supplierName, java.lang.String NPFlag, java.lang.String palletID, java.lang.String improvmentFlag, java.lang.String erpLocation, java.lang.String erpFactory, java.lang.String invoiceType, java.lang.String charge, java.lang.String expiringDate)" 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="receiveActNo" type="java.lang.String" />
            <input variable="receiveRequestName" type="java.lang.String" />
            <input variable="materialPackingName" type="java.lang.String" />
            <input variable="poDetailName" type="java.lang.String" />
            <input variable="makeDate" type="java.lang.String" />
            <input variable="receiveQuantity" type="java.lang.String" />
            <input variable="materialSpecName" type="java.lang.String" />
            <input variable="supplierName" type="java.lang.String" />
            <input constant="N" type="java.lang.String" />
            <input variable="palletID" type="java.lang.String" />
            <input variable="improvmentFlag" type="java.lang.String" />
            <input variable="erpLocation" type="java.lang.String" />
            <input variable="erpFactory" type="java.lang.String" />
            <input variable="invoiceType" type="java.lang.String" />
            <input variable="charge" type="java.lang.String" />
            <input variable="expiringDate" type="java.lang.String" />
            <fault faultName="catchAll" variable="error" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="74,681,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <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="74,816,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>

