Written by

Technical Architect at OPTIMUS IT INFRA
Question prashanth ponugoti · Feb 7, 2022

How to delay few seconds in BusinessProcess custom code

Hi Community,

Here we have requirement to process messages min 10 sec delay. Current time it is taking my businessProcess is less than 1 sec.

To implement this requirement , I need to sleep 10 sec in business process custom code.

Could somebody help me to implement delay in BusinessProcess.

Thanks,

Prashanth

Product version: Caché 2017.1

Comments

prashanth ponugoti  Feb 7, 2022 to Eduard Lebedyuk

could you give me object script code snippet for wait /sleep for given seconds.

because same code i want to use wherever i need to wait intentionally

Thanks,

Prashanth

0
Robert Cemper  Feb 7, 2022 to prashanth ponugoti

in object script the command is HANG  10   to wait for 10 sec 

0
Eduard Lebedyuk  Feb 7, 2022 to Robert Cemper

The issue is it would actually hang the process for 10 seconds. MakeTimerCall implementation would not - BP could process other messages in the meantime.

0
MITESH TRIVEDI  Feb 12 to Eduard Lebedyuk

@Eduard Lebedyuk 
Could you please show me how to code the MakeTimerCall in the custom code in BP. I am having similar issue. Any help is appreciated.

0
Eduard Lebedyuk  Feb 12 to MITESH TRIVEDI

To wait for 15 seconds:

SettSC=..SetTimer("PT15S")
0
Padmaja Konduru · Feb 8, 2022

Can you try this 

Set tSC = ..SetTimer("PT25S")

0