Hello,
I would like to find a way to push data across different branches of a workflow, depending on the type of the data.
I have a File Upload node which limits the type of files to SD or to ones containing SMILES strings by setting the Valid File Extensions to "sdf, smi".
How could I send data to either an SDF Reader or Line Reader node, depending on the extension?
I have tried a CASE Switch node and managed to select the output according to the file extension. However, I have not found a node that could feed it the "raw" file content without interpreting it. Ideally, I would like to pass the content of the file to it, without having it split by line or by SD block first.
I have also tried feeding the data directly to both an SDF Reader and a Line Reader node, trying to join the output via a Joiner node with an outer join. This will not work because the Line Reader does return a table, even when SD file content is fed to it (expected behaviour, I am not complaining).
Instead of a Joiner node, I have tried an End If node (also tried with an End CASE) but I get an error: "The structures of both active input data tables are not compatible".
There must be a simple way I have not thought of yet... Anyone wishing to point me in the right direction?
Cheers,
Fred