Navigation:  Beginner Phase > Back to the example >

Adding the Trash component

The Trash component can be found the in Component Palette in the "Writers" section. This is a really useful component for testing out the end points in our graph. It means that we do not actually need to create a file or database output. Any data that arrives there will be discarded.

 

You may be wondering "if it is going to be discarded, what is the point of having it at all?" and the answer to this is that it let's us use some of the clever debugging capabilities of Clover to monitor things. We will see this in action in a moment. First, though, put your trash component into the graph.

 

Next, you will want to join the Reader to the Trash with a line.

 

Spanner

1.Select the "Edge" tool from the toolbox palette in the main component toolbar on the right side.
2.Click on the Data Reader (the upper of the two ports) and drag across to the Trash. Yes, the joining process is a little quirky as you have to click on the target component to get it to drop.
3.Press the escape key to change from Edge mode back to Select mode. Do this now.

 

 

 

ReaderToTrash