certimate/internal/workflow/node-processor/execute_failure_node.go
2025-05-20 18:09:42 +08:00

29 lines
602 B
Go

package nodeprocessor
import (
"context"
"github.com/usual2970/certimate/internal/domain"
)
type executeFailureNode struct {
node *domain.WorkflowNode
*nodeProcessor
*nodeOutputer
}
func NewExecuteFailureNode(node *domain.WorkflowNode) *executeFailureNode {
return &executeFailureNode{
node: node,
nodeProcessor: newNodeProcessor(node),
nodeOutputer: newNodeOutputer(),
}
}
func (n *executeFailureNode) Process(ctx context.Context) error {
// 此类型节点不需要执行任何操作,直接返回
n.logger.Info("the previous node execution was failed")
return nil
}