Technical Articles
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 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,
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?
Regards,
Pavan G