I would like to abstract multiple built-in or other nodes that are currently available to create one single composite node. In other words, if these built-in/other nodes have UI information that need to be set, I would like to set those values directly from my composite node. The idea is to delegate the processing of a particular task (that is exposed by these other nodes) to these nodes directly (in my composite node).
For example, I want to monitor files from a directory. When ever a new file appears in the directory, I want to parse the records and create json messages for each record. Yet I want to expose all this functionality as a single composite node.
I want to leverage the built-in components 'watch-directory' node to watch for files, 'file in' node to read the file content and generate message for each record, 'csv' node to transform each record to each json message. Yet I want to hide all of these components under my new composite node to do the actual work.
- Is this possible with minimal work?
- Is this a good idea or bad idea?
- What are the pitfalls?