Skip to content

StepEditedEvent

EventType: STEP_EDITEDDomain: production Broker subject: progress.notification.production

Updates the form data on an existing StepExecutionData record after the step has already been completed. Used when a supervisor or quality officer needs to correct captured values without invalidating the batch.

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: STEP_EDITED.

Preconditions

  • StepExecutionData record exists with key info.execution_record_key

State Changes (Transaction)

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • StepExecutionData updated: form_data replaced with info.form_data

Side Effects (post_processing)

Inherits post_processing() from BaseProductionEvent:

  • Updates job.last_online
  • Recalculates work order status
  • Publishes to progress.notification.production

InfoModel Fields

FieldTypeDescription
execution_record_keystrKey of the StepExecutionData record to update
form_datalist[FormFieldValue]Replacement form field values
job_keystr | NoneJob key (for post_processing context)
batch_keystr | NoneBatch key
work_session_keystr | NoneWork session key

None.

Source

StepEditedEvent on GitHub

Released under the Apache 2.0 License.