Article
Problem
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 ...
Solution
Try this:
<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>
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 2899 reads


0