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
type✅ActivityTypeUSER, SYSTEM, EXTERNAL
message✅stringHuman-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
key✅stringArtifact key — uppercase, underscore, digit, dash, and dot pattern
type✅ValueTypeNULL, 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
content✅stringComment 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
title✅stringEvent title
s_date✅dateStart datetime
e_date✅dateEnd 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
name✅stringWorkflow name
status✅WorkflowStatusready, paused, failed, running, completed, terminated
tokens✅WorkflowToken[]Execution threads

WorkflowToken Structure ​

FieldRequiredTypeDescription
id✅stringToken identifier
history✅WorkflowState[]Ordered state history
parent—stringParent token ID
locked—booleanRollback 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.