Using Delays with the Workorder Driver
Novell Cool Solutions: Tip
Digg This -
Posted: 29 Aug 2007
A Forum reader recently asked:
"I'm trying to use the workorder driver to implement a short delay in a workflow initiation. I want to set the dueDate to the current time +600 seconds to allow for this, but I can't seem to come up with a way to make this happen through Policy Builder. I know I can change the poll time of the Workorder driver to run only every 5 minutes, or at a certain time, but this may result in inconsistent results and so is less desireable. I've run into other situations like this where I've wanted to do some simple math functions, so the answer may apply to more than just this scenario. Anyone have any ideas on how to do this?"
And here's the response from Father Ramon ...
<do-set-local-variable name="now"> <arg-string> <token-time format="!CTIME" tz="UTC"/> </arg-string> </do-set-local-variable> <do-set-local-variable name="then"> <arg-string> <token-xpath expression="$now + 600"/> </arg-string> </do-set-local-variable>
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com