Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sookriti_Mishra
Active Participant
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 com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
def Message processData(Message message) {
//Body
def body = message.getBody();
sleep(40000);
message.setBody(body);
return message;
}

 

Hope it helps.

 

Thanks & Regards,

Sookriti Mishra
1 Comment
Labels in this area