Hi @aymens,
Thanks for the inspiration! Indeed, this is a project we are currently working on. As discussed here, this issue may be disected into two parts:
- Find non-compliant workflows are already existing on your Hub. Your approach works great already, just keep in mind that workflows can have different versions and, strictly speaking, each version needs to be checked. You can find an example workflow that fetches all versions of all workflows here.
- Find out if a newly uploaded or modified workflow is non-compliant and perform action on that. We are working on a workflow that allows you to create a trigger deployment that does these checks directly on upload of a workflow to detect this early. Let me know if you are interested in details!
I gather you have a KNIME Business Hub available—may I ask what your intended direct action is when you find a non-compliant workflow? Deleting these instances, notifying the uploader/creator/hub admin, …?
Kind regards,
Lukas