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

77 lines
6.2 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="ShelfAvailableStateReport.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" />
</partnerLinks>
<variables>
<variable name="availableState" messageType="java.lang.String" expression="getXmlData('message','/Message/Body/AVAILABLESTATENAME')" />
<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="message" messageType="org.jdom.Document"></variable>
<variable name="shelfData" messageType="com.cim.idm.wmspackage.storage.management.data.Storage"></variable>
<variable name="shelfName" messageType="java.lang.String" expression="getXmlData('message','/Message/Body/SHELFNAME')" />
<variable name="userColumns" messageType="java.util.Map" expression="newInstance('java.util.HashMap', 10)" />
</variables>
<sequence>
<receive name="ShelfAvailableStateReport" bounds="158,30,162,75">
<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 eventName, java.lang.String eventUser, java.lang.String eventComment, java.lang.String reasonCodeType, java.lang.String reasonCode)" bounds="169,135,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 checkLocationExist" type="invokebean" description="public com.cim.idm.wmspackage.storage.management.data.Storage checkLocationExist(java.lang.String SiteName, java.lang.String locationName)" bounds="169,270,140,102" partnerLink="StorageServiceUtil" partnerLinkType="StorageServiceUtil" operation="checkLocationExist" operationDesc="public com.cim.idm.wmspackage.storage.management.data.Storage checkLocationExist(java.lang.String SiteName, java.lang.String locationName)" 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="shelfData" />
</invoke>
<switch name="switch" bounds="219,402,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="204,481,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('availableState') = 'Available'" bounds="135,560,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="81,639,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('availableState','InService')" />
</expression>
</case>
<case name="case" type="case" condition="getVariable('availableState') = 'NotAvailable'" bounds="312,560,32,49">
<source idx="0" terminal="5,A" />
<expression name="expression" type="expression" bounds="258,639,140,62">
<source idx="0" terminal="5,A" />
<function value="setVariable('availableState','NotInService')" />
</expression>
</case>
<switchend name="switchend" type="switchend" bounds="208,721,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<expression name="expression" type="expression" bounds="169,800,141,65">
<source idx="0" terminal="5,A" />
<function value="addMap(getVariable('userColumns'),'resourceState',getVariable('availableState'))" />
</expression>
<invoke name="StorageServiceImpl setEvent" type="invokebean" description="public void setEvent(java.lang.String siteName, java.lang.String storageName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" bounds="169,895,140,102" partnerLink="StorageServiceImpl" partnerLinkType="StorageServiceImpl" operation="setEvent" operationDesc="public void setEvent(java.lang.String siteName, java.lang.String storageName, com.cim.idm.framework.data.EventInfo eventInfo, java.util.Map userColumns)" 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 variable="eventInfo" type="com.cim.idm.framework.data.EventInfo" />
<input variable="userColumns" type="java.util.Map" />
</invoke>
</sequence>
</process>