certimate/internal/workflow/engine/executor_start.go
2025-11-24 14:06:04 +08:00

24 lines
438 B
Go

package engine
import (
"log/slog"
)
type startNodeExecutor struct {
nodeExecutor
}
func (ne *startNodeExecutor) Execute(execCtx *NodeExecutionContext) (*NodeExecutionResult, error) {
execRes := newNodeExecutionResult(execCtx.Node)
ne.logger.Info("the workflow is starting")
return execRes, nil
}
func newStartNodeExecutor() NodeExecutor {
return &startNodeExecutor{
nodeExecutor: nodeExecutor{logger: slog.Default()},
}
}