Dropping and linking the components
Procedure
- From the Connectivity folder of the Palette, drop three cFile and four cMessagingEndpoint components onto the design workspace, and label them Sender, Receiver_Paris, and Receiver_Others, directParis, directOthers, directParisRoute, and directOthersRoute respectively to better identify their roles.
- From the Routing folder, drop a cMessageRouter component onto the design workspace, and label it Message_router.
- From the Miscellaneous folder, drop two cLog components onto the design workspace, and label them Monitor_Paris and Monitor_Others respectively.
- Right-click the cFile component labeled Sender, select Row > Route from the contextual menu and click the cMessageRouter component.
- Right-click the cMessageRouter component, select Trigger > When from the contextual menu and click the cMessagingEndpoint component labeled directParis. This endpoint will retrieve the messages that meet the defined criterion.
- Right-click the cMessageRouter component, select Trigger > Otherwise from the contextual menu and click the cMessagingEndpoint component labeled directOthers. This endpoint will collect all the messages that do not meet the filter criterion.
- Right-click the cMessagingEndpoint component labeled directParis, select Row > Route from the contextual menu and click the cFile component labeled Receiver_Paris. Repeat this operation to link the component labeled Receiver_Paris to Monitor_Paris, directOthersRoute to Receiver_Others, and Receiver_Others to Monitor_Others respectively using the Row > Route connection.