How to wait for a certain time in BR script

wakespirit
Kilo Guru

Dear, 

In a business script I need to check the Status of conference call in table conference_call.
This status will be updated automaticaly by Notify.
As I am not receiving an event when status gets updated, I need to make a kind of pulling on the table and its status like as below :

  var status= new glidercord("conference_call");
  status.AddQuery("status","cancel"); 
  status.query();

I need to execute this code above every 5 seconds, then if I reach 30second = 6 ready and did not get correct status then stop.

Any idea how to do that ?

regards

 

 

6 REPLIES 6

Hi,

Did you get this solved?

 

VaranAwesomenow
Mega Sage

This can be achieved using a flow, add a flow logic tat will do until in until you will set the state of conference_call = ready (what ever is the state tat notify would set) then the flow will terminate, you can add an if block that will stop the flow if it executes for 6 times and you can add a wait within the flow as well for 5 secs.