Skip to content

Data mapping for subworkflow can be done in two inconsistent ways #295

Description

@poautran

In GitLab by @loichuder on Nov 15, 2024, 11:41 GMT+1:

While working on #275, I realized that to map data to a subworkflow, we can either:

  • Drag a link to the appropriate named input/output handle of the subworkflow node
    image

  • Change the data mapping of the said link
    image

However, the two are inconsistent and not synchronized. To illustrate this, see that in the example image, I set the data mapping target to In0 while the link points to In1. This is confusing since we don't know to which input the output will be sent (In0, In1, both?).

I would propose to remove the named handles from the subworkflow node and keep only the data mapping. This would make subworkflow nodes more similar to regular nodes which is a good thing in my opinion. To elaborate: when using a node in a workflow, we are not really interested to know if it is a task or a subworkflow underneath: this is a detail of implementation IMO.

Thoughts @woutdenolf @LudoBroche ?

Migrated from GitLab: https://gitlab.esrf.fr/workflow/ewoks/ewoksweb/-/issues/282

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions