Please note that you can subscribe to the individual forums. A subscription for news only covers the news.
Is there a way to extract the current minduration from the job parameter list
I would like to extract the MinTime=1899-12-30 00:01:00
for a task that can have the duration accumulate until the task is performed. In this case that would be 1 minute.
I would like to use this value to set a flag duration after the sub does the necessary preparation for the task and answers yes to a question about being ready to perform the task.
Is there a way to obtain the min duration from the task definition?
Thanks for any help.
After replying from memory, I looked in the manual. There is the variable !zzMinTime. Maybe you can use that. You will need to use it at a time where it is available, and that may be a challenge in your situation.
!zzMinTime returns a time value, which can be used directly in the Duration keyword in the flag. The catch is, that !zzMinTime is only useful when used in connection with an assignment. That could be in a BeforeProcedure for the punishment. The one second is probably because you used !zzMinTime out of scope.
I don't know what you will use the flag for. But you may be able to accomplish the same by using a MinTimeProcedure. Or have the MinTimeProcedure remove the flag.