
Chapter 8. Part replenishment in WebSphere BI Message Broker 319
Finally, when the loop is completed, we set the ReturnCode element of the data
structure and complete the ESQL module.
Example 8-5 ESQL module for Compute node Build workflow response
CREATE COMPUTE MODULE Parts_Replenishment_Flow_Compute2
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE refResponse REFERENCE TO InputRoot.ComIbmAggregateReplyBody.Response;
DECLARE refRequest REFERENCE TO InputRoot.ComIbmAggregateReplyBody.Request;
SET OutputRoot.Properties.MessageSet = ' ';
SET OutputRoot.MQMD.Version = MQMD_CURRENT_VERSION;
SET OutputRoot.MQMD.MsgType = MQMT_REPLY;
SET OutputRoot.MQMD.Format ...