You are here: Reference > Rule types > Hierarchies > More about Hierarchy rules

  More about Hierarchy rules
 

  1. About 
  2. New 
  3. Hierarchy 
  4. Pages & Classes 
  5. History 
  6. More... 

Standard functions

A standard library named Hierarchy in the PegaRULES RuleSet contains more than a dozen standard functions that operate on hierarchy rules. Use these in an activity to load the hierarchy (including all branches) onto the clipboard and search it.

Use the following notation to call these functions:

=Lib(PegaRULES_Hierarchy.isChildof(CCC, PPP, Node, Candidate)

where CCC is the Apples To key part, PPP is the Purpose key part, and Node and Candidate are other parameters.

Function

Description

NodeOpenRoot(Class, Purpose, Branch)

Open the hierarchy rule identified by the Applies To class and Purpose key parts into a clipboard page structure.

PopulateClassHierarchy
(pagename)

Assemble on the clipboard all branches of the hierarchy by building from the indicated page. Performed recursively, as branches may reference other branches.

isChildof(Class, Purpose, Node, Candidate)

True if the element identified in the Candidate parameter is an immediate child of the element identified in the Node parameter.

isParentof(Class, Purpose, Node, Candidate)

True if the element identified in the Candidate parameter is the immediate parent of the element identified in the Node parameter.

About Hierarchy rules