The solution you are describing is similar to my first post. The condition point there is also "Any true condition". Each condition reads like "If Action contains Action1", "If Action contains Action2", ...
Original Message:
Sent: Thu January 25, 2024 01:45 PM
From: Bo Bleckel
Subject: Behaviour of Wait Point
Apologies for the multiple replies. You should actually use "Any true condition" for your case so that all the applicable paths are followed, based on their conditions. Read more on this here: https://www.ibm.com/docs/en/sqsp/51?topic=points-condition
------------------------------
Bo Bleckel
Original Message:
Sent: Thu January 25, 2024 01:43 PM
From: Bo Bleckel
Subject: Behaviour of Wait Point
Also - you can define multiple conditions for one condition point. So that would allow you to simplify it to one condition point with four conditions, each pointing to a different script, and the "Else" going to the wait point. Then each script would also send to the wait point.

I've achieved this by clicking "Create condition" as many times as needed, and using the setting: "First true condition". Then when attaching the script node from the condition node, I select the condition that is appropriate for my script
------------------------------
Bo Bleckel
Original Message:
Sent: Thu January 25, 2024 01:35 PM
From: Bo Bleckel
Subject: Behaviour of Wait Point
Hi Pierre -
This is the right idea. I think you could simply send those "Else" (Si-non in the French translation) directly to the wait point, rather than going through the noop script.
I do agree that having those four condition points is clunky -- but I think that it is necessary to achieve the goal that you have.
------------------------------
Bo Bleckel
Original Message:
Sent: Thu January 25, 2024 11:34 AM
From: Pierre Dufresne
Subject: Behaviour of Wait Point
Hi Bo,
Thanks for your feedback.
The first task presented to the analyst is Select Action. Before completing the task, he must edit the field multiselect field called "Action" to specify which actions need to be performed. For example, if he selects Action1 and Action3, the corresponding scripts (Action1 and Action3) will be executed but the other two (Action2 and Action4) will not. This will make the Wait point wait forever.
The only solution I could come up with is the one below. The Noop script does nothing: it is just there to make the paths converge before entering the Wait point.
But the playbook looks less simple. If you have any other idea, I would be glad to hear them. Thanks

------------------------------
Pierre Dufresne
Original Message:
Sent: Thu January 25, 2024 08:58 AM
From: Bo Bleckel
Subject: Behaviour of Wait Point
Hi Pierre -
Can you elaborate on when "not all the scripts may need to be performed" and what would determine that? It sounds to me like you need a more involved condition point with more branches.
In general, the wait point is designed to do exactly what you're observing -- gather all incoming branches of the playbook and wait until those branches have complete.
You could consider making multiple endpoints in the playbook, one for each path through the conditions and scripts. Or else, like I suggested above, expand your conditional node to be more specific.
If you share with me more details of the condition and when you want what to happen, I'd be happy to give feedback on that.
------------------------------
Bo Bleckel
Original Message:
Sent: Wed January 24, 2024 03:02 PM
From: Pierre Dufresne
Subject: Behaviour of Wait Point
Hi everybody,
I am writing a playbook like the one below. I created a multiselect field called "Action" which can take one or more values: Action1, Action2, Action3, Action4.
The condition is configured with "Any true condition".
For each value selected, there is an associated script that needs to be executed. When all the selected srcipt(s) have been executed, there is a Wait point to make sure each script has finished. The problem is: because not all the scripts may need to be performed, the wait point will wait forever for those not run and the playbook will never terminate.
Does anyone can suggest a way around this situation?

------------------------------
Pierre Dufresne
------------------------------