# Command object design pattern flow updated

**URL:** https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186
**Category:** Share Your Projects
**Created:** [14 December 2022 11:56 UTC](https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186 "2022-12-14T11:56:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)
#### Post date: [14 December 2022 11:56 UTC](https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186/1 "2022-12-14T11:56:53Z")

</div>

Hi All,

If anyone is interested, I've just updated the [flow in the flow library](https://flows.nodered.org/flow/814509ce01f20d48b53833cf2811e1c8) to use the link call node which replaced the switches used previously for the link out nodes and therefore simplified the overall picture. The only drawback of the link call node is that in case of non-returning calls (like when the result of a subflow is sent to be displayed by a ui node) it always logs a time out after the configured amount of time.

Best regards,  
r0ller

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 December 2022 21:14 UTC](https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186/2 "2022-12-14T21:14:58Z")

</div>

You _should_ be able to catch errors and feed them into the return with a "known" property set on the msg, then at the output of the link-call, check for this "known" property & log it or discard it accordingly.

---

<div class="post-metadata">

### Author: ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)
#### Post date: [17 December 2022 12:49 UTC](https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186/3 "2022-12-17T12:49:15Z")

</div>

Thanks for the hint! I'll try it.

---

<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: [15 February 2023 12:49 UTC](https://discourse.nodered.org/t/command-object-design-pattern-flow-updated/72186/4 "2023-02-15T12:49:26Z")

</div>

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