Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Developing branches with libraries and functions

Updated on January 14, 2022

Libraries hold custom functions for your application, which can supplant and extend standard functions. For example, the OperatorHasPrivilege function verifies that a user has a specific privilege.

However, you cannot create libraries in branch rulesets. Libraries are based on the ruleset name only, not the ruleset version. Because you must merge branches into a particular ruleset version, you cannot create libraries directly in branch rulesets.

To use libraries and functions in branches, perform the following steps:

  1. Create a library and save it in the base ruleset.
  2. Create the functions that the library contains and save them into a branch ruleset.
  3. Merge the branch so that libraries and functions are contained within the branch.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us