205 lines
20 KiB
XML
205 lines
20 KiB
XML
<?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="CancelShipRequest.bpel">
|
|
<partnerLinks>
|
|
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
|
|
<partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
|
|
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
|
|
<partnerLink name="BSShipRequestServiceUtil" partnerLinkType="bean:BSShipRequestServiceUtil" />
|
|
<partnerLink name="BSShipRequestServiceImpl" partnerLinkType="bean:BSShipRequestServiceImpl" />
|
|
<partnerLink name="PackingGroupServiceUtil" partnerLinkType="bean:PackingGroupServiceUtil" />
|
|
<partnerLink name="StorageServiceUtil" partnerLinkType="bean:StorageServiceUtil" />
|
|
<partnerLink name="PackingGroupServiceImpl" partnerLinkType="bean:PackingGroupServiceImpl" />
|
|
<partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
|
|
</partnerLinks>
|
|
<variables>
|
|
<variable name="boxInfo" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking"></variable>
|
|
<variable name="boxUserColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
|
|
<variable name="customException" messageType="com.cim.idm.fgwmsextend.generic.errorHandler.CustomException"></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="eventName" messageType="java.lang.String" expression="getXmlData('message','/Message/Header/MESSAGENAME')" />
|
|
<variable name="eventUser" messageType="java.lang.String" expression="getXmlData('message','/Message/Header/EVENTUSER')" />
|
|
<variable name="invoiceNo" messageType="java.lang.String" expression="getXmlData('message', '/Message/Body/SHIPREQUESTNAME')" />
|
|
<variable name="locationName" messageType="java.lang.String"></variable>
|
|
<variable name="makeShipRequestCompletedInfo" messageType="com.cim.idm.wmspackage.productshiprequest.management.info.MakeCompletedInfo"></variable>
|
|
<variable name="makeStockOutInfo" messageType="com.cim.idm.wmspackage.productpacking.management.info.MakeStockedInfo"></variable>
|
|
<variable name="message" messageType="org.jdom.Document"></variable>
|
|
<variable name="oemSiteName" messageType="java.lang.String"></variable>
|
|
<variable name="palletInfo" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking"></variable>
|
|
<variable name="palletkey" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPackingKey"></variable>
|
|
<variable name="palletKeyList" messageType="java.util.List" expression="newInstance('java.util.ArrayList', 10)" />
|
|
<variable name="palletList" messageType="java.util.List" expression="newInstance('java.util.ArrayList', 10)" />
|
|
<variable name="palletName" messageType="java.lang.String"></variable>
|
|
<variable name="palletsetEventInfo" messageType="com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo"></variable>
|
|
<variable name="palletUserColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
|
|
<variable name="panelInfo" messageType="com.cim.idm.wmspackage.product.management.data.Product"></variable>
|
|
<variable name="productUserColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
|
|
<variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '/Message/Header/ORIGINALSOURCESUBJECTNAME')" />
|
|
<variable name="saleType" messageType="java.lang.String"></variable>
|
|
<variable name="setEventInfo" messageType="com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo"></variable>
|
|
<variable name="shipRequest" messageType="com.cim.idm.wmspackage.productshiprequest.management.data.ProductShipRequest"></variable>
|
|
<variable name="siteName" messageType="java.lang.String" expression="getXmlData('message', '/Message/Body/SITENAME')" />
|
|
<variable name="userColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
|
|
</variables>
|
|
<sequence>
|
|
<receive name="CancelShipRequest" bounds="167,30,140,75">
|
|
<input variable="message" type="org.jdom.Document" />
|
|
</receive>
|
|
<invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="167,135,141,105" 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="123,270,228,102" 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 variable="eventName" 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="BSShipRequestServiceUtil getShipRequest" type="invokebean" description="public com.cim.idm.wmspackage.productshiprequest.management.data.ProductShipRequest getShipRequest(java.lang.String invoiceNo, java.lang.String siteName)" bounds="167,402,140,102" partnerLink="BSShipRequestServiceUtil" partnerLinkType="BSShipRequestServiceUtil" operation="getShipRequest" operationDesc="public com.cim.idm.wmspackage.productshiprequest.management.data.ProductShipRequest getShipRequest(java.lang.String invoiceNo, java.lang.String siteName)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="invoiceNo" type="java.lang.String" />
|
|
<input variable="siteName" type="java.lang.String" />
|
|
<output variable="shipRequest" />
|
|
</invoke>
|
|
<switch name="switch" bounds="221,534,33,33" type="switch">
|
|
<source idx="0" terminal="5,A" />
|
|
<switchstart name="switchstart" type="switchstart" bounds="182,613,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</switchstart>
|
|
<case name="case" type="case" condition="getField('shipRequest','shipRequestState') !='Completed'" bounds="124,692,32,49">
|
|
<source idx="0" terminal="5,A" />
|
|
<throw name="throw" bounds="70,771,141,65" faultName="CatchAll" variable="customException">
|
|
<source idx="0" terminal="5,A" />
|
|
<input constant="SHIPREQUEST-0008" type="java.lang.String" />
|
|
<input variable="invoiceNo" type="java.lang.Object" />
|
|
</throw>
|
|
</case>
|
|
<otherwise name="otherwise" type="otherwise" bounds="304,692,61,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</otherwise>
|
|
<switchend name="switchend" type="switchend" bounds="296,856,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
<source idx="1" terminal="5,A" />
|
|
</switchend>
|
|
</switch>
|
|
<invoke name="BSShipRequestServiceUtil makeSetEventInfo" type="invokebean" description="public com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo makeSetEventInfo(java.util.Map userColumns)" bounds="281,935,140,102" partnerLink="BSShipRequestServiceUtil" partnerLinkType="BSShipRequestServiceUtil" operation="makeSetEventInfo" operationDesc="public com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo makeSetEventInfo(java.util.Map userColumns)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="userColumns" type="java.util.Map" />
|
|
<output variable="setEventInfo" />
|
|
</invoke>
|
|
<invoke name="BSShipRequestServiceImpl cancelComplete" type="invokebean" description="public void cancelComplete(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo setEventInfo, java.lang.String siteName)" bounds="252,1067,199,102" partnerLink="BSShipRequestServiceImpl" partnerLinkType="BSShipRequestServiceImpl" operation="cancelComplete" operationDesc="public void cancelComplete(java.lang.String invoiceNo, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo setEventInfo, java.lang.String siteName)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="invoiceNo" type="java.lang.String" />
|
|
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
|
|
<input variable="setEventInfo" type="com.cim.idm.wmspackage.productshiprequest.management.info.SetEventInfo" />
|
|
<input variable="siteName" type="java.lang.String" />
|
|
</invoke>
|
|
<invoke name="PackingGroupServiceUtil getPalletListFromInvoiceNo" type="invokebean" description="public java.util.List getPalletListFromInvoiceNo(java.lang.String invoiceNo, java.lang.String siteName)" bounds="268,1199,167,102" partnerLink="PackingGroupServiceUtil" partnerLinkType="PackingGroupServiceUtil" operation="getPalletListFromInvoiceNo" operationDesc="public java.util.List getPalletListFromInvoiceNo(java.lang.String invoiceNo, java.lang.String siteName)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="invoiceNo" type="java.lang.String" />
|
|
<input variable="siteName" type="java.lang.String" />
|
|
<output variable="palletList" />
|
|
</invoke>
|
|
<expression name="expression" type="expression" bounds="281,1331,140,62">
|
|
<source idx="0" terminal="5,A" />
|
|
<function value="addMap(getVariable('palletUserColumns'),'stockOutTo','')" />
|
|
<function value="addMap(getVariable('boxUserColumns'),'stockOutTo','')" />
|
|
</expression>
|
|
<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="237,1423,228,102" 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 variable="eventName" 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>
|
|
<while name="while" bounds="335,1555,32,49" type="2" collection="palletList" element="palletInfo">
|
|
<source idx="0" terminal="5,A" />
|
|
<whilestart name="whilestart" type="whilestart" bounds="296,1634,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</whilestart>
|
|
<expression name="expression" type="expression" bounds="281,1713,140,62">
|
|
<source idx="0" terminal="5,A" />
|
|
<function value="setVariable('palletkey',getField('palletInfo','key'))" />
|
|
<function value="addListValue('palletKeyList', getVariable('palletkey'))" />
|
|
<function value="setVariable('palletName',getField('palletkey','productPackingName'))" />
|
|
</expression>
|
|
<switch name="switch" bounds="335,1805,33,33" type="switch">
|
|
<source idx="0" terminal="5,A" />
|
|
<switchstart name="switchstart" type="switchstart" bounds="296,1884,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</switchstart>
|
|
<case name="case" type="case" condition="getField('palletInfo','mesReceiveFlag') = 'Y'" bounds="221,1963,32,49">
|
|
<source idx="0" terminal="5,A" />
|
|
<throw name="throw" bounds="167,2042,141,65" faultName="CatchAll" variable="customException">
|
|
<source idx="0" terminal="5,A" />
|
|
<input constant="PALLET-0107" type="java.lang.String" />
|
|
<input variable="palletName" type="java.lang.Object" />
|
|
</throw>
|
|
</case>
|
|
<otherwise name="otherwise" type="otherwise" bounds="435,1963,61,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</otherwise>
|
|
<switchend name="switchend" type="switchend" bounds="296,2127,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
<source idx="1" terminal="5,A" />
|
|
</switchend>
|
|
</switch>
|
|
<invoke name="StorageServiceUtil findEmptyLocation" type="invokebean" description="public java.lang.String findEmptyLocation(java.lang.String locationName, java.lang.String f, java.lang.String s, java.lang.String siteName)" bounds="281,2206,140,102" partnerLink="StorageServiceUtil" partnerLinkType="StorageServiceUtil" operation="findEmptyLocation" operationDesc="public java.lang.String findEmptyLocation(java.lang.String locationName, java.lang.String f, java.lang.String s, java.lang.String siteName)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input constant="" type="java.lang.String" />
|
|
<input constant="M" type="java.lang.String" />
|
|
<input constant="04" type="java.lang.String" />
|
|
<input variable="siteName" type="java.lang.String" />
|
|
<output variable="locationName" />
|
|
</invoke>
|
|
<invoke name="PackingGroupServiceImpl assignLocation" type="invokebean" description="public void assignLocation(java.lang.String palletName, java.lang.String locationName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" bounds="281,2338,141,105" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="assignLocation" operationDesc="public void assignLocation(java.lang.String palletName, java.lang.String locationName, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="palletName" type="java.lang.String" />
|
|
<input variable="locationName" type="java.lang.String" />
|
|
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
|
|
<input variable="siteName" type="java.lang.String" />
|
|
</invoke>
|
|
<whileend name="whileend" type="whileend" bounds="296,2463,110,49">
|
|
<source idx="0" terminal="5,A" />
|
|
</whileend>
|
|
</while>
|
|
<expression name="expression" type="expression" bounds="281,2542,141,65">
|
|
<source idx="0" terminal="5,A" />
|
|
<function value="addMap(getVariable('productUserColumns'),'productState','Stocked')" />
|
|
<function value="addMap(getVariable('palletUserColumns'),'stockState','Stocked')" />
|
|
<function value="addMap(getVariable('boxUserColumns'),'stockState','Stocked')" />
|
|
<function value="addMap(getVariable('palletUserColumns'),'stockOutTo','')" />
|
|
<function value="addMap(getVariable('boxUserColumns'),'stockOutTo','')" />
|
|
<function value="addMap(getVariable('boxUserColumns'),'packingState','Released')" />
|
|
<function value="addMap(getVariable('palletUserColumns'),'packingState','Released')" />
|
|
</expression>
|
|
<invoke name="PackingGroupServiceUtil makeSetEventInfo" type="invokebean" description="public com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo makeSetEventInfo(java.util.Map palletUserColumns, java.util.Map boxUserColumns, java.util.Map productUserColumns)" bounds="197,2637,309,102" partnerLink="PackingGroupServiceUtil" partnerLinkType="PackingGroupServiceUtil" operation="makeSetEventInfo" operationDesc="public com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo makeSetEventInfo(java.util.Map palletUserColumns, java.util.Map boxUserColumns, java.util.Map productUserColumns)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="palletUserColumns" type="java.util.Map" />
|
|
<input variable="boxUserColumns" type="java.util.Map" />
|
|
<input variable="productUserColumns" type="java.util.Map" />
|
|
<output variable="palletsetEventInfo" />
|
|
</invoke>
|
|
<invoke name="PackingGroupServiceImpl cancelStockOut" type="invokebean" description="public void cancelStockOut(java.util.List keyList, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo setEventInfo)" bounds="232,2769,239,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="cancelStockOut" operationDesc="public void cancelStockOut(java.util.List keyList, com.cim.idm.framework.data.EventInfo eventInfo, com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo setEventInfo)" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
<input variable="palletKeyList" type="java.util.List" />
|
|
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
|
|
<input variable="palletsetEventInfo" type="com.cim.idm.wmspackage.productpacking.management.info.SetEventInfo" />
|
|
</invoke>
|
|
<invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(java.lang.String replySubject, org.jdom.Document doc, java.lang.String senderName)" bounds="239,2901,224,102" 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>
|
|
<invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="281,3033,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
|
|
<source idx="0" terminal="5,A" />
|
|
</invoke>
|
|
</sequence>
|
|
</process>
|
|
|