pub fn compileFunctionTasks(
function: JsValue,
input: JsValue,
) -> Result<JsValue, JsValue>Expand description
Compiles a Function’s task expressions for a given input.
Evaluates all JMESPath expressions in the function’s tasks using the provided input data. This is used for previewing how tasks will be executed during Function authoring.
§Arguments
function- JavaScript object representing a Function definitioninput- JavaScript object representing the function input
§Returns
An array where each element corresponds to a task definition:
nullif the task was skipped (skip expression evaluated to true){ One: task }for non-mapped tasks{ Many: [task, ...] }for mapped tasks (expanded from input_maps)
§Errors
Returns an error string if expression evaluation fails or types don’t match.