Back Forward More about Hierarchy rules
 

About Hierarchy rules

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: BUG-6170 dot not colon

=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.

Up About Hierarchy rules