I’d like to set some parameters in Webportal (new version) Workflows with URL parameters as described here.
Though if I try to overwrite a default value with e.g. &pm:integer-input=1 the workflow does not start. Full URL is like this:
/webportal/space/path/to/workflow/TestParam?exec&pm:integer-input=1
I’ll attach a test workflow for you to check if there is a problem with the workflow itself.
Hi @lindig,
I think there may be a small problem with the current handling of the pm parameter: You must add the node id to the URL, so it is: /webportal/space/path/to/workflow/TestParam?exec&pm:integer-input-2=1
It should work without that, though, so I will open a ticket.
Kind regards,
Alexander
thanks for your reply.
It still doesn’t work after adding the node id.
Also when I open the API definiton of the workflow both of the Configuration Nodes are not recognized as Input Parameters. Is this the normal behaviour?
In the old Webportal all of that used to work with the legacy Input Nodes.
Hi,
You say in your first post that the workflow fails to start. Is that only when you explicitly pass variables via URL? Does it work if you just use https://:8443/knime/webportal/space/TestParam?exec? Additionally, what is the error message? The config nodes also do not turn up in my Swagger documentation, but the workflow call in the browser with parameters works regardless.
Kind regards,
Alexander
Hi,
yes, with just the ?exec it executes fine with the default values. When I pass the params the Job gets created but remains in a failed state. When I try to access the Job the message says “Job is in an unexpected state”.