It would be useful to allow branching logic in workflows based on a context property that allows us to differentiate between the following cases:
- Workflow is run normally/directly
- Workflow is run via any kind of Call Workflow Service mechanism or similar
Additionally, there could also be a context property that links back to the caller workflow, eg. a path type object. Also, there could be an additional property that identifies the exact method of invocation - Workflow Executor Node, Specific type of Call Workflow Service node, etc.
The cleanest workaround I have come across to achieving this is passing a value via the Container Input nodes from the caller. This requires additional logic in caller and callee workflows.
I would prefer if KNIME had a cleaner way to get this information.