cadrumo.application.workflow.engine_helpers module

Canonical workflow-engine deadline and certificate metadata contracts.

class DeadlineRole(*values)[source]

Bases: StrEnum

Role of a deadline within workflow step metadata.

INFORMATIONAL
BINDING
class FilingWindowState(*values)[source]

Bases: StrEnum

State of the filing window for a given (modelo, period) at workflow time.

ABSENT
FUTURE
OPEN
CLOSED
registry_filing_year(period)[source]

Return the filing year from a typed Period.

Return type:

int

Parameters:

period (Period)

classify_cert_expiry(*, not_after, today, warn_days, critical_days)[source]

Classify a certificate’s expiry window against operator thresholds.

Return type:

tuple[TypeAliasType, int]

Parameters: