pdstools.decision_analyzer.stage_grouping

Canonical NBAD pipeline hierarchy with user-friendly display names.

Maps internal stage group names (Stage_pyStageGroup) and stage names (Stage_pyName) to the display names shown in the Pega application.

If a value from the data has no entry here, get_display_name falls back to the raw value so future pipeline stages are handled gracefully.

Attributes

Classes

StageGroupDef

dict() -> new empty dictionary

Functions

get_stage_group_display_name(→ str)

Return the display name for a stage group, or internal_name if not found.

get_stage_display_name(→ str)

Return the display name for a stage, or internal_name if not found.

get_display_name(→ str)

Return the display name for a stage group or stage.

get_stage_group_for_stage(→ str | None)

Return the internal stage group name for a given internal stage name.

Module Contents

class StageGroupDef

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

display_name: str
stages: dict[str, str]
NBAD_PIPELINE: dict[str, StageGroupDef]
_STAGE_DISPLAY_NAMES: dict[str, str]
_STAGE_TO_GROUP: dict[str, str]
get_stage_group_display_name(internal_name: str) str

Return the display name for a stage group, or internal_name if not found.

Parameters:

internal_name (str)

Return type:

str

get_stage_display_name(internal_name: str) str

Return the display name for a stage, or internal_name if not found.

Parameters:

internal_name (str)

Return type:

str

get_display_name(internal_name: str) str

Return the display name for a stage group or stage.

Checks stage groups first, then stages. Returns internal_name if no mapping exists — ensuring forward compatibility with new pipeline stages.

Parameters:

internal_name (str)

Return type:

str

get_stage_group_for_stage(stage_name: str) str | None

Return the internal stage group name for a given internal stage name.

Returns None if the stage is not found. Both the input and the return value are internal names (pre-transformation). After data transformation the stage-to-group relationship is read directly from the data.

Parameters:

stage_name (str)

Return type:

str | None