Expand my Community achievements bar.

introduce "wait then" behaviour between rules to avoid race conditions

Avatar

Community Advisor

3/25/22

Description -

At the moment rules are triggered in a sequence determined by the rule order number.  However, each rule executes asynchronously meaning that rules with a higher priority may finish after rules with a lower priority.   This can cause issues where there is a dependency between rules. 

 

Why is this feature important to you -

We are experiencing issues where there are dependencies between rules.  They are hard to spot because the are intermittent and are difficult to resolve due the the asynchronous execution. 

 

How would you like the feature to work -

I would like to be able to force rules set to different order numbers to wait for other rules. This would be similar to the "wait then" behaviour of actions within a rule.

 

2 Comments

Avatar

Level 2

6/23/22

Upvote for this option!

 

I'm having to add an additional final action to those specific rules, using custom code to fire an event via 'dispatchEvent' method and configuring the subsequent rule to listen to this via the 'Custom Event' event type.  Not ideal!