<?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="CreateMaterialSpec.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialServiceImpl" partnerLinkType="bean:MaterialServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="checkoutUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CHECKOUTUSER')" />
        <variable name="checkState" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CHECKSTATE')" />
        <variable name="createUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/CREATEUSER')" />
        <variable name="desc_cn" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DESC_CN')" />
        <variable name="desc_en" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DESC_EN')" />
        <variable name="description" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DESCRIPTION')" />
        <variable name="erpFactoryName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ERPFACTORYNAME')" />
        <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="expirationDateFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/EXPIRATIONDATEFLAG')" />
        <variable name="expirationDay" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/EXPIRATIONDAY')" />
        <variable name="materialGroup" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALGROUP')" />
        <variable name="materialGroupDescription" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALGROUPDESCRIPTION')" />
        <variable name="materialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="materialSpecType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECTYPE')" />
        <variable name="materialType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALTYPE')" />
        <variable name="materialUnit" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALUNIT')" />
        <variable name="materialWeight" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALWEIGHT')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="OICSender" messageType="java.lang.String"></variable>
        <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="stockinEffectiveDay" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/STOCKINEFFECTIVEDAY')" />
    </variables>
    <sequence>
        <receive name="CreateMaterialSpec" 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="CreateMaterialSpec" 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="MaterialServiceImpl createSpec" type="invokebean" description="public void createSpec(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialSpecName, java.lang.String description, java.lang.String checkState, java.lang.String createUser, java.lang.String checkoutUser, java.lang.String desc_cn, java.lang.String desc_en, java.lang.String materialType, java.lang.String materialGroup, java.lang.String materialGroupDescription, java.lang.String materialUnit, java.lang.String expirationDateFlag, java.lang.String expirationDay, java.lang.String stockinEffectiveDay, java.lang.String erpLocation, java.lang.String materialWeight, java.lang.String erpFactoryname, java.lang.String materialSpecType)" bounds="50,257,141,105" partnerLink="MaterialServiceImpl" partnerLinkType="MaterialServiceImpl" operation="createSpec" operationDesc="public void createSpec(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialSpecName, java.lang.String description, java.lang.String checkState, java.lang.String createUser, java.lang.String checkoutUser, java.lang.String desc_cn, java.lang.String desc_en, java.lang.String materialType, java.lang.String materialGroup, java.lang.String materialGroupDescription, java.lang.String materialUnit, java.lang.String expirationDateFlag, java.lang.String expirationDay, java.lang.String stockinEffectiveDay, java.lang.String erpLocation, java.lang.String materialWeight, java.lang.String erpFactoryname, java.lang.String materialSpecType)" 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="materialSpecName" type="java.lang.String" />
            <input variable="description" type="java.lang.String" />
            <input variable="checkState" type="java.lang.String" />
            <input variable="createUser" type="java.lang.String" />
            <input variable="checkoutUser" type="java.lang.String" />
            <input variable="desc_cn" type="java.lang.String" />
            <input variable="desc_en" type="java.lang.String" />
            <input variable="materialType" type="java.lang.String" />
            <input variable="materialGroup" type="java.lang.String" />
            <input variable="materialGroupDescription" type="java.lang.String" />
            <input variable="materialUnit" type="java.lang.String" />
            <input variable="expirationDateFlag" type="java.lang.String" />
            <input variable="expirationDay" type="java.lang.String" />
            <input variable="stockinEffectiveDay" type="java.lang.String" />
            <input variable="erpLocation" type="java.lang.String" />
            <input variable="materialWeight" type="java.lang.String" />
            <input variable="erpFactoryName" type="java.lang.String" />
            <input variable="materialSpecType" 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>

