Await MANY Asynchronous Activity
Non planifiéeThe Await Asynchronous Activity activity takes a single element ID to wait for. Can this activity be enhanced to allow multiple ID's to be awaited?
Example: I have 2 queries that I want to run async, and then wait for both to finish. Now I need two Awaits where one would be sufficient
-
This isn't a high priority as it's easy enough to add one Await for each query.
0 -
Okay, thanks.
Is it also possible to use Await for async activities inside a For Each, i.e. similar to the Parallel For Each from workflow 4?
If the Await is inside the For Each, the activities will still not run parallel. If the Await comes after the For Each, only one activity will be awaited, or not?
0 -
Unfortunately, it gets more complicated when container activities get involved. I had initially hoped to be able to make container activities async as well. I think if the async activity and the await activity are both in the same scope (such as both inside a for each) they should behave correctly. i.e. I think it would await the async activity before continuing to the next iteration on the For Each.
If the await comes after the For Each, I think it would await the current run of the async activity, which I would assume is the last.since the For Each has returned.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires