In KNIME, global flow variables are defined per workflow from a dropdown menu
which pops up a list of all currently defined variables, with options to add, edit, or remove any global variables.
PyWorkflow
Existing endpoints for global variables:
GET /workflow/globals: Retrieves a list of defined global variables
POST /node/: define new global variables, including a is_global: true key: value pair in the body of the request
POST/DELETE /node/global/<node_id>/: updated/delete global variables
In terms of UI, one suggestion for how to implement this is a new section somewhere in the workspace, displaying the info retrieved from /workflow/globals. A + button could trigger the POST request, appending the is_global attribute (whereas Nodes dragged from the list would not include is_global or POST it as false).
KNIME
In KNIME, global flow variables are defined per workflow from a dropdown menu
which pops up a list of all currently defined variables, with options to add, edit, or remove any global variables.
PyWorkflow
Existing endpoints for global variables:
GET /workflow/globals
: Retrieves a list of defined global variablesPOST /node/
: define new global variables, including ais_global: true
key: value pair in the body of the requestPOST/DELETE /node/global/<node_id>/
: updated/delete global variablesIn terms of UI, one suggestion for how to implement this is a new section somewhere in the workspace, displaying the info retrieved from
/workflow/globals
. A+
button could trigger the POST request, appending theis_global
attribute (whereas Nodes dragged from the list would not includeis_global
or POST it asfalse
).