When you develop a Pega Platform application, you can use Java utility functions that are available in several libraries to help in the validation process. For example, you can use these functions to sort, modify date and time types, or perform math calculations so that the required validation takes place.
When you develop an offline-enabled application, you can use the JavaScript equivalent of these utility functions. The JavaScript function rule logic is equivalent to the logic in the Java version of the utility function rule. Several JavaScript utility functions are available in the following libraries for offline-enabled applications. Not all functions that are included for Java are by default also available for JavaScript.
Note: To find out which functions are supported for the following utility libraries, see the JavaScript text file rule documentation. For more information, see Finding a function list for a utility library.
Library name |
JavaScript text file rule |
|
pzpega_functions_DateTimeLibrary |
|
pzpega_functions_DefaultLibrary |
|
pzpega_functions_ExpressionEvaluatorsLibrary |
|
pzpega_functions_MathLibrary |
|
pzpega_functions_SortLibrary |
|
pzpega_functions_StringLibrary |
|
pzpega_functions_UtilitiesLibrary |