Dropping and linking the components
About this task
This use case uses two cFile components, one as the message sender and the other as the receiver, a cSplitter component to split the source message into sub-messages, a cSetHeader component to rename each sub-message, and a cProcessor component to display the file name of each message routed to the receiver.
Procedure
- From the Palette, expand the Connectivity folder, and drop two cFile components onto the design workspace.
- From the Routing folder, drop a cSplitter component onto the design workspace, between the two cFile components.
- From the Core folder, drop a cSetHeader component onto the design workspace, between the cSplitter component and the receiving cFile component.
- Right-click the first cFile component, select Row > Route from the contextual menu and click the cSplitter component.
- Right-click the cSplitter component, select Row > Split from the contextual menu and click the cSetHeader component.
- Right-click the cSetHeader component, select Row > Route from the contextual menu and click the second cFile component.
- Right-click the second cFile component, select Row > Route from the contextual menu and click the cProcessor component.
- Label the components to better identify their roles in the Route, as shown above.