# Complete node and sub flows

**URL:** <https://discourse.nodered.org/t/complete-node-and-sub-flows/48987>\
**Category:** General\
**Created:** [27 July 2021 22:56 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987 "2021-07-27T22:56:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [27 July 2021 22:56 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/1 "2021-07-27T22:56:32Z")

</div>

Hello - I wanted to see if I could use the "complete" node to monitor when certain events in the flow are done (basically, monitor when any branch of a flow ends). When I look at the nodes that can be selected in the "complete" node, I also see the subflows (which is great!)

 ![Screen Shot 2021-07-27 at 5.40.16 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/141eda45e80ce98c120e3a6acb7d966b50e035b1.png)

The question is when does the complete node get the notification for sub-flow completion? The last "node" in both sub-flows shown above is another sub-flow (which has just the Pushover node). Also, if a node shows up in the selection list for the "complete" node, does it mean that it automatically supports notification?

I did do a Google search and also search here, but as you can imagine, the search results were somewhat meaningless. There was one example of using a complete node but it was very basic.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 July 2021 15:26 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/2 "2021-07-29T15:26:50Z")

</div>

Does the Complete node ever signal if it is connected only to a Subflow?

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [29 July 2021 15:52 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/3 "2021-07-29T15:52:26Z")

</div>

> [@Colin](#):
>
> Does the Complete node ever signal if it is connected only to a Subflow?

I will create a small test flow and see what happens..

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [29 July 2021 16:18 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/4 "2021-07-29T16:18:09Z")

</div>

> [@Colin](#):
>
> Does the Complete node ever signal if it is connected only to a Subflow?

Just created a small test flow and the complete node never gets a notification when the subflow completes. Oh well - back to the drawing board...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 July 2021 16:40 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/5 "2021-07-29T16:40:20Z")

</div>

I suspected not. One solution may be to add another output to the subflow and send a message to it when the action you want to perform is complete. If appropriate attach a Complete node inside the subflow to the relevant node and send that to the additional output.

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [29 July 2021 17:31 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/6 "2021-07-29T17:31:00Z")

</div>

This question was in relation to the other topic that we were discussing. Originally, I had thought of using the complete node to reset the GV but it was simpler with the link nodes. Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 September 2021 17:31 UTC](https://discourse.nodered.org/t/complete-node-and-sub-flows/48987/7 "2021-09-27T17:31:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
