Help stopping workflow from subflow in Flow Designer

Ben124
Tera Expert

Hello All!  I just chunked a large (~200 steps) Flow Designer workflow down into smaller pieces using subflows.  However, I'm having a problem with the subflows.  Before it was chunked down (when it was one big workflow) there was a point where it said "If X is done, then End Workflow" (see screenshot 1) which would end the entire workflow.  Unfortunately, in the subflow I don't see the option to "End Flow"; rather, I only see the option to "End Subflow" (see screenshot 2).  This option ends the subflow but not the primary flow (see screenshot 3 where the other subflow didn't end).  I need the "End Subflow" option to terminate the entire flow.  Does anyone have any suggestions on this please?

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to use end flow logic in your flow to end the complete flow based on conditions.

 

End flow logic

 

Regards,

Sachin

Thank you for the reply, Sachin!  Are you referring to the "End flow" option I have in my 1st screenshot?  If so, my question around that is how do I condition something out to know when the subflow ended by the "End subflow" forced end and not just through natural completion of the subflow?

The reason that is a concern is that the "End flow" option should only be called when a subflow is terminated via the "End subflow" action.  Otherwise, all of the flow should continue onward.  I can't figure out how to condition it to that level.  Any ideas?

Kristin Acree
Mega Sage

So we had this issue too. Editing you could see both End Flow and End Subflow. Don't worry about it. If you save/publish it it should make them all End Subflow. Close out of the tab on flow designer, and reopen it back up and all now say End Flow. So, i wouldnt worry about this.