Skip to main content

reduce_step

Function reduce_step 

Source
pub fn reduce_step(input: &ReduceStepInput) -> KResult<Transition>
Expand description

Build the write-set for one reducer call (see docs/workflows.md).

Validates the event, retires the trigger’s step and banks its usage, applies each command in order, then derives the run status from the open steps. Errors: invalid_event, run_closed, malformed_json (reducer state), unknown_step, and the command codes (invalid_command, duplicate_step_id, multiple_completions, commands_after_completion).