Hub
Pricing About
WorkflowWorkflow

KNIME Hub - Local - Different Behaviour

KNIME HubLocalExtract Context Properties
josegallardo profile image
Draft Latest edits on 
Oct 25, 2023 12:40 PM
Drag & drop
Like
Download workflow
Workflow preview
This workflow basically behaves differently if you run it locally and on the KNIME Hub. The Extract Context Properties Node will extract different information depending on whether we run the workflow locally or on the KNIME Hub. After uploading the workflow to KNIME Hub, we can see that the variable "context.workflow.user" is something like account:user:9b45fc22-eee7-4b09-a075-5e2ea8db58cd. However, if we run it locally it will get its local username. With this information and the Rules Engine we create a switch case, where in case of running locally it will take the upper thread and in case of running with this user (account:user:9b45fc22-eee7-4b09-a075-5e2ea8db58cd) on the Hub it will take the lower thread. After that, we can build the workflow depending on our use case as we wish. In my case, we basically use some credentials (if we run locally) and call another workflow to get other credentials if we run on KNIME Hub.
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.1.1
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.1

    knime
  • Go to item
    KNIME Hub ConnectivityTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.17.0

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime
  • Go to item
    KNIME Personal Productivity ToolsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.1.1

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits