<?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="CreatUnUsualInfo.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="SupplierCustomerServiceImpl" partnerLinkType="bean:SupplierCustomerServiceImpl" />
    </partnerLinks>
    <variables>
        <variable name="actNO" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/RECEIVEACTNO')" />
        <variable name="body" messageType="org.jdom.Element" expression="getXmlElement('message', '//Message/Body')" />
        <variable name="customException" messageType="com.cim.idm.wmsextend.generic.errorHandler.CustomException"></variable>
        <variable name="customException2" messageType="java.lang.Exception"></variable>
        <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="eventName" messageType="java.lang.String"></variable>
        <variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
        <variable name="finishFlag" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/FINISHFLAG')" />
        <variable name="language" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/LANGUAGE')" />
        <variable name="lastEventTime" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/LASTEVENTTIME')" />
        <variable name="lastEventUser" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/LASTEVENTUSER')" />
        <variable name="materialSpec" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="materialUdfs" messageType="java.util.HashMap"></variable>
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="oqaResult" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/OQARESULT')" />
        <variable name="pm" messageType="java.lang.String" expression="getXmlData('message','//Message/Body/PM')" />
        <variable name="qty" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="reason" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASON')" />
        <variable name="reasonCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODE')" />
        <variable name="reasonCodeType" messageType="java.lang.String"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="supplierName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPPLIERNAME')" />
        <variable name="supplierType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPPLIERTYPE')" />
        <variable name="userColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
    </variables>
    <faultHandlers name="faultHandlers" bounds="606,79,277,292">
        <catchAll name="catchAll" type="catchAll" bounds="54,34,182,205">
            <invoke name="ESBService sendErrorBySender" type="invokebean" description="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, com.cim.idm.wmsextend.generic.errorHandler.CustomException e, java.lang.String senderName)" bounds="21,31,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendErrorBySender" operationDesc="public void sendErrorBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String lanuage, com.cim.idm.wmsextend.generic.errorHandler.CustomException e, java.lang.String senderName)" ignoreThrow="false" fork="false">
                <input variable="replySubjectName" type="java.lang.String" />
                <input variable="message" type="org.jdom.Document" />
                <input variable="language" type="java.lang.String" />
                <input variable="customException2" type="java.lang.Exception" />
                <input constant="OICSender" type="java.lang.String" />
            </invoke>
        </catchAll>
    </faultHandlers>
    <sequence>
        <receive name="CreatUnUsualInfo" bounds="284,30,149,75">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="288,135,140,102" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <switch name="switch" bounds="342,267,33,33" type="switch">
            <source idx="0" terminal="5,A" />
            <switchstart name="switchstart" type="switchstart" bounds="303,346,110,49">
                <source idx="0" terminal="5,A" />
            </switchstart>
            <case name="case" type="case" condition="getVariable('finishFlag') = 'Y'" bounds="114,425,60,19">
                <source idx="0" terminal="5,A" />
                <invoke name="SupplierCustomerServiceImpl updateUnUsualInfo" type="invokebean" description="public void updateUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String qty, java.lang.String actNo, java.lang.String eventUser)" bounds="74,474,141,105" partnerLink="SupplierCustomerServiceImpl" partnerLinkType="SupplierCustomerServiceImpl" operation="updateUnUsualInfo" operationDesc="public void updateUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String qty, java.lang.String actNo, java.lang.String eventUser)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventName" type="java.lang.String" />
                    <input variable="materialSpec" type="java.lang.String" />
                    <input variable="supplierName" type="java.lang.String" />
                    <input variable="qty" type="java.lang.String" />
                    <input variable="actNO" type="java.lang.String" />
                    <input variable="eventUser" type="java.lang.String" />
                </invoke>
            </case>
            <case name="case" type="case" condition="getVariable('finishFlag') = 'N'" bounds="328,425,60,19">
                <source idx="0" terminal="5,A" />
                <invoke name="SupplierCustomerServiceImpl creatActInfo" type="invokebean" description="public void creatActInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String actNo, java.lang.String eventUser)" bounds="288,474,141,105" partnerLink="SupplierCustomerServiceImpl" partnerLinkType="SupplierCustomerServiceImpl" operation="creatActInfo" operationDesc="public void creatActInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String actNo, java.lang.String eventUser)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventName" type="java.lang.String" />
                    <input variable="materialSpec" type="java.lang.String" />
                    <input variable="supplierName" type="java.lang.String" />
                    <input variable="actNO" type="java.lang.String" />
                    <input variable="eventUser" type="java.lang.String" />
                </invoke>
                <invoke name="SupplierCustomerServiceImpl creatUnUsualInfo" type="invokebean" description="public void creatUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String erpLoaction, java.lang.String suppliername, java.lang.String qty, java.lang.String reason, java.lang.String oqaResult, java.lang.String pm, java.lang.String actNo, java.lang.String eventUser, java.lang.String finishFlag)" bounds="265,609,187,102" partnerLink="SupplierCustomerServiceImpl" partnerLinkType="SupplierCustomerServiceImpl" operation="creatUnUsualInfo" operationDesc="public void creatUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String erpLoaction, java.lang.String suppliername, java.lang.String qty, java.lang.String reason, java.lang.String oqaResult, java.lang.String pm, java.lang.String actNo, java.lang.String eventUser, java.lang.String finishFlag)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input constant="CreatUnUsualInfo" type="java.lang.String" />
                    <input variable="materialSpec" type="java.lang.String" />
                    <input variable="erpLocation" type="java.lang.String" />
                    <input variable="supplierName" type="java.lang.String" />
                    <input variable="qty" type="java.lang.String" />
                    <input variable="reason" type="java.lang.String" />
                    <input variable="oqaResult" type="java.lang.String" />
                    <input variable="pm" type="java.lang.String" />
                    <input variable="actNO" type="java.lang.String" />
                    <input variable="eventUser" type="java.lang.String" />
                    <input constant="N" type="java.lang.String" />
                    <fault faultName="catchAll" variable="customException2" />
                </invoke>
            </case>
            <otherwise name="otherwise" type="otherwise" bounds="542,425,88,19">
                <source idx="0" terminal="5,A" />
                <invoke name="SupplierCustomerServiceImpl DeleteUnUsualInfo" type="invokebean" description="public void DeleteUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String qty, java.lang.String actNo, java.lang.String eventUser)" bounds="516,474,141,105" partnerLink="SupplierCustomerServiceImpl" partnerLinkType="SupplierCustomerServiceImpl" operation="DeleteUnUsualInfo" operationDesc="public void DeleteUnUsualInfo(java.lang.String eventName, java.lang.String materialSpec, java.lang.String suppliername, java.lang.String qty, java.lang.String actNo, java.lang.String eventUser)" ignoreThrow="false" fork="false">
                    <source idx="0" terminal="5,A" />
                    <input variable="eventName" type="java.lang.String" />
                    <input variable="materialSpec" type="java.lang.String" />
                    <input variable="supplierName" type="java.lang.String" />
                    <input variable="qty" type="java.lang.String" />
                    <input variable="actNO" type="java.lang.String" />
                    <input variable="eventUser" type="java.lang.String" />
                </invoke>
            </otherwise>
            <switchend name="switchend" type="switchend" bounds="303,731,110,49">
                <source idx="0" terminal="5,A" />
                <source idx="1" terminal="5,A" />
                <source idx="2" terminal="5,A" />
            </switchend>
        </switch>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="288,810,140,102" 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="288,942,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>

