Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How does the flow context relationship is working?

SHREEDHARANM
Tera Contributor

Hi Community,

I am looking for a deep-dive technical explanation or official documentation regarding the lifecycle relationship between a Parent Flow and an Asynchronous Subflow.

The Scenario:

A Parent Flow calls a Subflow.

The "Wait for completion" checkbox is unchecked (False).

The Parent Flow moves to the next step and enters a "Waiting" state (e.g., waiting for a record update).

The Subflow also enters a "Waiting" state (e.g., a timer or a wait for condition).

The Observation:

When the Parent Flow Context is cancelled manually or through any script, the Subflow Context is also being cancelled automatically, despite being triggered asynchronously.

I would appreciate any insights from those who have explored the sys_flow_context hierarchy in detail and helping me to understand this in detail 

2 REPLIES 2

Tanushree Maiti
Tera Sage

Hi  @SHREEDHARANM 

 

Follow this KB or SN doc links . Hope it will help you.

 

1. KB2565934:How to show subflow stages in a parent flow 

2. https://www.servicenow.com/docs/r/zurich/build-workflows/workflow-studio/show-subflow-stages-in-a-pa...

 

3. https://servicenowguru.com/graphical-workflow/applying-sync-async-pattern-flow-designer/#:~:text=To%...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Thanks for your response @Tanushree Maiti