ProcessRunBuilder
Builder for process-run assignments, parameters, and child steps.
Usage
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
archive()assign_resource()
Assign resource to named process slot.
Usage
assign_resource(resource_slot_name, resource)finalize()
Transition process run to ACTIVE/finalized state.
Usage
finalize()get_model()
Return a pydantic model representing the process run, optionally reloading
Usage
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
get_params(step_name=None, step_schema=None)save()
Validate and persist current process-run changes.
Usage
save()set_model()
Replace working run model after verifying UUID identity.
Usage
set_model(model)set_params()
Validate and apply typed parameter values in current transaction.
Usage
set_params(filled_params)