Icon

Workflow Validator Trigger

This workflow validates workflows when changes are detected in defined team spaces.

It performs four main steps:

1. Load metadata about the workflow.

2. Run governance checks on the metadata, passing or failing specific rules.

3. Evaluate check outcomes by selecting which checks must pass for which action to apply. If they all pass, one path is followed; if any fail, another path is taken. This controls which governance actions are executed.

4. Prepare and execute the configured governance actions.

The workflow can be deployed as is, but it is intended to serve as a blueprint for adapting governance logic (checker and action components) to your organizations needs.

URL: Trigger Deployments https://docs.knime.com/latest/business_hub_user_guide/index.html#trigger

Executing Governance Actions

This part of the workflow runs governance actions based on the outcomes of the configured check evaluations.
Each branch activated by the switch logic can trigger one or more actions.

Available actions include:

  • Transfer the workflow to another space

  • Delete the workflow

    • Soft deletion: removes only the last save point

    • Hard deletion: removes the entire item

  • Assign label (e.g., Approved, Not Approved, Approval Required)

  • Notify the workflow builder

Actions can be combined and executed in any order, depending on how branches are connected.
Recommended sequences (e.g., transfer before delete, label before notify, but the logic is now fully customizable.

Collecting Check Results

Input: Workflow Details, Summary, and Metadata as JSONs.

Output: Three columns, in the following order:

  1. Check Passed? (Boolean): true if the check passed, false otherwise.

  2. Message (String): A message explaining why the check passed or failed, and optionally listing affected nodes. Keep in mind that label messages cannot exceed 400 characters.

  3. Check Name (String): Used to map the check outcome to governance actions such as moving, labeling, or notifying in later workflow steps.

Use the existing example checker components as blueprints for creating your own checks.

Workflow Validator

Compatible with

• Business Hub 1.13 and above with Executor Versions 5.2.6 and above

• Analytics Platform Versions 5.2.6 and above with connection to a Business Hub 1.13 and above

Input from Monitored Workflow Version

  • This part of the workflow processes metadata received when a workflow is added or updated in governance-defined team spaces. It assumes the workflow is deployed as a trigger deployment to listen for such changes. Additional details are fetched after processing to support governance checks.

  • When developing no workflow information is available, a workflow URL can be manually provided in the "Generate Workflow Info" component. This allows metadata to be loaded and processed as if an update event had occurred.


⚙️ Configure this Component when you are developing!

Add or build your own checks!🧰✨

Mix and match your desired actions!🧰✨

Evaluate Check Results

This part of the workflow evaluates the outcome of selected checks to control which governance actions are triggered.
Each switch allows you to define a set of checks that must pass for the top path to be followed; if any fail, the bottom path is activated.

This setup enables flexible and highly customizable logic — from combining multiple checks in a single decision point to creating one switch per check for fine-grained control over actions.


Set which failing checks lead to which consequential action


Empty Workflow Description Checker
Tag Checker
"Not approved" label ID
String Configuration
Workflow Size Checker
"Not approved" label
Assign Label to Version
Nodes per Workflow Level Checker
Notify User (Service caller)
Request Node Settings Checker
Concatenate
Only when developing
Generate Workflow Info
Notify User (Service caller)
"Request approval" data appdeployment ID
String Configuration
"Notify user" servicedeployment ID
String Configuration
Password Checker
Scripting Nodes Checker
Notify User (Service caller)
"Approval required" label ID
String Configuration
top: active if all selected checks passedbot: active if at least ONE selected check failsEvaluated Checks:All that are not evaluated yet
Check Evaluation Switch
"Approved" label ID
String Configuration
top: active if all selected checks passedbot: active if at least ONE selected check failsEvaluated Checks:Empty Workflow DescriptionNodes per Workflow Level CheckRequest Node Settings CheckRequired Tag CheckForbidden Tag CheckWorkflow Size Check
Check Evaluation Switch
"Approved" label
Assign Label to Version
Craft Workflow Validator Message
WorkflowSummary,Metadata,Details
Fetch Workflow Details
Check Results and Connection
Craft Workflow Validator Message
Workflow Info, filledvia trigger deployment
Container Input (Repository Event)
Craft Workflow Validator Message
Deprecated Nodes Checker
Legacy Nodes Checker
Merge Variables
Check Results and Connection
Check Results and Connection
"Approval required" label
Assign Label to Version

Nodes

Extensions

Links