Is it possible to pause an ETM datamapper or otherwise to introduce a delay before the next processing step takes place, either directly inside a mapper, within an iteration loop, or a filter expression?
I've been able to achieve this using a simple busy loop like the example below:
var start = new Date().getTime();
while ((new Date().getTime() - start) < 30000) {
// wait 30 seconds
}However, while testing this I've noticed that CPU usage can become quite high for what is effectively just a delay (which I suppose is expected with a busy wait).
My concern is that on a busy ETM installation, tying up CPU resources in this way could potentially have consequences elsewhere in the system.
While this seems to be functional for this limited job I'm wondering whether there is any ETM functionality that I'm not aware of which would allow a less resource-intensive way of introducing a delay.
The reason i need this is to allow a physical process initiated by an HTTP datamapper to complete before a second datamapper runs to trigger an RPA to check the result.
Any advice or recommended approaches would be appreciated. Thanks