Article

coolguys's picture

Using a Time Delay in IDM Policy Rules

Author Info

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

article
Reads:

1663

Score:
0
0
 
Comments:

0

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.


Author Info

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




User Comments

© 2009 Novell, Inc. All Rights Reserved.