julee.domain.models.assembly

Assembly domain package for the Capture, Extract, Assemble, Publish workflow.

This package contains the Assembly domain object that represents assembly processes in the CEAP workflow.

Assembly represents a specific instance of assembling a document using an AssemblySpecification, linking an input document with the specification and producing a single assembled document as output.

Submodules

Classes

Assembly

Assembly process that links a specification with input document and

AssemblyStatus

Status of an assembly process.

Package Contents

class julee.domain.models.assembly.Assembly(/, **data)[source]

Bases: pydantic.BaseModel

Assembly process that links a specification with input document and produces an assembled document.

An Assembly represents a specific instance of the document assembly process. It connects an AssemblySpecification (which defines how to assemble) with an input Document (what to assemble from) and produces a single assembled document as output.

classmethod assembled_document_id_must_not_be_empty_if_provided(v)[source]
classmethod assembly_id_must_not_be_empty(v)[source]
classmethod assembly_specification_id_must_not_be_empty(v)[source]
classmethod input_document_id_must_not_be_empty(v)[source]
classmethod workflow_id_must_not_be_empty(v)[source]
assembled_document_id: str | None = None
assembly_id: str = None
assembly_specification_id: str = None
created_at: datetime.datetime | None = None
input_document_id: str = None
status: AssemblyStatus
updated_at: datetime.datetime | None = None
workflow_id: str = None
class julee.domain.models.assembly.AssemblyStatus[source]

Bases: str, enum.Enum

Status of an assembly process.

CANCELLED = 'cancelled'
COMPLETED = 'completed'
FAILED = 'failed'
IN_PROGRESS = 'in_progress'
PENDING = 'pending'