feat: add bounded workflow decisions and durable result inbox
This commit is contained in:
@@ -15,6 +15,14 @@ type InboxEvent struct {
|
||||
WorkflowID core.ID `db:"workflow_id"`
|
||||
// EventID 来源持久化事件标识,用于消费去重。
|
||||
EventID core.ID `db:"event_id"`
|
||||
// SourceTaskID 来源Pulse任务;只有迁移前未核实的历史记录可空,不能据此重新推进。
|
||||
SourceTaskID *core.ID `db:"source_task_id"`
|
||||
// SourceActivationID 事件发生时的激活身份,消费时需核对是否仍为当前激活;未核实历史可空。
|
||||
SourceActivationID *core.ID `db:"source_activation_id"`
|
||||
// SourceRevision 来源任务状态版本,大于零,同一任务版本只交付一次;未核实历史可空。
|
||||
SourceRevision *uint64 `db:"source_revision"`
|
||||
// Snapshot 当时的版本化结果JSON文本,独立于外部订阅日志和当前任务;未核实历史为空。
|
||||
Snapshot core.JSON `db:"snapshot"`
|
||||
// State 当前状态;只允许定义的状态转换并配合事务校验。
|
||||
State InboxState `db:"state"`
|
||||
// AvailableAt 最早可被领取或处理的时间,统一 UTC。
|
||||
|
||||
Reference in New Issue
Block a user