Web UI
When fetching a document through the Rest API, you can use the runningWorkflows enricher and check that document.contextParameters.runningWorkflows
is not empty to conditionally display a Tab or an Action.
JSF UI
You can use the following custom condition on the user action or the tab filtering conditions, on the field "Custom EL expression":
#{routingActions.hasRelatedRoute()}