Async Action Group behaviour

Hi,

We run some action groups simultaneously by using async action group. Each action is using some projects variables and change them. As result - they change the same variables one to another. Actually, all paralell action groups include the same action list with different parameters.

What is the best practise to work with async action group in this case? What can solve this issue? Exists any logic lock on FB actions? We can use the file lock inside the including action list, but may be there are more effective alternatives?

 

Thanks,

Rita

 

 

Hi Rita,

You'll need to extract the actions and variables that are to be run in parallel to a separate action list and change the variables to be action list parameters. Action list parameters are scoped so that if you run the same action list twice in parallel the parameters are not shared.

I've attached an example project which demonstrates this.

Regards,
Paul.
 

ParallelActionList.fbz6 (2.07 KB)