Skip to main content

Module task_context

Module task_context 

Source
Expand description

§Task context

Wraps the per-call state passed to every AsyncFunctionHandler::execute call: the message under processing, a handle to the shared datalogic engine, and an audit-trail accumulator. Exposes typed helpers so handlers don’t have to reach into crate::engine::utils::{get,set}_nested_value or hand-build Change entries.

Custom handlers should treat TaskContext as their only mutation surface for message.context: the set family records a Change automatically when message.capture_changes is true, keeping the audit trail in sync with the data without per-handler boilerplate.

Structs§

TaskContext
Per-call execution context handed to AsyncFunctionHandler::execute.