<?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="SMTMergeBox.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="endDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/ENDDATE')" />
        <variable name="eventComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/LASTEVENTCOMMENT')" />
        <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="itemElement" messageType="org.jdom.Element"></variable>
        <variable name="itemList" messageType="java.util.List"></variable>
        <variable name="makeDate" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MAKEDATE')" />
        <variable name="materialPackingName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALPACKINGNAME')" />
        <variable name="materialQuantity" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALQUANTITY')" />
        <variable name="materialSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALSPECNAME')" />
        <variable name="materialType" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/MATERIALTYPE')" />
        <variable name="message" messageType="org.jdom.Document"></variable>
        <variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
        <variable name="returnElement" messageType="org.jdom.Element"></variable>
        <variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SHIPREQUESTNAME')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="SMTSender" messageType="java.lang.String"></variable>
        <variable name="sourceMaterialPackingName" messageType="java.lang.String"></variable>
        <variable name="SplitBox" messageType="java.lang.String"></variable>
        <variable name="supplierNo" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SUPPLIERNO')" />
    </variables>
    <sequence>
        <receive name="SMTMergeBox" bounds="70,30,140,75">
            <input variable="message" type="org.jdom.Document" />
        </receive>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="61,135,158,106" 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="70,271,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="MergeBox" 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>
        <expression name="expression" type="expression" bounds="70,406,141,65">
            <source idx="0" terminal="5,A" />
            <function value="setVariable('itemList', getElementList('message', '//Message/Body/BOXLIST/BOX'))" />
        </expression>
        <while name="while" bounds="124,501,32,32" type="2" collection="itemList" element="itemElement">
            <source idx="0" terminal="5,A" />
            <whilestart name="whilestart" type="whilestart" bounds="85,580,110,49">
                <source idx="0" terminal="5,A" />
            </whilestart>
            <expression name="expression" type="expression" bounds="70,659,141,65">
                <source idx="0" terminal="5,A" />
                <function value="setVariable('sourceMaterialPackingName',getXmlData('itemElement','//MATERIALPACKINGNAME'))" />
            </expression>
            <invoke name="MaterialPackingServiceImpl SMTmakeCompleted" type="invokebean" description="public void SMTmakeCompleted(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String materialPackingName, org.jdom.Document message)" bounds="70,754,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="SMTmakeCompleted" operationDesc="public void SMTmakeCompleted(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String materialPackingName, org.jdom.Document message)" ignoreThrow="false" fork="false">
                <source idx="0" terminal="5,A" />
                <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
                <input variable="sourceMaterialPackingName" type="java.lang.String" />
                <input variable="message" type="org.jdom.Document" />
            </invoke>
            <whileend name="whileend" type="whileend" bounds="85,879,110,49">
                <source idx="0" terminal="5,A" />
            </whileend>
        </while>
        <invoke name="MaterialPackingServiceImpl SMTCreateBoxByLabel" type="invokebean" description="public void SMTCreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName, java.lang.String materialType, java.lang.String materialSPecName, java.lang.String materialQuantity, java.lang.String makeDate, java.lang.String supplierNo, java.lang.String endDate, java.lang.String shipRequestName)" bounds="70,958,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="SMTCreateBoxByLabel" operationDesc="public void SMTCreateBoxByLabel(com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName, java.lang.String materialPackingName, java.lang.String materialType, java.lang.String materialSPecName, java.lang.String materialQuantity, java.lang.String makeDate, java.lang.String supplierNo, java.lang.String endDate, java.lang.String shipRequestName)" 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="materialPackingName" type="java.lang.String" />
            <input variable="materialType" type="java.lang.String" />
            <input variable="materialSpecName" type="java.lang.String" />
            <input variable="materialQuantity" type="java.lang.String" />
            <input variable="makeDate" type="java.lang.String" />
            <input variable="supplierNo" type="java.lang.String" />
            <input variable="endDate" type="java.lang.String" />
            <input variable="shipRequestName" type="java.lang.String" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="59,1093,162,103" 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(String replySubject, org.jdom.Document doc, org.jdom.Element element, String senderName)&#xD;&#xA;&#x9;&#x9;throws java.lang.Exception" bounds="-8,1226,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="message" type="org.jdom.Document" />
            <input variable="returnElement" type="org.jdom.Element" />
            <input constant="SMTSender" type="java.lang.String" />
        </invoke>
    </sequence>
</process>

