fix: collectCompletedThreads workflow 字段写死空字符串 #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
collectCompletedThreads里 completed/cancelled thread 的workflow字段写死了空字符串,thread list显示会缺 workflow 信息。方案
用
resolveWorkflowFromHead从 CAS chain 里拿 workflow hash,和 active thread 的处理方式保持一致。改动很小:函数签名从接收
VarStore改为接收UwfStore,内部调用resolveWorkflowFromHead(uwf, entry.head)获取 workflow。