Flow variable as input port

Hi everyone,

I got inspired by the Summit and started developing my own node. I tried to create a node with only a flow variable input port, but unfortunately, it’s not showing up in KNIME. The tutorial extension works seamlessly.

Attached the .py file of my code. Any ideas on what might be wrong?

Új Szöveges dokumentum.txt (717 Bytes)

Hi @CsSandor,

Good to hear you’ve started to play around with this!

Currently, there’s no way to expose a flow variable port as the only input port for pure Python-based nodes. As a workaround, you can design the node with no input ports and have it fail during configuration if the flow variables aren’t present.

Best,
Keerthan

Hi @CsSandor,

so you are saying the example node from the tutorial is visible but not this node. Correct? If so, what does the KNIME Console (if you switch to classic UI) say or the KNIME Log? There should be some hints.

Furthermore in your code, shouldn’t the configure and execute methods be more indented?

Best
Steffen

And having looked at your code again: you define that there is an input and output port, but you do not address them as input and output variables in the execute method. Please follow the tutorial fully and then have another look :slight_smile: