FunctionCall invokes a compiled engine.Function. It evaluates input bindings in the surrounding scope, runs the function and applies output bindings back to the surrounding scope.
| 28 | // to the surrounding scope. |
| 29 | type FunctionCall struct { |
| 30 | engine.LinearNode |
| 31 | fn *engine.Function |
| 32 | inputBindings map[string]workflowapi.Expression // arg uid → expression |
| 33 | outputBindings map[string]workflowapi.OutputBinding // return uid → binding |
| 34 | toolDescription string |
| 35 | } |
| 36 | |
| 37 | // NewFunctionCall builds a FunctionCall. Validates that every declared return |
| 38 | // has a matching output binding. |
| 39 | func NewFunctionCall(id string, fn *engine.Function, inputBindings map[string]workflowapi.Expression, outputBindings map[string]workflowapi.OutputBinding, toolDescription string) (*FunctionCall, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected