SetExecItem sets the ExecItemFunc for processing individual items.
(f func(ctx *PfContext, params map[string]any, item any) (any, error))
| 393 | |
| 394 | // SetExecItem sets the ExecItemFunc for processing individual items. |
| 395 | func (bn *BatchNode) SetExecItem(f func(ctx *PfContext, params map[string]any, item any) (any, error)) *BatchNode { |
| 396 | bn.ExecItemFunc = f |
| 397 | return bn |
| 398 | } |
| 399 | |
| 400 | // SetPost sets the PostFunc. Receives []any prep and []any exec results. |
| 401 | func (bn *BatchNode) SetPost(f func(ctx *PfContext, params map[string]any, prepResult []any, execResult []any) (string, error)) *BatchNode { |
no outgoing calls