Novell is now a part of Micro Focus

Using Delays with the Workorder Driver

Novell Cool Solutions: Tip

Digg This - Slashdot 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 ...


Try this:

<do-set-local-variable name="now">
   <token-time format="!CTIME" tz="UTC"/>
<do-set-local-variable name="then">
   <token-xpath expression="$now + 600"/>

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates