修改插件响应结果判断,新增跳过通知

This commit is contained in:
v-me-50
2025-06-18 17:42:14 +08:00
parent 7b2235d7e7
commit 7360e0c3a2
5 changed files with 59 additions and 12 deletions

View File

@@ -269,6 +269,13 @@ func RunNode(node *WorkflowNode, ctx *ExecutionContext) error {
lastStatus := ctx.GetStatus(node.Config["fromNodeId"].(string))
for _, branch := range node.ConditionNodes {
if branch.Config["type"] == string(lastStatus) {
if branch.ChildNode != nil {
fromNodeData, ok := ctx.GetOutput(node.Config["fromNodeId"].(string))
if !ok {
fromNodeData = nil
}
branch.ChildNode.Config["fromNodeData"] = fromNodeData
}
err := RunNode(branch, ctx)
if err != nil {
return fmt.Errorf("执行条件分支失败: %v", err)