2025-03-19 10:28:25 +08:00

267 lines
22 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="ReleasePallet.bpel">
<partnerLinks>
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
<partnerLink name="PackingGroupServiceUtil" partnerLinkType="bean:PackingGroupServiceUtil" />
<partnerLink name="CommonUtil" partnerLinkType="bean:CommonUtil" />
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
<partnerLink name="PackingGroupServiceImpl" partnerLinkType="bean:PackingGroupServiceImpl" />
<partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
<partnerLink name="ERPInterfaceServiceImplForFG" partnerLinkType="bean:ERPInterfaceServiceImplForFG" />
</partnerLinks>
<variables>
<variable name="body" messageType="org.jdom.Element" expression="getXmlElement('message', '//Message/Body')" />
<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="eventUser" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/EVENTUSER')" />
<variable name="Hold" messageType="java.lang.String"></variable>
<variable name="holdCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODE')" />
<variable name="index" messageType="int"></variable>
<variable name="ISERP" messageType="java.lang.String"></variable>
<variable name="language" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/LANGUAGE')" />
<variable name="lotQuantity" messageType="int"></variable>
<variable name="message" messageType="org.jdom.Document"></variable>
<variable name="moveType" messageType="java.lang.String"></variable>
<variable name="OICSender" messageType="java.lang.String"></variable>
<variable name="oqaComment" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/OQACOMMENT')" />
<variable name="palletElement" messageType="org.jdom.Element"></variable>
<variable name="palletEtcState" messageType="java.lang.String"></variable>
<variable name="palletInfo" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking"></variable>
<variable name="palletList" messageType="java.util.List"></variable>
<variable name="palletName" messageType="java.lang.String"></variable>
<variable name="palletSDERPList" messageType="java.util.List" expression="newInstance('java.util.ArrayList', 10)" />
<variable name="reasonCodeType" messageType="java.lang.String"></variable>
<variable name="Release" 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="typeName" messageType="java.lang.String">ProcessGroup</variable>
<variable name="userColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
<variable name="venture" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/VENTURE')" />
</variables>
<Lane name="Lane" bounds="649,491,388,104" backgroundcolor="253,250,192" />
<Lane name="Lane" bounds="-125,1911,388,104" backgroundcolor="253,250,192" />
<note name="Note" bounds="710,509,128,-1">Get ReasonCode</note>
<note name="Note" bounds="-49,1912,228,-1">Set ReasonCode&#xD;
getPropertyData(getVariable('palletInfo'),'receivedFrom') = 'Module'&#xD;
or getPropertyData(getVariable('palletInfo'),'receivedFrom') = 'B2'</note>
<sequence>
<receive name="ReleasePallet" bounds="494,30,140,75">
<input variable="message" type="org.jdom.Document" />
</receive>
<invoke name="PackingGroupServiceUtil checkExistBoxInPallet" type="invokebean" description="public static void checkExistBoxInPallet(java.lang.String siteName, org.jdom.Document message)" bounds="494,135,140,102" partnerLink="PackingGroupServiceUtil" partnerLinkType="PackingGroupServiceUtil" operation="checkExistBoxInPallet" operationDesc="public static void checkExistBoxInPallet(java.lang.String siteName, org.jdom.Document message)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="message" type="org.jdom.Document" />
</invoke>
<expression name="expression" type="expression" bounds="494,267,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('siteName', getElementList('message','//SITENAME'))" />
<function value="setVariable('palletList', getElementList('message','//PALLET'))" />
</expression>
<while name="while" bounds="548,359,32,49" type="2" collection="palletList" element="palletElement">
<source idx="0" terminal="5,A" />
<whilestart name="whilestart" type="whilestart" bounds="509,438,110,49">
<source idx="0" terminal="5,A" />
</whilestart>
<expression name="expression" type="expression" bounds="494,517,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('palletName',getXmlData('palletElement','//PALLETNAME'))" />
<function value="setVariable('holdCode',getXmlData('palletElement','//REASONCODE'))" />
<function value="setVariable('palletEtcState',getXmlData('palletElement','//ETCSTATE'))" />
</expression>
<invoke name="CommonUtil getPackingGroupInfoByPackingGroupName" type="invokebean" description="public static com.cim.idm.wmspackage.productpacking.management.data.ProductPacking getPackingGroupInfoByPackingGroupName(java.lang.String SiteName, java.lang.String packingGroupName)" bounds="494,609,141,105" partnerLink="CommonUtil" partnerLinkType="CommonUtil" operation="getPackingGroupInfoByPackingGroupName" operationDesc="public static com.cim.idm.wmspackage.productpacking.management.data.ProductPacking getPackingGroupInfoByPackingGroupName(java.lang.String SiteName, java.lang.String packingGroupName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="palletName" type="java.lang.String" />
<output variable="palletInfo" />
</invoke>
<invoke name="EventInfoUtil makeEventInfo" type="invokebean" description="public static com.cim.idm.framework.data.EventInfo makeEventInfo(String eventName, String eventUser, String eventComment, String reasonCodeType, String reasonCode)" bounds="389,744,351,102" partnerLink="EventInfoUtil" partnerLinkType="EventInfoUtil" operation="makeEventInfo" operationDesc="public static com.cim.idm.framework.data.EventInfo makeEventInfo(String eventName, String eventUser, String eventComment, String reasonCodeType, String reasonCode)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="Release" type="java.lang.String" />
<input variable="eventUser" type="java.lang.String" />
<input variable="eventComment" type="java.lang.String" />
<input variable="reasonCodeType" type="java.lang.String" />
<input variable="holdCode" type="java.lang.String" />
<output variable="eventInfo" />
</invoke>
<invoke name="PackingGroupServiceImpl getReleaseMoveCode" type="invokebean" description="public java.lang.String getReleaseMoveCode(java.lang.String siteName, java.lang.String palletReasonCode)" bounds="494,876,141,105" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="getReleaseMoveCode" operationDesc="public java.lang.String getReleaseMoveCode(java.lang.String siteName, java.lang.String palletReasonCode)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="holdCode" type="java.lang.String" />
<output variable="moveType" />
</invoke>
<switch name="switch" bounds="548,1011,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="509,1090,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'holdState') = 'Y'" bounds="272,1169,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="218,1248,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment',getVariable('oqaComment'))" />
<function value="addMap(getVariable('userColumns'),'venture',getVariable('venture'))" />
<function value="setVariable('ISERP','Y')" />
</expression>
<switch name="switch" bounds="272,1340,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="233,1419,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'oqaRtFlag') = 'Y'" bounds="124,1498,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="70,1577,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaRtFlag','N')" />
<function value="setVariable('holdCode', 'HD-C-A-X')" />
<function value="addMap(getVariable('userColumns'),'oqaComment','')" />
</expression>
</case>
<otherwise name="otherwise" type="otherwise" bounds="406,1498,61,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="366,1577,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment','')" />
</expression>
</otherwise>
<switchend name="switchend" type="switchend" bounds="396,1659,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="PackingGroupServiceImpl releasePallet" type="invokebean" description="public void releasePallet(java.lang.String siteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" bounds="349,1738,204,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="releasePallet" operationDesc="public void releasePallet(java.lang.String siteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="palletName" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input variable="userColumns" type="java.util.Map" />
</invoke>
<switch name="switch" bounds="435,1870,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="396,1949,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'contentMaterialType') != 'Material' " bounds="258,2028,60,19">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="218,2077,141,65">
<source idx="0" terminal="5,A" />
<function value="setField('palletInfo', 'reasonCode',getVariable('holdCode'))" />
<function value="addListValue('palletSDERPList',getVariable('palletInfo'))" />
</expression>
</case>
<otherwise name="otherwise" type="otherwise" bounds="570,2028,88,19">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="396,2162,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</case>
<otherwise name="otherwise" type="otherwise" bounds="1058,1169,61,49">
<source idx="0" terminal="5,A" />
<switch name="switch" bounds="1072,1248,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="1033,1327,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'oqaRtFlag') = 'Y'" bounds="926,1406,32,49">
<source idx="0" terminal="5,A" />
<switch name="switch" bounds="926,1485,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="887,1564,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('palletEtcState') = 'ETCMRB'" bounds="810,1643,60,47">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="770,1720,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment',&quot;&quot;)" />
<function value="addMap(getVariable('userColumns'),'oqaRtFlag','N')" />
<function value="setField('eventInfo', 'reasonCode','')" />
<function value="setVariable('holdCode', 'HD-C-A-Y')" />
</expression>
</case>
<otherwise name="otherwise" type="otherwise" bounds="1000,1643,88,57">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="974,1730,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment',&quot;&quot;)" />
<function value="addMap(getVariable('userColumns'),'oqaRtFlag','N')" />
<function value="setField('eventInfo', 'reasonCode','')" />
<function value="setVariable('holdCode', 'HD-C-A-X')" />
</expression>
</otherwise>
<switchend name="switchend" type="switchend" bounds="887,1812,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="PackingGroupServiceImpl releaseRTHoldPallet" type="invokebean" description="public void releaseRTHoldPallet(java.lang.String SiteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" bounds="840,1891,204,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="releaseRTHoldPallet" operationDesc="public void releaseRTHoldPallet(java.lang.String SiteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="palletName" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input variable="userColumns" type="java.util.Map" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="1204,1406,61,49">
<source idx="0" terminal="5,A" />
<throw name="throw" bounds="1164,1485,140,62" faultName="Catch" variable="customException">
<source idx="0" terminal="5,A" />
<input constant="PALLET-9008" type="java.lang.String" />
<input variable="palletName" type="java.lang.Object" />
</throw>
</otherwise>
<switchend name="switchend" type="switchend" bounds="887,2013,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A">
<BendPoint FirstRelative="-7,352" SecondRelative="285,-115" weight="0.5" />
</source>
</switchend>
</switch>
</otherwise>
<switchend name="switchend" type="switchend" bounds="722,2232,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<whileend name="whileend" type="whileend" bounds="740,2302,110,49">
<source idx="0" terminal="5,A" />
</whileend>
</while>
<invoke name="ESBService sendReplyBySender" type="invokebean" description="public void sendReplyBySender(String subject, org.jdom.Document doc, String senderName)" bounds="712,2372,224,102" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendReplyBySender" operationDesc="public void sendReplyBySender(String subject, org.jdom.Document doc, 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>
<switch name="switch" bounds="915,2511,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="876,2590,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('ISERP') = 'Y'" bounds="421,2669,60,19">
<source idx="0" terminal="5,A" />
<invoke name="ERPInterfaceServiceImpl insertBS_ERPIF_LG16" type="invokebean" description="public static void insertBS_ERPIF_LG16(java.lang.String siteName, java.util.List packingGroupList, java.lang.String eventName, java.lang.String erplocation)" bounds="453,2718,141,105" partnerLink="ERPInterfaceServiceImplForFG" partnerLinkType="ERPInterfaceServiceImplForFG" operation="insertBS_ERPIF_LG16" operationDesc="public static void insertBS_ERPIF_LG16(java.lang.String siteName, java.util.List packingGroupList, java.lang.String eventName, java.lang.String erplocation)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" />
<input variable="palletSDERPList" />
<input constant="Release" type="java.lang.String" />
<input constant="" type="java.lang.String" />
<input variable="message" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="1368,2669,88,19">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="876,2840,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</sequence>
</process>