<?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="PDAConfirmedShipRequest.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="MaterialShipRequestDetailServiceImpl" partnerLinkType="bean:MaterialShipRequestDetailServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="CommonValidation" partnerLinkType="bean:CommonValidation" />
        <partnerLink name="ERPInterfaceServiceImpl" partnerLinkType="bean:ERPInterfaceServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="Assign" messageType="java.lang.String"></variable>
        <variable name="boxItem" messageType="org.jdom.Element"></variable>
        <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('PDAConfirmedShipRequest', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="Confirmed" messageType="java.lang.String"></variable>
        <variable name="DELIVERYTYPE" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Body/MATERIALSHIPREQUEST/DELIVERYTYPE')" />
        <variable name="eventComent" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Header/EVENTCOMMENT')" />
        <variable name="EVENTCOMMENT" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Header/EVENTCOMMENT')" />
        <variable name="eventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//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('PDAConfirmedShipRequest', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="messageID" messageType="java.lang.String"></variable>
        <variable name="messagename" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//message/header/messagename')" />
        <variable name="packingName" messageType="java.lang.String"></variable>
        <variable name="PDAConfirmedShipRequest" messageType="org.jdom.Document"></variable>
        <variable name="PDASender" messageType="java.lang.String"></variable>
        <variable name="replysubjectname" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="SHIPREQUESTDETAILNAME" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Body/SHIPREQUESTDETAILNAME')" />
        <variable name="SHIPREQUESTNAME" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Body/MATERIALSHIPREQUEST/SHIPREQUESTNAME')" />
        <variable name="shipRequestState" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Body/MATERIALSHIPREQUEST/SHIPREQUESTSTATE')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('PDAConfirmedShipRequest', '//Message/Body/MATERIALPACKING/SITENAME')" />
        <variable name="siteNameList" messageType="java.util.List" expression="getXmlDataList('PDAConfirmedShipRequest', '//Message/Body/MATERIALPACKING/SITENAME')" />
        <variable name="validateMessage" messageType="java.lang.String"></variable>
    </variables>
    <sequence>
        <receive name="PDAConfirmedShipRequest" bounds="172,30,149,77">
            <input variable="PDAConfirmedShipRequest" type="org.jdom.Document" />
        </receive>
        <expression name="expression" type="expression" bounds="176,137,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('boxList', getElementList('PDAConfirmedShipRequest','//MATERIALPACKING'))" />
        </expression>
        <switch name="switch" bounds="230,232,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="191,311,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('shipRequestState') = 'Reserved'" bounds="114,390,60,53">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="94,473,100,92" 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,595,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="action_exceptAction" type="java.lang.String" />
                    <input variable="messagename" />
                    <input variable="eventUser" />
                    <input variable="EVENTCOMMENT" />
                    <input constant="" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                    <output variable="eventInfo" />
                </invoke>
                <invoke name="MaterialShipRequestServiceImpl PDAupdateConfirm" type="invokebean" description="public void PDAupdateConfirm(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List siteNameList, java.lang.String invoiceNo, java.lang.String shipRequestState)" bounds="74,730,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="PDAupdateConfirm" operationDesc="public void PDAupdateConfirm(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List siteNameList, java.lang.String invoiceNo, java.lang.String shipRequestState)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="siteNameList" type="java.util.List" />
                    <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                    <input constant="Confirmed" type="java.lang.String" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="305,390,88,52">
                <source idx="0" terminal="5,A" />
                <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="299,472,100,92" 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 behaviorName, java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="279,594,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, org.jdom.Document doc, java.lang.String flag)" bounds="279,729,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="updateMaterialPackingShipRequest" operationDesc="public void updateMaterialPackingShipRequest(com.cim.idm.framework.data.EventInfo eventInfo, org.jdom.Document doc, 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="PDAConfirmedShipRequest" type="org.jdom.Document" />
                    <input constant="Assign" type="java.lang.String" />
                </invoke>
                <invoke name="MaterialShipRequestDetailServiceImpl updateShipRequestDetailAssignedQty" type="invokebean" description="public void updateShipRequestDetailAssignedQty(org.jdom.Document doc, java.lang.String flag)" bounds="279,864,141,105" partnerLink="MaterialShipRequestDetailServiceImpl" partnerLinkType="MaterialShipRequestDetailServiceImpl" operation="updateShipRequestDetailAssignedQty" operationDesc="public void updateShipRequestDetailAssignedQty(org.jdom.Document doc, java.lang.String flag)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="PDAConfirmedShipRequest" type="org.jdom.Document" />
                    <input constant="Assign" type="java.lang.String" />
                </invoke>
                <invoke name="MaterialShipRequestServiceImpl PDAupdateConfirm" type="invokebean" description="public void PDAupdateConfirm(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List siteNameList, java.lang.String invoiceNo, java.lang.String shipRequestState)" bounds="279,999,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="PDAupdateConfirm" operationDesc="public void PDAupdateConfirm(com.cim.idm.framework.data.EventInfo eventInfo, java.util.List siteNameList, java.lang.String invoiceNo, java.lang.String shipRequestState)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input variable="siteNameList" type="java.util.List" />
                    <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                    <input constant="Confirmed" type="java.lang.String" />
                </invoke>
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="332,1124,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A" />
            </switchend>
        </switch>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xD;&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="239,1203,296,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xA;&#x9;&#x9;throws java.lang.Exception" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="replysubjectname" type="java.lang.String" />
            <input variable="PDAConfirmedShipRequest" type="org.jdom.Document" />
            <input variable="returnElement" type="org.jdom.Element" />
            <input constant="PDASender" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="302,1335,171,92" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <switch name="switch" bounds="371,1457,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="332,1536,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('DELIVERYTYPE') = 'Delivery'" bounds="216,1615,60,49">
                <source idx="0" terminal="5,A" />
                <invoke name="CommonValidation GetMessageID" type="invokebean" description="public java.lang.String GetMessageID(java.lang.String sitename)" bounds="176,1694,141,105" partnerLink="CommonValidation" partnerLinkType="CommonValidation" operation="GetMessageID" operationDesc="public java.lang.String GetMessageID(java.lang.String sitename)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="siteName" type="java.lang.String" />
                    <output variable="messageID" />
                </invoke>
                <invoke name="ERPInterfaceServiceImpl erp_StockOut_WMS05" type="invokebean" description="public static java.util.List erp_StockOut_WMS05(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String flag, java.lang.String messageID, java.lang.String ErpEventTime)" bounds="176,1829,141,105" partnerLink="ERPInterfaceServiceImpl" partnerLinkType="ERPInterfaceServiceImpl" operation="erp_StockOut_WMS05" operationDesc="public static java.util.List erp_StockOut_WMS05(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String flag, java.lang.String messageID, java.lang.String ErpEventTime)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="SHIPREQUESTNAME" type="java.lang.String" />
                    <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                    <input constant="0" type="java.lang.String" />
                    <input variable="messageID" type="java.lang.String" />
                    <input constant="" type="java.lang.String" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="484,1615,88,59">
                <source idx="0" terminal="5,A" />
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="332,1954,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A" />
            </switchend>
        </switch>
    </sequence>
</process>

