Flow_variables to support Object as well

Hi,

Currently, Flow_variables only support 3 types of datatype Double, Integer and String. Is it possible to support Sequence Types like Tuple, List, Range and also Object itself?

The 2 output port at max in python script really limit the power of it. I am trying to send the list of objects(supporting all datatype) through Flow_variable but currently it support of 3 data types. Supporting object or list of object (all datatype) in flow_variable will solve crucial problem.

Thanks.
Dipendra

You can model objects using tables and converting nodes like







So on.
3 Likes

Thanks so much. Serialization to JSON really works well. Didn’t popup that solution in mind. :smile:

1 Like

Hi Dipendra,

Just a quick follow-up on this one:

In KNIME Analytics Platform v4.3 (released two days ago), we have added a new Python Script node that supports an arbitrary number of outputs and inputs. You can find it here.

Marcel

2 Likes