Close popover

Table of Contents

Understanding function rule support in offline mode

Version:

You use function rules in online-only applications to define Java methods that run when a function rule is processed. When you develop an application that users can access with an offline-enabled mobile app, the mobile app uses JavaScript-based equivalents of Java-based utility function rules, provided that such equivalents exist.

The function rule logic of JavaScript is equivalent to the logic of the Java version of the utility function rule. However, not all functions that are available in Java are available by default in JavaScript. Utility functions are available in several libraries. Therefore, to find out which functions are available, you must read the documentation that is part of the JavaScript text file rule for each of the libraries. For more information, see Offline-supported function rule libraries and Accessing a list of supported JavaScript functions for a utility library.

  • Offline-supported function rule libraries

    Offline-enabled mobile apps support a specific set of JavaScript functions that are equivalent to predefined Java utility functions.

  • Accessing a list of supported JavaScript functions for a utility library

    Find out which JavaScript utility functions are supported in offline-enabled apps, by reading the documentation that is part of the JavaScript text file rule for the function rule library.

  • Keystores

    A keystore is a file that contains keys and certificates that you use for encryption, authentication, and serving content over HTTPS. In Pega Platform, you create a keystore data instance that points to a keystore file.

  • Utility function instance management
  • Rule resolution

    Rule resolution is the search algorithm that the system uses to find the best or most appropriate rule instance to apply in a situation.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.