feat: expose workflow state events and persist signal transitions

This commit is contained in:
2026-09-18 09:27:45 +08:00
parent 082898e705
commit a4d9900e2c
34 changed files with 1499 additions and 27 deletions

View File

@@ -11,6 +11,8 @@ import (
type Event struct {
// Record 包含命名空间、记录标识、并发版本和 UTC 时间。
core.Record
// WorkflowID 是数据库从不可变事件派生的流程查询索引;不可写,非流程或无有效范围时为空,不能代替归属授权。
WorkflowID *core.ID `db:"workflow_id"`
// AggregateKind 产生事件的聚合类型,例如任务或流程。
AggregateKind string `db:"aggregate_kind"`
// AggregateID 产生事件的聚合标识。