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

125 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="MaterialReceiveReportByBox.bpel">
<partnerLinks>
<partnerLink name="bpelj" partnerLinkType="bpel:bpelj" />
<partnerLink name="EventInfoUtil" partnerLinkType="bean:EventInfoUtil" />
<partnerLink name="TransactionUtil" partnerLinkType="bean:TransactionUtil" />
<partnerLink name="MaterialPackingServiceImpl" partnerLinkType="bean:MaterialPackingServiceImpl" />
<partnerLink name="ESBService" partnerLinkType="bean:ESBService" />
</partnerLinks>
<variables>
<variable name="area" messageType="java.lang.String"></variable>
<variable name="FABSender" messageType="java.lang.String"></variable>
<variable name="MaterialReceiveReportByBox" messageType="org.jdom.Document"></variable>
<variable name="MESSender" messageType="java.lang.String"></variable>
<variable name="MODSender" messageType="java.lang.String"></variable>
<variable name="receiveActNo" messageType="java.lang.String" expression="getXmlData('MaterialReceiveReportByBox', '//Message/Body/RECEIVEACTNO')" />
<variable name="replySubjectName" messageType="java.lang.String" expression="getXmlData('MaterialReceiveReportByBox', '//Message/Header/ORIGINALSOURCESUBJECTNAME')" />
<variable name="shipRequestName" messageType="java.lang.String" expression="getXmlData('MaterialReceiveReportByBox', '//Message/Body/INVOICENO')" />
<variable name="siteName" messageType="java.lang.String" expression="getXmlData('MaterialReceiveReportByBox', '//Message/Body/SITENAME')" />
</variables>
<sequence>
<receive name="MaterialReceiveReportByBox" bounds="326,30,149,62">
<input variable="MaterialReceiveReportByBox" 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="330,122,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 constant="MaterialReceiveReportByBox" type="java.lang.String" />
<input constant="MES" type="java.lang.String" />
<input constant="MesReceiveBox" type="java.lang.String" />
<input constant="" type="java.lang.String" />
<input constant="" type="java.lang.String" />
</invoke>
<invoke name="TransactionUtil beginTransaction" type="invokebean" description="public void beginTransaction()" bounds="330,257,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="beginTransaction" operationDesc="public void beginTransaction()" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
</invoke>
<invoke name="MaterialPackingServiceImpl UpdateBoxStateByMES" type="invokebean" description="public void UpdateBoxStateByMES(java.lang.String siteName, java.lang.String shipRequestName, java.lang.String receiveActNo)" bounds="330,392,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="UpdateBoxStateByMES" operationDesc="public void UpdateBoxStateByMES(java.lang.String siteName, java.lang.String shipRequestName, java.lang.String receiveActNo)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="shipRequestName" type="java.lang.String" />
<input variable="receiveActNo" type="java.lang.String" />
</invoke>
<invoke name="TransactionUtil commitTransaction" type="invokebean" description="public void commitTransaction()" bounds="330,527,141,105" partnerLink="TransactionUtil" partnerLinkType="TransactionUtil" operation="commitTransaction" operationDesc="public void commitTransaction()" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
</invoke>
<invoke name="MaterialPackingServiceImpl getArea" type="invokebean" description="public java.lang.String getArea(java.lang.String siteName, java.lang.String shipRequestName)" bounds="330,662,141,105" partnerLink="MaterialPackingServiceImpl" partnerLinkType="MaterialPackingServiceImpl" operation="getArea" operationDesc="public java.lang.String getArea(java.lang.String siteName, java.lang.String shipRequestName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="siteName" type="java.lang.String" />
<input variable="shipRequestName" type="java.lang.String" />
<output variable="area" />
</invoke>
<switch name="switch" bounds="384,797,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="345,876,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('area') = 'FABERPLOCATION'" bounds="216,955,60,61">
<source idx="0" terminal="5,A" />
<switch name="switch" bounds="230,1046,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="191,1125,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('siteName')='TM1'" bounds="114,1204,60,53">
<source idx="0" terminal="5,A" />
<invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="74,1287,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendByMesSender" operationDesc="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="MaterialReceiveReportByBox" type="org.jdom.Document" />
<input constant="TM1FABSender" type="java.lang.String" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="305,1204,88,75">
<source idx="0" terminal="5,A" />
<invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="279,1309,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendByMesSender" operationDesc="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="MaterialReceiveReportByBox" type="org.jdom.Document" />
<input constant="FABSender" type="java.lang.String" />
</invoke>
</otherwise>
<switchend name="switchend" type="switchend" bounds="191,1434,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</case>
<otherwise name="otherwise" type="otherwise" bounds="612,955,88,68">
<source idx="0" terminal="5,A" />
<switch name="switch" bounds="640,1053,33,33" type="switch">
<source idx="0" terminal="5,A" />
<switchstart name="switchstart" type="switchstart" bounds="601,1132,110,49">
<source idx="0" terminal="5,A" />
</switchstart>
<case name="case" type="case" condition="getVariable('siteName')='TM1'" bounds="524,1211,60,49">
<source idx="0" terminal="5,A" />
<invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="484,1290,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendByMesSender" operationDesc="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="MaterialReceiveReportByBox" type="org.jdom.Document" />
<input constant="TM1MODSender" type="java.lang.String" />
</invoke>
</case>
<otherwise name="otherwise" type="otherwise" bounds="715,1211,88,43">
<source idx="0" terminal="5,A" />
<invoke name="ESBService sendByMesSender" type="invokebean" description="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" bounds="689,1284,141,105" partnerLink="ESBService" partnerLinkType="ESBService" operation="sendByMesSender" operationDesc="public static void sendByMesSender(org.jdom.Document doc, java.lang.String senderName)" ignoreThrow="false" fork="false">
<source idx="0" terminal="5,A" />
<input variable="MaterialReceiveReportByBox" type="org.jdom.Document" />
<input constant="MODSender" type="java.lang.String" />
</invoke>
</otherwise>
<switchend name="switchend" type="switchend" bounds="601,1415,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
</otherwise>
<switchend name="switchend" type="switchend" bounds="191,1503,110,49">
<source idx="0" terminal="5,A" />
<source idx="1" terminal="5,A" />
</switchend>
</switch>
<terminate name="terminate" bounds="180,1584,141,65">
<source idx="0" terminal="5,A" />
</terminate>
</sequence>
</process>