Broadcast decision - how does it work?

116 views
Skip to first unread message

almaceleste

unread,
Mar 10, 2022, 10:49:37 PM3/10/22
to Automate
I tried to use Broadcast decision but I did not understand how it works. This block sends a broadcast and continues without waiting for a request, even though I expected different behavior.
Could someone explain to me how the Broadcast decision should work?
What should I do to use it?

Henrik "The Developer" Lindqvist

unread,
Mar 11, 2022, 8:53:23 AM3/11/22
to Automate

almaceleste

unread,
Mar 11, 2022, 10:41:12 AM3/11/22
to Automate
How can I use a broadcast decision block in my flow to communicate with another flow? 
I need to send a broadcast and wait for a response. I tried to use this block, but it only sends a broadcast, doesn't wait for the result, and goes through the "Yes" exit as if it had received the result.
_Broadcast decision test.png
My goal is to create a library that can be used in other flows. The problem is that when one flow sends a broadcast to my library, my library spends some time forking and returning to the receiver block, and if a second flow sends a request in this time period, it does not receive a response and hangs in this state. 
I wanted to replace the send/receive blocks in the user flow with a single Broadcast decision block that would wait for a response and (possibly) resend the broadcast if it didn't get a response, but I failed at that point.
_library.png_library user.png
Please, help me with my problem.
_Broadcast decision test.flo

Henrik "The Developer" Lindqvist

unread,
Mar 11, 2022, 11:12:46 AM3/11/22
to Automate
Not possible since the Broadcast receive block currently doesn't support updating the "result".
Either reply with another Broadcast send, or use the Variables give/take blocks to send messages.

almaceleste

unread,
Mar 11, 2022, 3:12:09 PM3/11/22
to Automate
Ok, I use the Broadcast send block for reply, but the problem is that the Broadcast decision block does not wait for reply but only sends a broadcast and goes through the Yes exit without waiting of the reply even if no one receiver exists.
How can I configure the Broadcast decision block to actually wait for a reply?

Henrik "The Developer" Lindqvist

unread,
Mar 12, 2022, 9:33:39 AM3/12/22
to Automate
Both ends should use Broadcast receive and Broadcast send, not Broadcast decision.

almaceleste

unread,
Mar 12, 2022, 10:06:55 AM3/12/22
to Automate
clear, thanx
Reply all
Reply to author
Forward
0 new messages