<?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="CreateActInfo.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialReceiveRequestServiceImpl" partnerLinkType="bean:MaterialReceiveRequestServiceImpl" />
        <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="boxQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALCREATEQUANTITY')" />
        <variable name="CreateACT" messageType="org.jdom.Document"></variable>
        <variable name="CreateStorageSpec" messageType="java.lang.String"></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/Header/EVENTUSER')" />
        <variable name="innerRequest" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/INNERREQUESTNAME')" />
        <variable name="innerRequestDetail" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/INNERREQUESTDETAILNAME')" />
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <variable name="ReceiveAct" messageType="java.lang.String"></variable>
        <variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEACTNO')" />
        <variable name="receiveQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RECEIVEQUANTITY')" />
        <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="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="subMaterialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUBMATERIALSPECNAME')" />
    </variables>
    <sequence>
        <receive name="CreateActInfo" 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="CreateActInfo" 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>
        <switch name="switch" bounds="128,276,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="89,355,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="isEmpty('innerRequest') ='true()'" bounds="114,434,60,44">
                <source idx="0" terminal="5,A" />
                <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)" bounds="74,508,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)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventInfo" />
                    <input variable="siteName" />
                    <input variable="receiveRequestName" />
                    <input variable="receiveRequestDetailName" />
                    <input variable="makeDate" />
                    <input variable="receiveActNo" />
                    <input variable="actType" />
                    <input variable="receiveQuantity" />
                    <input variable="subMaterialSpecName" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="298,423,86,58">
                <source idx="0" terminal="5,A" />
                <invoke name="MaterialReceiveRequestServiceImpl CreateMaterialReceiveRequestActByInner" type="invokebean" description="public void CreateMaterialReceiveRequestActByInner(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, java.lang.String innerRequest, java.lang.String innerRequestDetail)" bounds="275,502,141,105" partnerLink="MaterialReceiveRequestServiceImpl" partnerLinkType="MaterialReceiveRequestServiceImpl" operation="CreateMaterialReceiveRequestActByInner" operationDesc="public void CreateMaterialReceiveRequestActByInner(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, java.lang.String innerRequest, java.lang.String innerRequestDetail)" 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" />
                    <input variable="innerRequest" type="java.lang.String" />
                    <input variable="innerRequestDetail" type="java.lang.String" />
                </invoke>
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="87,639,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(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="72,759,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>

