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

Stage group def.

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

Stage group def.

display_name: str
stages: dict[str, str]
NBAD_PIPELINE: dict[str, StageGroupDef]
DISPLAY_NAME_LOOKUP: 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