Docs SmartApps

Hierarchies and levels

Functions, levels, people and the rules that move a collaboration between levels.

Definition

A hierarchy has functions; a function has levels; a level has parents and children. A person assigned to a level receives parent-level and child-level users at creation.

functionname; ordered list of levels
levelname; index; parents (count); children (count); screen; scope filter
personuser; level; scope; alternate; delegations[]
ruleactivity; after; function.level; next; type; expression; table; filter; screen; active_for

Rules

FieldMeaning
activityidentifier of the collaboration activity
afterthe prior action that triggers this activity, or start
function.levelwhere the activity happens
nextthe level that follows when the expression holds; done to end
typeapproval · escalation · assignment · tracking
expressionthe criterion, in the expression language
table · filterwhere run-time rows live and how they are selected
screenthe screen at this level
active_forperiod; then the escalation rule

Example

hierarchy contract_renewal:
  Procurement: [buyer, category_lead, cpo]
  Finance:     [controller]
  Legal:       [counsel]

rule RENEW-2:
  after: RENEW-1
  at: Procurement.category_lead
  next: if contract.value > 1000000 then Procurement.cpo else done
  type: approval
  expression: proposal.present and note.present
  screen: S02
  active_for: 3 working_days → escalate(parent)