Chapter 8. Scenario: Aggregation 271
-- To simplify this scenario, while maintaining the focus, we hardcode
-- the response from the supplier
SET OutputRoot.MRM.suppliers.supplier[1].item = InputRoot.MRM.item;
SET OutputRoot.MRM.suppliers.supplier[1].id = 'supplier1ID';
SET OutputRoot.MRM.suppliers.supplier[1].price = '10.00';
SET OutputRoot.MRM.suppliers.supplier[1].name = 'Supplier1';
SET OutputRoot.MRM.suppliers.supplier[1].address ='123 Supplier1 Street';
SET OutputRoot.MRM.suppliers.supplier[1].city='RTP';
SET OutputRoot.MRM.suppliers.supplier[1].state='NC';
SET OutputRoot.MRM.suppliers.supplier[1].zip='27709';
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
END MODULE;
Supplier1Reply MQReply node
The Supplier1Reply MQReply node processes the request message. It sends
the message to the queue specified in the reply-to queue set in the
AggRequestToSupplier1 node of the FindSuppliersAggFanOut.msgflow. See
Figure 8-54.
Figure 8-54 Supplier1Reply node
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.188.160