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

Method findStartNodes

pkg/workflow/engine.go:716–724  ·  view source on GitHub ↗

辅助方法 findStartNodes 查找开始节点

(def *WorkflowDefinition)

Source from the content-addressed store, hash-verified

714
715// findStartNodes 查找开始节点
716func (e *Engine) findStartNodes(def *WorkflowDefinition) []string {
717 var startNodes []string
718 for _, node := range def.Nodes {
719 if node.Type == NodeTypeStart {
720 startNodes = append(startNodes, node.ID)
721 }
722 }
723 return startNodes
724}
725
726// findNode 查找节点
727func (e *Engine) findNode(def *WorkflowDefinition, nodeID string) *NodeDef {

Callers 1

executeWorkflowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected