Dropping and linking components
Procedure
- From the Connectivity folder of the Palette, drop twocFile components onto the design workspace, one as the message sender and the other as the message receiver.
- From the Exception Handling folder, drop a cTry component onto the design workspace to build Try, Catch and Finally blocks.
- From the Custom folder, drop two cProcessor components onto the design workspace.
- Link the cFile component serving as message sender to the cTry component using a Row > Route connection.
- Link the cTry component to one cProcessor using a Row > Try connection. This cProcessor component will throw an exception if any file coming via this connection does not contain the required content.
- Link the cTry component to the other cProcessor component using a Row > Catch connection to catch the exception. This cProcessor component will display the information related to the exception and the file name that does not contain the required content.
- Link the cTry component to the receiving cFile component using a Row > Finally connection.
- Label the components according to their roles in the Route.