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

Method findNode

pkg/workflow/engine.go:727–734  ·  view source on GitHub ↗

findNode 查找节点

(def *WorkflowDefinition, nodeID string)

Source from the content-addressed store, hash-verified

725
726// findNode 查找节点
727func (e *Engine) findNode(def *WorkflowDefinition, nodeID string) *NodeDef {
728 for _, node := range def.Nodes {
729 if node.ID == nodeID {
730 return &node
731 }
732 }
733 return nil
734}
735
736// findNextNodes 查找下一批节点
737func (e *Engine) findNextNodes(execution *WorkflowExecution, currentNodes []string) []string {

Callers 1

executeNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected