Documentation
¶
Index ¶
- type NodeFor
- func (nr *NodeFor) GetID() idwrap.IDWrap
- func (n *NodeFor) GetName() string
- func (nr *NodeFor) GetOutputVariables() []string
- func (nr *NodeFor) GetRequiredVariables() []string
- func (nr *NodeFor) IsLoopCoordinator() bool
- func (nr *NodeFor) RunAsync(ctx context.Context, req *node.FlowNodeRequest, ...)
- func (nr *NodeFor) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
- func (nr *NodeFor) SetID(id idwrap.IDWrap)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeFor ¶
type NodeFor struct {
FlowNodeID idwrap.IDWrap
Name string
IterCount int64
Timeout time.Duration
Condition mcondition.Condition
ErrorHandling mflow.ErrorHandling
}
func New ¶
func New(id idwrap.IDWrap, name string, iterCount int64, timeout time.Duration, errorHandling mflow.ErrorHandling) *NodeFor
New creates a NodeFor without condition data (for backward compatibility)
func NewWithCondition ¶
func NewWithCondition(id idwrap.IDWrap, name string, iterCount int64, timeout time.Duration, errorHandling mflow.ErrorHandling, condition mcondition.Condition) *NodeFor
NewWithCondition creates a NodeFor with condition data for break logic
func (*NodeFor) GetOutputVariables ¶
GetOutputVariables implements node.VariableIntrospector. Returns the output paths this For node produces.
func (*NodeFor) GetRequiredVariables ¶
GetRequiredVariables implements node.VariableIntrospector. It extracts variable references from the break condition expression.
func (*NodeFor) IsLoopCoordinator ¶
func (*NodeFor) RunAsync ¶
func (nr *NodeFor) RunAsync(ctx context.Context, req *node.FlowNodeRequest, resultChan chan node.FlowNodeResult)
func (*NodeFor) RunSync ¶
func (nr *NodeFor) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
Click to show internal directories.
Click to hide internal directories.