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

131 lines
11 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="InitialShelfInfoReport.bpel">
<partnerLinks>
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
<partnerLink name="StorageServiceImpl" partnerLinkType="bean:StorageServiceImpl" />
<partnerLink name="PackingGroupServiceImpl" partnerLinkType="bean:PackingGroupServiceImpl" />
<partnerLink name="DurableServiceImpl" partnerLinkType="bean:DurableServiceImpl" />
</partnerLinks>
<variables>
<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="locationName" messageType="java.lang.String"></variable>
<variable name="message" messageType="org.jdom.Document"></variable>
<variable name="resourceState" messageType="java.lang.String"></variable>
<variable name="shelfElement" messageType="org.jdom.Element"></variable>
<variable name="shelfList" messageType="java.util.List"></variable>
<variable name="storageName" messageType="java.lang.String"></variable>
<variable name="transActionId" messageType="java.lang.String" expression="getXmlData('message','//Message/Header/TRANSACTIONID')" />
<variable name="trayName" messageType="java.lang.String"></variable>
<variable name="useState" messageType="java.lang.String"></variable>
</variables>
<sequence>
<receive name="InitialShelfInfoReport" bounds="219,30,155,95">
<input variable="message" type="org.jdom.Document" />
</receive>
<invoke name="EventInfoUtil makeEventInfo" type="invokebean" description="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String behaviorName, java.lang.String eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="131,155,330,102" partnerLink="EventInfoUtil" partnerLinkType="EventInfoUtil" operation="makeEventInfo" operationDesc="public static com.cim.idm.framework.data.EventInfo makeEventInfo(java.lang.String behaviorName, 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="action_exceptAction" type="java.lang.String" />
<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="StorageServiceImpl initialDataLog" type="invokebean" description="public void initialDataLog(java.lang.String transActionId, org.jdom.Document message, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="198,287,197,102" partnerLink="StorageServiceImpl" partnerLinkType="StorageServiceImpl" operation="initialDataLog" operationDesc="public void initialDataLog(java.lang.String transActionId, org.jdom.Document message, com.cim.idm.framework.data.EventInfo eventInfo)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="transActionId" type="java.lang.String" />
<input variable="message" type="org.jdom.Document" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
</invoke>
<expression name="expression" type="expression" bounds="226,419,141,65">
<source idx="0" terminal="5,A" />
<function value="setVariable('shelfList',getElementList('message','//SHELF'))" />
</expression>
<while name="while" bounds="280,514,32,32" type="2" collection="shelfList" element="shelfElement">
<source idx="0" terminal="5,A" />
<whilestart name="whilestart" type="whilestart" bounds="241,593,110,49">
<source idx="0" terminal="5,A" />
</whilestart>
<switch name="switch" bounds="280,672,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="241,751,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('eventUser') = 'WMS370'" bounds="117,830,60,67">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="77,927,141,65">
<source idx="0" terminal="5,A" />
<function value="setVariable('useState',getXmlData('shelfElement','//USESTATE'))" />
<function value="setVariable('resourceState',getXmlData('shelfElement','//AVAILABLESTATENAME'))" />
<function value="setVariable('storageName',getXmlData('shelfElement','//LOCATIONNAME'))" />
<function value="setVariable('trayName',getXmlData('shelfElement','//LOCATIONNAME'))" />
</expression>
</case>
<otherwise name="otherwise" type="otherwise" bounds="402,830,88,57">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="376,917,141,65">
<source idx="0" terminal="5,A" />
<function value="setVariable('useState',getXmlData('shelfElement','//USESTATE'))" />
<function value="setVariable('trayName',getXmlData('shelfElement','//TRAYNAME'))" />
<function value="setVariable('storageName',getXmlData('shelfElement','//SHELFNAME'))" />
<function value="setVariable('resourceState',getXmlData('shelfElement','//AVAILABLESTATENAME'))" />
</expression>
</otherwise>
<switchend name="switchend" type="switchend" bounds="405,1012,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<invoke name="StorageServiceImpl changShelfState" type="invokebean" description="public void changShelfState(java.lang.String siteName, java.lang.String storageName, java.lang.String resourceState, java.lang.String useState, java.lang.String trayName, com.cim.idm.framework.data.EventInfo eventInfo)" bounds="299,1091,322,102" partnerLink="StorageServiceImpl" partnerLinkType="StorageServiceImpl" operation="changShelfState" operationDesc="public void changShelfState(java.lang.String siteName, java.lang.String storageName, java.lang.String resourceState, java.lang.String useState, java.lang.String trayName, 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="storageName" type="java.lang.String" />
<input variable="resourceState" type="java.lang.String" />
<input variable="useState" type="java.lang.String" />
<input variable="trayName" type="java.lang.String" />
<input variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
</invoke>
<switch name="switch" bounds="444,1223,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="405,1302,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="isNull('trayName')='false'&#xA; or getVariable('trayName') != ''" bounds="248,1381,96,55">
<source idx="0" terminal="5,A" />
<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="203,1466,187,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="trayName" type="java.lang.String" />
<input variable="storageName" 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="164,1598,264,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="trayName" type="java.lang.String" />
<input variable="storageName" 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>
</case>
<otherwise name="otherwise" type="otherwise" bounds="581,1381,88,67">
<source idx="0" terminal="5,A" />
</otherwise>
<switchend name="switchend" type="switchend" bounds="405,1720,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<whileend name="whileend" type="whileend" bounds="405,1789,110,49">
<source idx="0" terminal="5,A" />
</whileend>
</while>
</sequence>
</process>