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

PHOTO EMBED

Tue Dec 22 2020 12:56:40 GMT+0000 (UTC)

Saved by @to_pe_ #java

/*
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;
}
content_copyCOPY

https://blogs.sap.com/2020/12/16/do-you-want-to-make-your-iflow-sleep-or-pause-or-delay-for-sometime/