introduce "wait then" behaviour between rules to avoid race conditions | Community
Skip to main content
Andrew_Wathen_
Community Advisor
Community Advisor
March 25, 2022
New

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

  • March 25, 2022
  • 2 replies
  • 1231 views

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 replies

Level 2
June 23, 2022

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!

FrederikWerner
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
September 2, 2022

Why not use a Direct Call Action and Event for this? Those are super reliable for linking Rules together in order

Learn more about Adobe Analytics and Customer Journey Analytics on my blogNeed help with Adobe Analytics or Customer Journey Analytics? Let's talk!