KB Article #176415
wait / sleep for x seconds in a flow / integration
Problem
-- need for any reason to pause / wait / sleep during a certain time (for instance if you want to let an external application 10 seconds to perform a specific task)
Resolution
* it can be achieved by different ways :
1- the DML function runProgram and run a sleep command on linux (runProgram("sleep 10")) or a timeout command on windows (runProgram("timeout \t 10))
2- a Java Custom Function that simply performs a wait as per given parameter (ex. 10 seconds)
3- a JMC/MBC that performs a wait as per given parameter (ex. 10 seconds) - run it on a dedicated HME to afford concurent messages to be processed
1) is the simplest solution (no java / MBC programing, no additionnal activity)
3) is perfect if you have performance constraints (separate activity and dedicated processing engine, it avoids too much congestion)