ProcessRunBuilder

Builder for process-run assignments, parameters, and child steps.

Usage

Source

ProcessRunBuilder(
    name,
    description,
    template_name,
    version=None,
    *,
    backend,
    namespace_context,
    process_run_id=None,
    on_existing="warn",
    command_context,
    template_id=None
)

Clean context-manager exit commits and exception exit rolls back local work; command-backed remote builders submit validated drafts. UUID loading, on_existing, lifecycle methods, and validation errors are preserved.

Methods

Name Description
archive() Transition process run to ARCHIVED.
assign_resource() Assign resource to named process slot.
finalize() Transition process run to ACTIVE/finalized state.
get_model() Return a pydantic model representing the process run, optionally reloading
get_params() Return typed parameter model for selected process step.
save() Validate and persist current process-run changes.
set_model() Replace working run model after verifying UUID identity.
set_params() Validate and apply typed parameter values in current transaction.

archive()

Transition process run to ARCHIVED.

Usage

Source

archive()

assign_resource()

Assign resource to named process slot.

Usage

Source

assign_resource(resource_slot_name, resource)

finalize()

Transition process run to ACTIVE/finalized state.

Usage

Source

finalize()

get_model()

Return a pydantic model representing the process run, optionally reloading

Usage

Source

get_model(*, update=False)

from the backend first. Critical fields are locked against mutation.


get_params()

Return typed parameter model for selected process step.

Usage

Source

get_params(step_name=None, step_schema=None)

save()

Validate and persist current process-run changes.

Usage

Source

save()

set_model()

Replace working run model after verifying UUID identity.

Usage

Source

set_model(model)

set_params()

Validate and apply typed parameter values in current transaction.

Usage

Source

set_params(filled_params)