mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-13 21:01:32 +08:00
24 lines
438 B
Go
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()},
|
|
}
|
|
}
|