fix: collectCompletedThreads workflow 字段写死空字符串 #46

Closed
opened 2026-06-04 07:34:58 +00:00 by xiaoju · 0 comments
Owner

问题

collectCompletedThreads 里 completed/cancelled thread 的 workflow 字段写死了空字符串,thread list 显示会缺 workflow 信息。

方案

resolveWorkflowFromHead 从 CAS chain 里拿 workflow hash,和 active thread 的处理方式保持一致。

改动很小:函数签名从接收 VarStore 改为接收 UwfStore,内部调用 resolveWorkflowFromHead(uwf, entry.head) 获取 workflow。

## 问题 `collectCompletedThreads` 里 completed/cancelled thread 的 `workflow` 字段写死了空字符串,`thread list` 显示会缺 workflow 信息。 ## 方案 用 `resolveWorkflowFromHead` 从 CAS chain 里拿 workflow hash,和 active thread 的处理方式保持一致。 改动很小:函数签名从接收 `VarStore` 改为接收 `UwfStore`,内部调用 `resolveWorkflowFromHead(uwf, entry.head)` 获取 workflow。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#46