Hello,
We have a workflow that checks a database value. The default value is "0". It needs to loop using a repeat until the value is "1". The table is update by a 3rd party piece of warehouse automation software when it is completed processing of the item. Once it sets the value to "1", Workflow would then continue on when it checks the next time.
We would like it to check the database every 10 seconds for an update. I initially used the date token calculator and tried adding 10 seconds to %(datetime). The resulting token was then set as the "delay until" value in the delay activity. This seems to delay for 60 seconds regardless of the value I input. I suspect the delay activity isn't able to do less than 60 seconds even in the "delay until" function.
I then used a vbscript with a threading.sleep(10000), however I read Miruna's comments on why it is not recommended to do that, and it makes sense.
So, what is the recommended method if I need to perform an action repeatedly in a workflow and loop until a specific value is found before proceeding if I don't want to wait 60 seconds between poll intervals?
Thanks,
Jason