Written by

Sr Application Development Analyst at The Ohio State University Wexner Medical Center
Question Scott Roth · Sep 19, 2019

Using Sleep/Halt in a Business Rule between sends

We have a case where we have 1 message coming in, but then sending two messages out to the same location. Even with FIFO sometimes the messages get out of sequence depending on what is need to be done to the message in the DTL before send. Is it possible to call sleep or Halt or write some kind of a function to put a pause in a routing rule between two sends?

Comments

Alex Ostrynskyy · Sep 20, 2019

To clarify, you have one inbound message from a service going to one process/routing rule with two sends in it. You've noticed that sometimes messages get sent not in the same order as they appear in the routing rule. 

If above is correct, try checking Force Sync Send in the process settings.

Generally, you'll likely have to write a BPL and use the delay action if you want to sleep/halt between sends. 

0
Viroj (Pat) Padyandorn  Sep 20, 2019 to Alex Ostrynskyy

Thank you for your reply. If I want to use a delay action in the BPL, do you have an example that you can share? Thank you.

0