Blog Pro de Jean-Baptiste HEREN

Notes d'un consultant Freelance en Informatique

To content | To menu | To search

Fonction sleep() pour Peoplecode

En Peoplecode pur, il n'existe pas de fonction sleep() ou de wait(). Voici donc un fonction qui utilise une méthode Java pour arriver à ses fins.

Function Sleep(&ms)
   Local JavaObject &javaThread;
   try
      &javaThread = GetJavaClass("java.lang.Thread");
      // Java Sleep takes milliseconds.

      &javaThread.sleep(&ms);
      &javaThread = Null;
   catch Exception &Ex
      &javaThread = Null;
   end-try;
End-Function;

Post updated on Tuesday 29 January 2008, 22:58

Jean-Baptiste Heren

Author: Jean-Baptiste Heren

Stay in touch with the latest news and subscribe to the RSS Feed about this category

Be the first to comment on this article

Add a comment This post's comments feed

no attachment



You Might Also Like

Finding one component location in the peoplesoft portal

Just replace the 'MY_COMPONENT_GBL' parameter in the following sql script. This works for MS SQl Server. You can add more levels by adding Outer Joins. /* Where is my component in the portal */...

Continue reading

02_-_new_component_interface.png

Peoplesoft Component interface HOWTO

Here is a tutorial explaining how you can create a function containing one Component INterface, and make use of it from any peolplecode. Following example takes the PO Receipt Component to make...

Continue reading