Skip to content

UI: Handling global flow variables #64

@reelmatt

Description

@reelmatt

KNIME

In KNIME, global flow variables are defined per workflow from a dropdown menu
KNIME global vars
which pops up a list of all currently defined variables, with options to add, edit, or remove any global variables.
KNIME global vars list

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).

Pyworkflow global vars

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions