cadrumo.adapters.persistence.profile.workflow_gate module¶
Persistence adapters for the Modelo workflow-gate capabilities.
- class WorkflowGateDraftRepositoryAdapter(*, repository)[source]¶
Bases:
WorkflowGateDraftRepositoryProtocolTranslate the encrypted filing-draft repository to the app contract.
- Parameters:
repository (ModeloDraftRepository)
- save(payload, /)[source]¶
Persist an approved draft and translate storage failures.
Core types:
ModeloDraft.- Return type:
- Parameters:
payload (ModeloDraft)
- class WorkflowGateSubmissionRepositoryAdapter(*, repository)[source]¶
Bases:
WorkflowGateSubmissionRepositoryProtocolTranslate the encrypted submission repository to the app contract.
- Parameters:
repository (SubmissionRepository)
- load(record_id, /)[source]¶
Load one historical submission and translate storage failures.
- Return type:
- Parameters:
record_id (str)