<?xml version="1.0" encoding="UTF-8"?>
<process xmlns:bean="http://bean.boe.com/" xmlns:bpel="http://bpel.boe.com/" targetNamespace="http://bpel.boe.com/bpelj/" name="CreateDurable.bpel">
    <partnerLinks>
        <partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
        <partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
        <partnerLink name="DurableServiceUtil" partnerLinkType="bean:DurableServiceUtil" />
        <partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
        <partnerLink name="DurableServiceImpl" partnerLinkType="bean:DurableServiceImpl" />
        <partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
    </partnerLinks>
    <variables>
        <variable name="DurableInfo" messageType="com.cim.idm.wmspackage.durable.management.info.CreateInfo"></variable>
        <variable name="durableName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DURABLENAME')" />
        <variable name="durableSpecName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/DURABLESPECNAME')" />
        <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="LocationInfo" messageType="com.cim.idm.wmspackage.storage.management.info.CreateSpecInfo"></variable>
        <variable name="locationName" messageType="java.lang.String"></variable>
        <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="resourceState" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/RESOURCESTATE')" />
        <variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/SITENAME')" />
        <variable name="stockState" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/STOCKSTATE')" />
    </variables>
    <sequence>
        <receive name="CreateDurable" bounds="70,30,149,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="74,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="CreateDurable" 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="DurableServiceUtil makeDurableData" type="invokebean" description="public com.cim.idm.wmspackage.durable.management.info.CreateInfo makeDurableData(java.lang.String siteName, java.lang.String durableName, java.lang.String durableSpecName, java.lang.String locationName)" bounds="74,257,141,105" partnerLink="DurableServiceUtil" partnerLinkType="DurableServiceUtil" operation="makeDurableData" operationDesc="public com.cim.idm.wmspackage.durable.management.info.CreateInfo makeDurableData(java.lang.String siteName, java.lang.String durableName, java.lang.String durableSpecName, java.lang.String locationName)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="siteName" type="java.lang.String" />
            <input variable="durableName" type="java.lang.String" />
            <input variable="durableSpecName" type="java.lang.String" />
            <input variable="stockState" type="java.lang.String" />
            <output variable="DurableInfo" />
        </invoke>
        <invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="50,392,188,92" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
        </invoke>
        <invoke name="DurableServiceImpl create" type="invokebean" description="public void create(com.cim.idm.framework.data.EventInfo arg1, com.cim.idm.wmspackage.durable.management.info.CreateInfo arg2)" bounds="74,514,141,105" partnerLink="DurableServiceImpl" partnerLinkType="DurableServiceImpl" operation="create" operationDesc="public void create(com.cim.idm.framework.data.EventInfo arg1, com.cim.idm.wmspackage.durable.management.info.CreateInfo arg2)" ignoreThrow="false" fork="false">
            <source idx="0" terminal="5,A" />
            <input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
            <input variable="DurableInfo" type="com.cim.idm.wmspackage.durable.management.info.CreateInfo" />
        </invoke>
        <invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="42,649,205,109" 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="74,788,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>

