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;
      &javaThread = GetJavaClass("java.lang.Thread");
      // Java Sleep takes milliseconds.

      &javaThread = Null;
   catch Exception &Ex
      &javaThread = Null;

Jean-Baptiste Heren

Author: Jean-Baptiste Heren

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

Comments are closed

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. [SQL] /* Where is my component in the portal */...

Continue reading


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