GithubHelp home page GithubHelp logo

Comments (7)

kba avatar kba commented on August 11, 2024

Suppose a pos1 has a required parameter and you want to define a workflow-specific default (say, the organization name or a default XSLT). Then it should be possible to make the workflow parameter optional.

Maybe the logic should be that a workflow parameter without a default cannot be set to non-required?

from dm2e-gui.

d0rg0ld avatar d0rg0ld commented on August 11, 2024

But doesn't this rather mean that the parameter is kind of "fixed" or "not fixed" ? If a parameter is "required" by the web service, then it has to be there. If I "hard-code" a default value or not, is IMHO not the question of "required or not required". in other words: probably the "required" radio button has a totally different meaning than the "required" statement in the web service parameter list? then it would be good to find different terms for the radio button!

from dm2e-gui.

kba avatar kba commented on August 11, 2024

Probably the problem here is that this view mixes model levels. Thinking about it, I think you should not be allowed to change the "required/not-required" state of position parameters. After all, these are defined by the web service descriptions and can lead to workflows using the same web services being incompatible. Edit, that is beyond the point, the UI doesn't allow that anyway, ignore

Instead, workflow input parameters should be used for everything and webs service parameters should not be editable at all:

  • To set a fixed, workflow-specific constant, connect position parameter to workflow and set the default value of the workflow parameter and set to non-required
  • Any position parameter connected to a workflow without a default value is always required\
  • Every workflow with web services that have required input parameters NOT connected to the workflow should result in a warning when trying to save it and refuse the creation of workflow configurations.
  • Every workflow with web service output parameters not connected to the workflow or other web service input parameters should result in a warning when trying to save that workflow but allow the creation of workflow configs.

These checks are actually in the backend code but not enforced, we should expose them to the HTTP API.

@kaiec @Dommii Does that make sense to you?

from dm2e-gui.

d0rg0ld avatar d0rg0ld commented on August 11, 2024

regarding the "edit parameter" dialog: for me, setting required/not-required currently results in whether you can edit the value in the configuration or not.

So why dont you just call it: "editable/not editable in config" and then, as you suggest, to issue warnings about unmet parameter requirements. So if I set a "required" parameter to "not editable" then it must have a default, otherwise there will be a warning ...

from dm2e-gui.

d0rg0ld avatar d0rg0ld commented on August 11, 2024

you once also mentioned to set xslt files as default. but how do I get them into the "edit parameters" dialog?

from dm2e-gui.

kba avatar kba commented on August 11, 2024

So why dont you just call it: "editable/not editable in config" and then, as you suggest, to issue warnings about unmet parameter requirements. So if I set a "required" parameter to "not editable" then it must have a default, otherwise there will be a warning ...

Even parameters with a default should be editable in the config editor IMHO. That way you can re-use a workflow from another organization e.g.

In the end wouldn't it be easier to get rid of the required/not-required option completely and just enforce that all input parameters in the config editor must be set?

you once also mentioned to set xslt files as default. but how do I get them into the "edit parameters" dialog?

You can't drag and drop them if that's what you mean. We could add the file list view from the config editor to the parameter edit view but that might mislead users to edit the workflow for every new ingestion instead of using different configurations.

from dm2e-gui.

kba avatar kba commented on August 11, 2024

All parameters are required but the user can set a default value. Though users can override this, this seems the least confusing solution.

from dm2e-gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.