Difference between revisions of "Sleep"

From AgileApps Support Wiki
imported>Aeric
(Created page with "{{DISPLAYTITLE:sleep}} :<tt>Functions.sleep(long milliseconds)</tt> ;Description: :*Displays the message in the UI, irrespective of any database insertions or updates (without i…")
Β 
imported>Aeric
Line 2: Line 2:
:<tt>Functions.sleep(long milliseconds)</tt>
:<tt>Functions.sleep(long milliseconds)</tt>
;Description:
;Description:
:*Displays the message in the UI, irrespective of any database insertions or updates (without interrupting the program flow) <noinclude>via the [[Java API]]</noinclude>
:*Pauses the current process for the specified number of milliseconds.
:*Translates the token and displays the [[Custom Label]] in the selected language
Β 
:{| border="1" cellpadding="5" cellspacing="0"
|-
!Element
!Display Type
!Description
|-
|key||string||{{:key}}
|-
|args||string||Optional
Declares an array of Strings in Java (or Arguments)
*If arguments are passed, the call expects a token
*If no arguments are passed, the message alone is displayed
|}


;Syntax:
;Syntax:
Β  void Functions.showMessage(String key [, String[] args]);
Β  void Functions.showMessage(long milliseconds);
Β 
If no arguments are needed, use:
Β 
Functions.showMessage("#custom.label",null)


;Return:
;Throws:
:*Returns the localized message configured on the key in the [[Translation Workbench]]
:*<tt>InterruptedException</tt> if the process was awakened by the JVM (or terminated) before the specified wake-up time.
:*If no key is configured in the translation workbench, then the passed key is returned
<noinclude>


<noinclude>[[Category:Utility]]</noinclude>
[[Category:Utility]]
</noinclude>

Revision as of 22:17, 24 June 2011

Functions.sleep(long milliseconds)
Description
  • Pauses the current process for the specified number of milliseconds.
Syntax
void Functions.showMessage(long milliseconds);
Throws
  • InterruptedException if the process was awakened by the JVM (or terminated) before the specified wake-up time.