Connecting 2 workflows of different doctype

There might have been a topic related to this topic (Inter DocType workflow, ie DocType1:State4 transitions to DocType2:State1).
But there is no discussion in the thread.

So… a bit different from that topic, is it possible (and how) to connect the start of a workflow with other workflow’s end (of different doctype)?
Or putting it differently, is there a way to create condition for a state in workflow A (for doctype1) to be able to continue when the doctype1 is in certain status?

Thank you

I’m assuming one reference to “doctype1” here is meant to say “doctype2”, since you’re talking about connections between different workflows.

One way to achieve this would be with virtual fields in the second doctype, calculated from some sort of evaluation of the first doctype. There are some constraints on virtual fields, but I think they should do what you need them to do here.

Yes you are correct.
And thank you for your input. I’ll try that to see if it solve my need.

Hi @rahy

Over the past few years we have gradually moved away from Camuda to smaller tools / libraries (but still completely capable) such as SpiffWorkflow and n8n.

The Frappe “workflow” feature is a very rudimentary state transitioning capability not a workflow automation capability. There are many topics on this forum discussing the state transitioning nature of the Frappe Workflow feature and it’s limitations.

Search for how to integrate n8n or spiff here on this forum for further insight.