<?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="CreateShipRequest.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialShipRequestServiceImpl" partnerLinkType="bean:MaterialShipRequestServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="costCenter" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/COSTCENTER')" />
        <variable name="customerNO" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CUSTOMERNO')" />
        <variable name="customsDeclare" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CUSTOMSDECLARE')" />
        <variable name="deliveryType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DELIVERYTYPE')" />
        <variable name="erpFactoryName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ERPFACTORYNAME')" />
        <variable name="erpReceiveFactory" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ERPRECEIVEFACTORY')" />
        <variable name="erpReceiveLocation" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ERPRECEIVELOCATION')" />
        <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="exportNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/EXPORTNO')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="receiver" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/RECEIVER')" />
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="saleReason" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SALEREASON')" />
        <variable name="saleReasonDescription" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SALEREASONDESCRIPTION')" />
        <variable name="shipPlanDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPPLANDATE')" />
        <variable name="shipRequestDetailType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTDETAILTYPE')" />
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="shipRequestState" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTSTATE')" />
        <variable name="shipRequestType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTTYPE')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="systemType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SYSTEMTYPE')" />
    </variables>
    <sequence>
        <receive name="CreateShipRequest" bounds="70,30,101,62">
            <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="50,122,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="CreateShipRequest" 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="MaterialShipRequestServiceImpl createForOEM" type="invokebean" description="public void createForOEM(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String shipRequestName, java.lang.String systemType, java.lang.String shipRequestState, java.lang.String shipRequestType, java.lang.String shipRequestDetailType, java.lang.String customerNO, java.lang.String deliveryType, java.lang.String shipPlanDate, java.lang.String exportNo, java.lang.String erpFactoryName, java.lang.String erpReceiveFactory, java.lang.String erpReceiveLocation, java.lang.String saleReason, java.lang.String saleReasonDescription, java.lang.String customsDeclare, java.lang.String costCenter, java.lang.String receiver)" bounds="50,257,141,105" partnerLink="MaterialShipRequestServiceImpl" partnerLinkType="MaterialShipRequestServiceImpl" operation="createForOEM" operationDesc="public void createForOEM(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String shipRequestName, java.lang.String systemType, java.lang.String shipRequestState, java.lang.String shipRequestType, java.lang.String shipRequestDetailType, java.lang.String customerNO, java.lang.String deliveryType, java.lang.String shipPlanDate, java.lang.String exportNo, java.lang.String erpFactoryName, java.lang.String erpReceiveFactory, java.lang.String erpReceiveLocation, java.lang.String saleReason, java.lang.String saleReasonDescription, java.lang.String customsDeclare, java.lang.String costCenter, java.lang.String receiver)" 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="shipRequestName" type="java.lang.String" />
            <input variable="systemType" type="java.lang.String" />
            <input variable="shipRequestState" type="java.lang.String" />
            <input variable="shipRequestType" type="java.lang.String" />
            <input variable="shipRequestDetailType" type="java.lang.String" />
            <input variable="customerNO" type="java.lang.String" />
            <input variable="deliveryType" type="java.lang.String" />
            <input variable="shipPlanDate" type="java.lang.String" />
            <input variable="exportNo" type="java.lang.String" />
            <input variable="erpFactoryName" type="java.lang.String" />
            <input variable="erpReceiveFactory" type="java.lang.String" />
            <input variable="erpReceiveLocation" type="java.lang.String" />
            <input variable="saleReason" type="java.lang.String" />
            <input variable="saleReasonDescription" type="java.lang.String" />
            <input variable="customsDeclare" type="java.lang.String" />
            <input variable="costCenter" type="java.lang.String" />
            <input variable="receiver" type="java.lang.String" />
        </invoke>
        <invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="50,392,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>

