core.function
A primitive stream that evaluates a Common Expression Language (CEL) expression and emits the result. The expression may reference named streams specified in the inputs property.
Keywords
expressionrequiredThe CEL expression.
variablesoptionalAn object of named stream definitions that may be referenced in expression.
Examples
{
"type": "function",
"expression": "username + '@' + domain",
"variables": {
"username":{
"type": "string",
"minLength": 2,
"maxLength": 64
},
"domain": {
"type": "enum",
"enum": ["example.com", "example.org"]
}
}
}