mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
29 lines
456 B
Go
29 lines
456 B
Go
package nodeprocessor
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/usual2970/certimate/internal/domain"
|
|
)
|
|
|
|
type conditionNode struct {
|
|
node *domain.WorkflowNode
|
|
*Logger
|
|
}
|
|
|
|
func NewConditionNode(node *domain.WorkflowNode) *conditionNode {
|
|
return &conditionNode{
|
|
node: node,
|
|
Logger: NewLogger(node),
|
|
}
|
|
}
|
|
|
|
// 条件节点没有任何操作
|
|
func (c *conditionNode) Run(ctx context.Context) error {
|
|
c.AddOutput(ctx,
|
|
c.node.Name,
|
|
"完成",
|
|
)
|
|
return nil
|
|
}
|