Comments (7)
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.
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.
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.
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.
you once also mentioned to set xslt files as default. but how do I get them into the "edit parameters" dialog?
from dm2e-gui.
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.
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)
- Need to cancel jobs
- assign labels to uploaded files
- Job won't open from Job list HOT 1
- Too many and inconsistent jobs per workflow execution
- File Type is sometimes shown incorrectly as UNKNOWN
- Configuration list is unsorted
- Imrpove Validation and Validation result presentation
- workflow list needs filter bar
- show upload date as YYYY-MM-DD HH:MM:SS
- workflow editor: Position input parameters can be repeatedly dragged to Workflow input parameter list
- ZIP Iterator gets stuck
- List all jobs for a specific configuration HOT 4
- I cannot open or edit the workflow configuration that I have created HOT 1
- The my stuff filter did not work for jobs
- The collection and provider ids are not stored or only not shown on Pubby HOT 3
- Executing this config results in 400
- Configurable XSLT parameters
- parseXsltParameters HOT 1
- Merge XSLT and XSLT-ZIP services
- Show parameter rdfs:comment on hover
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dm2e-gui.