You are here: Record management > Branch development > Creating branches and branch rulesets > Developing branches with libraries and functions

Developing branches with libraries and functions

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.