galaxyproject / galaxy

Data intensive science for everyone.
https://galaxyproject.org
Other
1.39k stars 999 forks source link

More expressive conditionals #13931

Open bernt-matthias opened 2 years ago

bernt-matthias commented 2 years ago

Few ideas to make conditionals more expressive:

<conditional...>
    <param type="select"...>
    <when value="A"/>
    <when value="B"/>
    <when value="A"/>
</conditional>

Potential problem:

bernt-matthias commented 2 years ago

Personal communication with @nsoranzo

We should use a different attribute than value if we use regular expressions.

mvdbeek commented 2 years ago

If we do this it should be something that we can evaluate on the client as well, otherwise we'll be dealing with loads of invalid workflow connections that we can't validate in the editor.

bernt-matthias commented 2 years ago

If we do this

You mean regular expressions? Maybe this can be a 2nd step...

mvdbeek commented 2 years ago

Any new way to specify and evaluate conditionals, these are probably the biggest hurdle in creating workflows .