ziwms-svr/ziwms-parent/Environment/config/bpels/AWXsvr/LocationChangeReport.bpel
2025-03-19 10:28:25 +08:00

155 lines
14 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="LocationChangeReport.bpel">
<partnerLinks>
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
<partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
<partnerLink name="DurableServiceUtil" partnerLinkType="bean:DurableServiceUtil" />
<partnerLink name="StorageServiceUtil" partnerLinkType="bean:StorageServiceUtil" />
<partnerLink name="StorageServiceImpl" partnerLinkType="bean:StorageServiceImpl" />
<partnerLink name="PackingGroupServiceImpl" partnerLinkType="bean:PackingGroupServiceImpl" />
<partnerLink name="DurableServiceImpl" partnerLinkType="bean:DurableServiceImpl" />
</partnerLinks>
<variables>
<variable name="B9" messageType="java.lang.String"></variable>
<variable name="durableName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/TRAYNAME')" />
<variable name="Empty" messageType="java.lang.String"></variable>
<variable name="error" messageType="java.lang.Exception"></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="fgmsPalletInfo" messageType="com.cim.idm.wmspackage.productpacking.management.data.ProductPacking"></variable>
<variable name="Full" messageType="java.lang.String"></variable>
<variable name="InService" messageType="java.lang.String"></variable>
<variable name="locationName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/UNITNAME')" />
<variable name="message" messageType="org.jdom.Document"></variable>
<variable name="palletName" messageType="java.lang.String" expression="getXmlData('message', '//Message/Body/PALLETNAME')" />
<variable name="shelfName" messageType="java.lang.String"></variable>
<variable name="storageSpec" messageType="com.cim.idm.wmspackage.storage.management.data.StorageSpec"></variable>
<variable name="trayInfo" messageType="com.cim.idm.wmspackage.durable.management.data.Durable"></variable>
</variables>
<sequence>
<receive name="LocationChangeReport" bounds="93,30,142,75">
<input variable="message" type="org.jdom.Document" />
</receive>
<invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="94,135,140,102" 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="50,267,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 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="DurableServiceUtil getDurableData" type="invokebean" description="public com.cim.idm.wmspackage.durable.management.data.Durable getDurableData(java.lang.String SiteName, java.lang.String durableName)" bounds="94,399,140,102" partnerLink="DurableServiceUtil" partnerLinkType="DurableServiceUtil" operation="getDurableData" operationDesc="public com.cim.idm.wmspackage.durable.management.data.Durable getDurableData(java.lang.String SiteName, java.lang.String durableName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input constant="B17" type="java.lang.String" />
<input variable="durableName" type="java.lang.String" />
<output variable="trayInfo" />
</invoke>
<expression name="expression" type="expression" bounds="94,531,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('shelfName',getField('trayInfo','locationName'))" />
</expression>
<switch name="switch" bounds="148,623,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="109,702,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('shelfName') = ''" bounds="125,781,32,49">
<source idx="0" terminal="5,A" />
</case>
<otherwise name="otherwise" type="otherwise" bounds="256,781,61,49">
<source idx="0" terminal="5,A" />
<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="216,860,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="shelfName" type="java.lang.String" />
<output variable="storageSpec" />
</invoke>
<switch name="switch" bounds="270,995,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="231,1074,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getField('storageSpec','storageUseType') ='Storage'" bounds="171,1153,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="106,1248,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="shelfName" 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="428,1157,61,49">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="325,1357,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</otherwise>
<switchend name="switchend" type="switchend" bounds="15,1411,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="PackingGroupServiceImpl locationChangReport" type="invokebean" description="public void locationChangReport(java.lang.String SiteName, java.lang.String trayName, java.lang.String locationName, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="254,1499,217,102" partnerLink="PackingGroupServiceImpl" partnerLinkType="PackingGroupServiceImpl" operation="locationChangReport" operationDesc="public void locationChangReport(java.lang.String SiteName, java.lang.String trayName, java.lang.String locationName, 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="durableName" type="java.lang.String" />
<input variable="locationName" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
</invoke>
<invoke name="DurableServiceImpl changeTrayLocation" type="invokebean" description="public void changeTrayLocation(java.lang.String trayName, java.lang.String locationName, java.lang.String eventComment, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" bounds="215,1627,294,102" partnerLink="DurableServiceImpl" partnerLinkType="DurableServiceImpl" operation="changeTrayLocation" operationDesc="public void changeTrayLocation(java.lang.String trayName, java.lang.String locationName, java.lang.String eventComment, com.cim.idm.framework.data.EventInfo eventInfo, java.lang.String siteName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="durableName" type="java.lang.String" />
<input variable="locationName" type="java.lang.String" />
<input variable="eventComment" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input constant="B17" type="java.lang.String" />
</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="293,1748,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="locationName" type="java.lang.String" />
<output variable="storageSpec" />
</invoke>
<switch name="switch" bounds="357,1874,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="314,1928,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getField('storageSpec','storageUseType') ='Storage'" bounds="287,2001,60,19">
<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="200,2066,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="locationName" type="java.lang.String" />
<input constant="InService" type="java.lang.String" />
<input constant="Full" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="403,2041,88,19">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="299,2187,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="276,2250,140,102" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
</invoke>
</sequence>
</process>