Skip to Content
Technical Articles
Author's profile photo Sookriti Mishra

Do you want to make your Iflow sleep or pause or delay for sometime?

Do you want to make your IFlow sleep or stop or pause for some time?

If your answer is YES, here is a blog post for you.


Hi, I am Sookriti. And in this blog post, you will find a sample Groovy Script which you can ditto copy & paste in your Iflow and pause/ make your Iflow sleep for some time.


The Groovy Script is:

Delay Message for 40 seconds
import java.util.HashMap;
def Message processData(Message message) {
       def body = message.getBody();
       return message;


Hope it helps.


Thanks & Regards,

Sookriti Mishra

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Pavan G
      Pavan G

      Hi Sookriti,

      Good Information!


      Will this work for branches? For instance, consider an inflow having 3 branches and want to stop/pause message processing for only one branch?


      Pavan G