Skip to content

General

Port: REST :3070 · gRPC :5070

Shared cross-cutting entities used across multiple domains: audit activities, typed key-value artifacts, threaded comments, calendar events, and BPMN-style workflow state.

Collections

CollectionPathPurpose
Activities/general/activitiesAudit and activity log entries
Artifacts/general/artifactsTyped key-value or JSON-like stored artifacts
Comments/general/commentsThreaded comments for posts and tickets
Events/general/eventsCalendar-like events, meetings, and deadlines
Workflows/general/workflowsBPMN-style process state and token history

general/activities

Append-heavy audit and activity records. Treat as write-once — prefer creating new activities over mutating old ones.

Required Create Fields

FieldRequiredTypeDescription
typeActivityTypeUSER, SYSTEM, EXTERNAL
messagestringHuman-readable summary

Optional Fields

FieldTypeDescription
sourcestringOriginating service or module
detailsobjectStructured payload
metadataobjectExtra structured context

general/artifacts

Typed key-value storage for generated reports, serialized outputs, exports, and flexible JSON payloads.

Required Create Fields

FieldRequiredTypeDescription
keystringArtifact key — uppercase, underscore, digit, dash, and dot pattern
typeValueTypeNULL, ARRAY, OBJECT, STRING, NUMBER, BOOLEAN

Optional Fields

FieldTypeDescription
valueobjectArtifact payload

general/comments

Threaded discussion attached to content/posts or content/tickets. Comments live in this service, not in the content service.

Required Create Fields

FieldRequiredTypeDescription
contentstringComment body

Optional Fields

FieldTypeDescription
postMongoIdTarget content/posts document
ticketMongoIdTarget content/tickets document
parentMongoIdParent comment for threading
levelintegerNesting depth
statusCommentStatusDRAFT, ARCHIVED, PUBLISHED
mentionsMongoId[]Raw mentioned IDs — not populatable
attachmentsMongoId[]Raw file IDs — not populatable
reactionsobject[]Reaction objects

Population

PathCollection
postcontent/posts
ticketcontent/tickets
parentgeneral/comments

general/events

Scheduled meetings, deadlines, reminders, and other bounded events.

Required Create Fields

FieldRequiredTypeDescription
titlestringEvent title
s_datedateStart datetime
e_datedateEnd datetime — must be after s_date

Optional Fields

FieldTypeDescription
subtitlestringSubtitle
placestringVenue label
locationMongoIdRaw logistic/locations ID — not populatable
attendeesMongoId[]identity/profiles IDs
organizersMongoId[]career/employees IDs
categorystringCategory label
correlationUUIDGroups recurring event instances

Population

PathCollection
attendeesidentity/profiles
organizerscareer/employees

general/workflows

BPMN-style workflow execution state, including overall status and per-token history.

Required Create Fields

FieldRequiredTypeDescription
namestringWorkflow name
statusWorkflowStatusready, paused, failed, running, completed, terminated
tokensWorkflowToken[]Execution threads

WorkflowToken Structure

FieldRequiredTypeDescription
idstringToken identifier
historyWorkflowState[]Ordered state history
parentstringParent token ID
lockedbooleanRollback guard

Each WorkflowState entry has ref (BPMN element reference), status, optional name, and optional value.

Preserve token history carefully — do not guess workflow state transitions or invent BPMN element references.