Skip to content

TaskCompletedEvent ​

EventType: TASK_COMPLETEDDomain: collaboration Broker subject: progress.notification.task

Marks a task as completed by setting status → COMPLETED and recording the closed timestamp and closed_by user key.

Trigger ​

Triggered by: POST /event (universal event dispatcher)

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

Preconditions ​

  • Task exists with key info.task_key
  • Task status is OPEN or IN_PROGRESS

State Changes (Transaction) ​

Collections: Task

  • Task updated: status → COMPLETED, closed timestamp, closed_by

Side Effects (post_processing) ​

Publishes to progress.notification.task after commit.

InfoModel Fields ​

FieldTypeDescription
task_keystrArangoDB key of the task
closeddatetime | NoneTimestamp of completion (defaults to now)
closed_bystr | NoneUser key of the person closing the task

None.

Source ​

TaskCompletedEvent on GitHub

Released under the Apache 2.0 License.