Aller au contenu

Leçon 22 · Scripting, Sharing and Practices

Sharing and Deploying KNIME Workflows

Export and share KNIME workflows safely, use KNIME Hub spaces and versions, and understand data apps, schedules, and services before you deploy anything.

A workflow that lives only on your laptop helps only you. This lesson covers the ways to share workflows, what can go wrong, and what deployment means on KNIME Hub.

Share a file

You can export a workflow from your local space and send the exported file, or a colleague can import it from the space explorer. A KNIME workflow is treated as a file. Before you export, work through this list:

  • Reset the nodes so saved data is not included.
  • Remove passwords, tokens, and personal file paths.
  • Switch absolute paths to relative ones.
  • Add annotations explaining inputs, outputs, and how to run it.
  • Note required extensions and the KNIME version.
Python Stand-in: a pre-share scan of node settings

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

This is a toy check over a hand-written list. KNIME workflows do not look like this internally, so review the real nodes yourself.

KNIME Hub

KNIME Hub is an online platform for finding and sharing workflows, components, and extensions. It comes in a community form and a business form for organizations. Content is organized in spaces, which can be public or private, depending on your settings and plan.

Assume that anything you upload to a space is visible to everyone who can access that space. Check whether a space is public before you upload.

You can also learn from public examples. Treat them like any code from the internet: read the nodes, especially scripts and writers, before executing them.

Versions

On the Hub, a workflow can have saved versions. A deployment is based on a version, so users run a known state instead of your latest half-finished edit. Write a short note for each version that says what changed.

Deployment options

As of December 2026, the Hub documentation describes these main deployment types. What is available depends on your plan.

Type What it does
Data app Lets others use a workflow's interface in a browser
Schedule Runs the workflow at chosen times
Service Lets other applications call the workflow through a REST API

KNIME's business offering also describes event-based triggers. Execution on the Hub can be billed, so read the current pricing pages before relying on it. For data apps, see interactive dashboards.

flowchart LR
  A["Build locally"] --> B["Upload to a space"]
  B --> C["Create a version"]
  C --> D["Deploy: app, schedule, or service"]
  D --> E["Monitor runs"]

Deployment starts from a saved version and does not end at the first run.

Running without the interface

Older guides describe running workflows from a command line in batch mode. KNIME's release notes mark batch execution as deprecated (noted in April 2026) and point to a paid offering as the alternative. If you depend on batch scripts, check the current documentation and plan a migration.

You can also let one workflow call another with KNIME's call workflow nodes, which is helpful for breaking a big process into parts.

Operating a deployment

Once something runs on a schedule, you are running a small system. Decide:

  1. Who owns it and who is the backup.
  2. How failures are noticed, such as a notification or a status check.
  3. What happens if a run overlaps the next one, which schedule options may control.
  4. How to rerun safely without duplicating outputs.
  5. How to roll back to the previous version.
Python Stand-in: avoid processing the same file twice

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

In a real system, the record of processed items must be stored persistently, such as in a database table, not in memory.

Credentials in deployed workflows

Never save a plain password inside a workflow. Use credential configuration or widget nodes so values are supplied when run, or on KNIME's business offering, features for retrieving secrets. Give service accounts only the access they need, and rotate credentials when people leave.

A service exposed through an API accepts input from other programs. Validate that input in the workflow, limit who can call it, and think about what the response reveals. Get approval before publishing anything that uses customer or personal data.

Handover notes

A shared workflow should include a short handover note, either as an annotation at the top or in the workflow description. Cover these points:

Item Example content
Purpose Weekly revenue report for regional leads
Inputs Orders export and customer list, with their location
Outputs Report workbook and problem list
Requirements KNIME version, extensions, Python packages
How to run Set the report month, then execute all
Owner A team address, not only one person

Test in a clean place

Before you share, try the workflow somewhere that is not your usual environment: another folder, another user account, or a colleague's computer. Anything that depended on your setup shows up immediately, such as a missing extension, a file on your Desktop, or a driver you installed months ago. Fix these and note them in the handover.

Review before publishing

Have a second person look at any workflow that others will rely on. Ask them to explain what each stage does, using only the labels. Where they struggle, improve the labels. Where they disagree with a rule, you may have found a mistake. Review is also the right moment to confirm that no node displays or exports more personal data than the audience should see.

Retiring a deployment

Deployments need an ending as well as a beginning. When a report is no longer used, disable its schedule, remove access, and tell the people who received it. Forgotten jobs can keep using resources, keep writing files that someone later mistakes for current data, and keep credentials alive longer than necessary. Review your list of deployments regularly and ask for each one: who still needs this, and who would notice if it stopped?

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. What should you do before exporting a workflow to send to someone?

    Saved data and secrets should not travel with the file.
  2. 2. Which deployment type runs a workflow at chosen times?

    Schedules run workflows automatically at set times.
  3. 3. Why deploy a saved version?

    Versions make deployments stable and traceable.

Summary

  • Clean workflows before exporting or uploading.
  • Hub spaces hold shared work; check who can see them.
  • Versions support data apps, schedules, and services.
  • Batch execution is deprecated, so verify current options.
  • Plan ownership, failure alerts, safe reruns, and credential handling.

Next: Workflow Best Practices and Testing

Votre progression est enregistrée dans ce navigateur. Aucun compte nécessaire.