Article

coolguys's picture
article
Reads:

5124

Score:
0
0
 
Comments:

0

Using a Time Delay in IDM Policy Rules

Author Info

20 February 2008 - 9:40am
Submitted by: coolguys

(View Disclaimer)

Problem

A Forum reader recently asked:

"I was wondering, how could I add a delay(sec) function in a rule action in Policy Builder for an IDM driver?"

And here is the response from Father Ramon ...

Solution

you can make an extension function call to the java.lang.Thread.sleep(1000), like this:

<do-set-local-variable name="sleep-result">
  <arg-string>
   <token-xpath expression="java.lang.Thread:sleep(1000)"/>
  </arg-string>
</do-set-local-variable>

In versions of IDM before 3.5, you would need to map a namespace instead of putting in the class name directly.


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.




User Comments

© 2013 Novell