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

188 lines
16 KiB
XML
Raw Blame History

<?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="DeassignTrayRequest.bpel">
<partnerLinks>
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
<partnerLink name="StorageServiceUtil" partnerLinkType="bean:StorageServiceUtil" />
<partnerLink name="StorageServiceImpl" partnerLinkType="bean:StorageServiceImpl" />
<partnerLink name="PackingGroupServiceUtil" partnerLinkType="bean:PackingGroupServiceUtil" />
<partnerLink name="PackingGroupServiceImpl" partnerLinkType="bean:PackingGroupServiceImpl" />
</partnerLinks>
<variables>
<variable name="91" messageType="java.lang.String"></variable>
<variable name="durableUserColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
<variable name="Empty" messageType="java.lang.String"></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="InService" messageType="java.lang.String"></variable>
<variable name="location" messageType="java.lang.String"></variable>
<variable name="M" messageType="java.lang.String"></variable>
<variable name="message" messageType="org.jdom.Document"></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" expression="newInstance('com.cim.idm.wmspackage.productpacking.management.data.ProductPackingKey')" />
<variable name="palletList" messageType="java.util.List"></variable>
<variable name="palletName" messageType="java.lang.String"></variable>
<variable name="palletUserColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
<variable name="prePalletLocationName" messageType="java.lang.String"></variable>
<variable name="shelfData" messageType="com.cim.idm.wmspackage.storage.management.data.Storage"></variable>
<variable name="siteName" messageType="java.lang.String"></variable>
<variable name="stockState" messageType="java.lang.String"></variable>
<variable name="storageSpec" messageType="com.cim.idm.wmspackage.storage.management.data.StorageSpec"></variable>
<variable name="trayName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/TRAYNAME')" />
<variable name="unitName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/UNITNAME')" />
</variables>
<Lane name="Lane" bounds="100,263,590,1251" backgroundcolor="253,250,192" />
<Lane name="Lane" bounds="115,278,590,1251" backgroundcolor="253,250,192" />
<note name="Note" bounds="138,323,91,-1">??<3F>报??<3F><><EFBFBD>???Shelf<6C><66>??将该Shelf状态变为Empty<74><79>??)</note>
<sequence>
<receive name="DeassignTrayRequest" bounds="407,30,225,84">
<input variable="message" type="org.jdom.Document" />
</receive>
<wait name="wait" timeout="1000" bounds="622,101,141,65">
<source idx="0" terminal="5,A" />
</wait>
<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="449,144,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 variable="eventName" type="java.lang.String" />
<input constant="WMS" 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="StorageServiceUtil getStorageSpecData" type="invokebean" description="public com.cim.idm.wmspackage.storage.management.data.StorageSpec getStorageSpecData(java.lang.String siteName, java.lang.String storageName)" bounds="449,279,141,105" partnerLink="StorageServiceUtil" partnerLinkType="StorageServiceUtil" operation="getStorageSpecData" operationDesc="public com.cim.idm.wmspackage.storage.management.data.StorageSpec getStorageSpecData(java.lang.String siteName, java.lang.String storageName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="B17" type="java.lang.String" />
<input variable="unitName" type="java.lang.String" />
<output variable="storageSpec" />
</invoke>
<switch name="switch" bounds="503,414,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="464,493,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="isNull('storageSpec')!='true'" bounds="380,572,32,49">
<source idx="0" terminal="5,A" />
<switch name="switch" bounds="380,651,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="341,730,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getField('storageSpec','storageUseType') ='Storage'" bounds="265,809,32,49">
<source idx="0" terminal="5,A" />
<invoke name="StorageServiceUtil getStorageData" type="invokebean" description="public com.cim.idm.wmspackage.storage.management.data.Storage getStorageData(java.lang.String siteName, java.lang.String storageName)" bounds="211,888,141,105" partnerLink="StorageServiceUtil" partnerLinkType="StorageServiceUtil" operation="getStorageData" operationDesc="public com.cim.idm.wmspackage.storage.management.data.Storage getStorageData(java.lang.String siteName, java.lang.String storageName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="B17" type="java.lang.String" />
<input variable="unitName" type="java.lang.String" />
<output variable="shelfData" />
</invoke>
<switch name="switch" bounds="265,1023,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="226,1102,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getField('shelfData','useState')='Full'" bounds="166,1181,32,49">
<source idx="0" terminal="5,A" />
<invoke name="StorageServiceImpl modifyLocation" type="invokebean" description="public void modifyLocation(java.lang.String siteName, java.lang.String storageName, java.lang.String resourceState, java.lang.String useState, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="65,1260,235,102" partnerLink="StorageServiceImpl" partnerLinkType="StorageServiceImpl" operation="modifyLocation" operationDesc="public void modifyLocation(java.lang.String siteName, java.lang.String storageName, java.lang.String resourceState, java.lang.String useState, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="B17" type="java.lang.String" />
<input variable="unitName" type="java.lang.String" />
<input constant="InService" type="java.lang.String" />
<input constant="Empty" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="350,1181,61,49">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="226,1382,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</case>
<otherwise name="otherwise" type="otherwise" bounds="481,809,61,49">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="337,1445,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</case>
<otherwise name="otherwise" type="otherwise" bounds="612,572,61,49">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="415,1530,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="PackingGroupServiceUtil getPackingGroupListByTrayName" type="invokebean" description="public java.util.List getPackingGroupListByTrayName(java.lang.String trayName)" bounds="211,1599,141,105" partnerLink="PackingGroupServiceUtil" partnerLinkType="PackingGroupServiceUtil" operation="getPackingGroupListByTrayName" operationDesc="public java.util.List getPackingGroupListByTrayName(java.lang.String trayName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="trayName" type="java.lang.String" />
<output variable="palletList" />
</invoke>
<while name="while" bounds="267,1728,32,32" type="2" collection="palletList" element="palletInfo">
<source idx="0" terminal="5,A" />
<whilestart name="whilestart" type="whilestart" bounds="253,1783,110,49">
<source idx="0" terminal="5,A" />
</whilestart>
<expression name="expression" type="expression" bounds="211,1869,141,65">
<source idx="0" terminal="5,A" />
<function value="setVariable('palletKey',getField('palletInfo','key'))" />
<function value="setVariable('stockState',getField('palletInfo','stockState'))" />
</expression>
<invoke name="PackingGroupServiceImpl deassignTray" type="invokebean" description="public void deassignTray(java.lang.String SiteName, com.cim.idm.wmspackage.productpacking.management.data.ProductPackingKey palletkey, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map palletUserColumns, java.util.Map durableUserColumns)" bounds="211,1964,141,105" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="deassignTray" operationDesc="public void deassignTray(java.lang.String SiteName, com.cim.idm.wmspackage.productpacking.management.data.ProductPackingKey palletkey, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map palletUserColumns, java.util.Map durableUserColumns)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="B17" type="java.lang.String" />
<input variable="palletKey" type="com.cim.idm.wmspackage.productpacking.management.data.ProductPackingKey" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input variable="palletUserColumns" type="java.util.Map" />
<input variable="durableUserColumns" type="java.util.Map" />
</invoke>
<switch name="switch" bounds="253,2088,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="214,2167,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('stockState') ='Stocked'" bounds="154,2246,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="101,2305,141,65">
<source idx="0" terminal="5,A" />
<function value="setVariable('palletName',getField('palletKey','productPackingName'))" />
</expression>
<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="97,2389,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="F" type="java.lang.String" />
<input constant="00" type="java.lang.String" />
<input constant="B17" type="java.lang.String" />
<output variable="location" />
</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="77,2501,180,102" 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="location" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input constant="B17" type="java.lang.String" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="338,2246,61,49">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="398,2501,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<whileend name="whileend" type="whileend" bounds="193,2612,110,49">
<source idx="0" terminal="5,A" />
</whileend>
</while>
</sequence>
</process>