Skip to content

TaskCreatedEvent

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

Creates a new task document with a generated code (via Counter) and optional assignments, dates, and custom extra data.

Trigger

Triggered by: POST /event (universal event dispatcher)

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

Preconditions

  • Task type exists with key info.task_type_key

State Changes (Transaction)

Collections: Task, Counter

  • Task inserted with all provided fields; code generated from Counter if not provided
  • Counter incremented if used

Side Effects (post_processing)

Publishes to progress.notification.task after commit.

InfoModel Fields

FieldTypeDescription
task_keystr | NonePre-assigned key for the task document
task_type_keystrArangoDB key of the task type
codestr | NoneHuman-readable task code (auto-generated if absent)
titlestr | NoneTask title
descriptionstr | NoneDetailed task description
assigned_tolist[TaskAssignment] | NoneAssignment list
start_fromdate | NoneEarliest start date
due_bydate | NoneDue date
createddatetime | NoneCreation timestamp (defaults to now)
created_bystr | NoneUser key of the creator
extraAny | NoneArbitrary extra data

None.

Source

TaskCreatedEvent on GitHub

Released under the Apache 2.0 License.