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

168 lines
16 KiB
XML

<?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="CancelGoToRTPallet.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" />
</partnerLinks>
<variables>
<variable name="CancelGoToRTPallet" messageType="org.jdom.Document"></variable>
<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="GoToRT" messageType="java.lang.String"></variable>
<variable name="message" messageType="org.jdom.Document"></variable>
<variable name="OICSender" messageType="java.lang.String"></variable>
<variable name="palletElement" messageType="org.jdom.Element"></variable>
<variable name="palletInfo" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking"></variable>
<variable name="palletInfoTemp" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking" expression="newInstance('com.cim.idm.wmspackage.productpacking.management.data.ProductPacking')" />
<variable name="palletList" messageType="java.util.List"></variable>
<variable name="palletName" messageType="java.lang.String"></variable>
<variable name="palletReasonCode" 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="ReleaseHold" messageType="java.lang.String"></variable>
<variable name="releaseHoldEventInfo" messageType="com.cim.idm.framework.data.EventInfo"></variable>
<variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
<variable name="rtreasonCode" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/REASONCODE')" />
<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>
<Lane name="Lane" bounds="-57,1057,460,273" backgroundcolor="253,250,192" />
<Lane name="Lane" bounds="0,1345,402,211" backgroundcolor="253,250,192" />
<Lane name="Lane" bounds="323,524,411,80" backgroundcolor="253,250,192" />
<Lane name="Lane" bounds="324,1643,402,80" backgroundcolor="253,250,192" />
<note name="Note" bounds="572,1651,125,-1">Add Hold List that send To ERP for RT.</note>
<note name="Note" bounds="548,532,176,-1">Save old reasoncode</note>
<note name="Note" bounds="246,1489,125,-1">Add Release List that send To ERP.</note>
<note name="Note" bounds="250,1244,134,-1">Release hold's pallet</note>
<sequence>
<receive name="CancelGoToRTPallet" bounds="376,45,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="376,150,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="376,282,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('siteName', getElementList('siteName','//SITENAME'))" />
<function value="setVariable('palletList', getElementList('message','//PALLET'))" />
</expression>
<while name="while" bounds="430,374,32,49" type="2" collection="palletList" element="palletElement">
<source idx="0" terminal="5,A" />
<whilestart name="whilestart" type="whilestart" bounds="391,453,110,49">
<source idx="0" terminal="5,A" />
</whilestart>
<expression name="expression" type="expression" bounds="376,532,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('palletName',getXmlData('palletElement','//PALLETNAME'))" />
<function value="setVariable('palletReasonCode',getXmlData('palletElement','//REASONCODE'))" />
<function value="setVariable('rtreasonCode', 'HD-C-A-X')" />
</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="732,603,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="279,624,334,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="GoToRT" 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="rtreasonCode" type="java.lang.String" />
<output variable="eventInfo" />
</invoke>
<switch name="switch" bounds="430,756,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="391,835,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'holdState') = 'M'" bounds="139,914,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="85,993,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment',getVariable('oqaComment'))" />
</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="-4,1085,319,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 constant="ReleaseHold" 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 variable="palletReasonCode" type="java.lang.String" />
<output variable="releaseHoldEventInfo" />
</invoke>
<invoke name="PackingGroupServiceImpl gotoRT4OnHoldPallet" type="invokebean" description="public void gotoRT4OnHoldPallet(java.lang.String siteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" bounds="21,1217,268,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="gotoRT4OnHoldPallet" operationDesc="public void gotoRT4OnHoldPallet(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="releaseHoldEventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input variable="userColumns" type="java.util.Map" />
</invoke>
<invoke name="PackingGroupServiceUtil getPackingGroupData" type="invokebean" description="public com.cim.idm.wmspackage.productpacking.management.data.ProductPacking getPackingGroupData(java.lang.String originalPalletName, java.lang.String siteName)" bounds="85,1349,141,105" partnerLink="PackingGroupServiceUtil" partnerLinkType="PackingGroupServiceUtil" operation="getPackingGroupData" operationDesc="public com.cim.idm.wmspackage.productpacking.management.data.ProductPacking getPackingGroupData(java.lang.String originalPalletName, java.lang.String siteName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="palletName" type="java.lang.String" />
<input variable="siteName" type="java.lang.String" />
<output variable="palletInfoTemp" />
</invoke>
<expression name="expression" type="expression" bounds="85,1484,141,65">
<source idx="0" terminal="5,A" />
<function value="setField('palletInfoTemp', 'reasonCode',getVariable('palletReasonCode'))" />
<function value="addListValue('palletSDERP_ReleaseList', getVariable('palletInfoTemp'))" />
</expression>
</case>
<case name="case" type="case" condition="getPropertyData(getVariable('palletInfo'),'oqaRtFlag') != 'Y'" bounds="412,914,69,50">
<source idx="0" terminal="5,A" />
<throw name="throw" bounds="376,994,141,65" faultName="CatchAll" variable="customException">
<source idx="0" terminal="5,A" />
<input constant="PALLET-9999" type="java.lang.String" />
<input variable="palletName" type="java.lang.Object" />
</throw>
</case>
<otherwise name="otherwise" type="otherwise" bounds="671,914,87,47">
<source idx="0" terminal="5,A" />
<!--<expression name="expression" type="expression" bounds="644,991,140,62">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'oqaComment',getVariable('oqaComment'))" />
</expression>-->
<invoke name="PackingGroupServiceImpl NotgotoRTNotOnHoldPallet" type="invokebean" description="public void NotgotoRTNotOnHoldPallet(java.lang.String siteName, java.lang.String palletName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" bounds="580,1083,268,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="NotgotoRTNotOnHoldPallet" operationDesc="public void NotgotoRTNotOnHoldPallet(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>
</otherwise>
<switchend name="switchend" type="switchend" bounds="391,1569,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
<source idx="2" terminal="5,A" />
</switchend>
</switch>
<expression name="expression" type="expression" bounds="376,1648,141,65">
<source idx="0" terminal="5,A" />
<function value="setField('palletInfo', 'reasonCode',getVariable('rtreasonCode'))" />
<function value="addListValue('palletSDERPList', getVariable('palletInfo'))" />
</expression>
<whileend name="whileend" type="whileend" bounds="391,1733,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="334,1812,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>
</sequence>
</process>