feat: expose workflow state events and persist signal transitions
This commit is contained in:
@@ -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 产生事件的聚合标识。
|
||||
|
||||
Reference in New Issue
Block a user