Dear community,
I am looking for a method to determine the excat location of a Workflow to trigger certain different paths.
Example 1:
I need to know if a workflow is stored locally or opened via the remote workflow editor from any HUB Space.
The reason is a configuration made on the HUB Connector, which is configured as “Current KNIME HUB”, but on a local workflow, this configuration is not working, so I need to explicitly call the HUB. This connector is embedded in a component, as we widley use it in a multitude of workflows. So it would be great, if we can build in a logic that can easily determine, where the workflow was opened/is originally stored. (in the Context properties, i could not find a suitable and safe config)
If it is running as a job, it of course can use the current HUB option (this can be done by th job id missing or not)
Example 2:
We want to trigger some components to write into different schemas, depending on their space location.
Let’s assume we have a Space “DEVSpace” and a Space “ProductionSpace”. The Database has a Schema “DEV_Schema” and a Shema “PROD_Schema”. So whenever the workflow runs from the “DEVSpace” I want to have a variable created with “DEV_Schema” and, if it runs on “ProductionSpace” the variable should be set to “PRODSpace”. ideally this can be done in a node, that can be used in every workflow, to ensure the correct “reading and writing” to the database.
Any ideas?
Thanks and regards,
Kirk