IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows > Aggregating and broadcasting messages

Broadcasting messages

For broadcasting, you use the Fan Out primitive in isolation to send a message one way such as when you want to send a notification and do not need a response.

The Fan Out primitive can perform a number of one way operations based on each occurrence of a repeating element in an input message.

Typically you broadcast a message in an order-processing flow, for example to send notifications to the warehouse for each item in an order. The following figure shows a sample wiring of the Fan Out primitive:


Procedure

  1. FanOut1 is dropped on the canvas and configured in iterate mode. The XPath expressions is configured to point to the repeating element of order items, in this case itemName. The FanOutContext is of the same type as the repeating element.

  2. XSLTransformation1 maps to the message type that the callout requires by mapping the order item in the FanOutContext to the body of the target service message object.

  3. The output terminal of FanOut1 fires for each order item in the message, which invokes the callout for each item.

Aggregating and broadcasting messages