MCPcopy Create free account
hub / github.com/astercloud/aster / executeLoopNode

Method executeLoopNode

pkg/workflow/engine.go:685–693  ·  view source on GitHub ↗

executeLoopNode 执行循环节点

(execution *WorkflowExecution, node *NodeDef, result *NodeResult)

Source from the content-addressed store, hash-verified

683
684// executeLoopNode 执行循环节点
685func (e *Engine) executeLoopNode(execution *WorkflowExecution, node *NodeDef, result *NodeResult) error {
686 if node.Loop == nil {
687 return errors.New("loop node requires loop configuration")
688 }
689
690 // TODO: 实现循环逻辑
691 result.Outputs["loop_completed"] = true
692 return nil
693}
694
695// executeParallelNode 执行并行节点
696func (e *Engine) executeParallelNode(execution *WorkflowExecution, node *NodeDef, result *NodeResult) error {

Callers 1

executeNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected