Displaying widgets of sub-workflows

Hi all,

I’m looking for a way to display the widgets of sub-workflows while using the “Call … Workflow” nodes.

We are building an orchestrator script which can execute different sub-workflow dynamically. This sub-workflow will contain it’s own widgets (the set-up of widgets can vary per workflow in numbers and widget node types).

The orchestrator workflow must display two pages, where component 1 will be identical for any execution and component 2 will contain all widgets from the sub-workflow. However, I’m not sure if this is even achievable.

Attached you’ll find two simplified examples for our use case:

  • Example 1: Workflow with two components. Both interactive views display the required widgets.
    image

  • Example 2: Workflow with two components, the second component is calling a sub-workflow. The interactive view of component 1 is displaying the required widgets, but component 2 has no interactive view available (these widgets are created in the sub-workflow). The interactive view of example 1 component 2 shows how I would like to see the results of example 2 component 2.

I would like to be able to display the sub-workflow via the KNIME server WebPortal as if it was part of the main workflow, enabling the user to interact with the widgets of the sub-workflow (Example 2 is a simplified version of this). Would this be possible? If so, how can I achieve this?

Workflow & Sub Workflow displaying widgets.knar (47.3 KB)

Hi @RKrom,

Nice idea, but I’m afraid that what you want to do is unfortunately not possible, I’m sorry.
Only option that comes to my mind is working with switches in your main workflow. Is that an option for you?

Best,
Alice

2 Likes

Hi Alice,

Thanks for your response!

The goal with these sub-workflows was to prevent changes to the main workflow (only sub-workflows will be added/updated). It is possible to use case switches in the main workflow itself, but this means the use of sub-workflows will be redundant as we have to update the main workflow anyway with every change of the inputs.

It would be a nice feature to be able to interact with the sub-workflow’s widgets :wink:

Best regards,
RKrom

Hi @RKrom

Yeah, I get that this would make workflow management more easy.
I have opened a feature request for that, I will keep you updated in case there are news on that.

Thanks,
Alice

2 Likes

Super, thanks Alice!
I’m looking forward to this feature.