Set that 3 minutes thing into a Data Table as an integer somewhere then get it into a variable with a Data Table Lookup.... something like:
Task.maxQueueTimeThen in an Update Data block have two items:
Task.currentQueuedTime = DateTimeDiff(GetCurrentDateTimeUtc(), Flow.StartDateTimeUtc)
Task.maxQueuedTimeCalc = MakeDuration(0, 0,
Task.maxQueueTime, 0)
Then put your logic IF Decision statement :
Task.currentQueuedTime >=
Task.maxQueuedTimeCalcI'm sure this could be tidied up but it lets your 3 minute setting be a bit more controllable without having to keep editing and publishing the flow to test. Might be able to trim it down to:
DateTimeDiff(GetCurrentDateTimeUtc(), Flow.StartDateTimeUtc) >= MakeDuration(0, 0,
Task.maxQueueTime, 0)
------------------------------
Vaun McCarthy
------------------------------