"scriptExpression" : "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.id)) throw('Client ID must not be empty');"
}
},
{
@ -48,6 +49,15 @@
}
}
},
{
"name": "LAMBDA_TASK",
"taskReferenceName": "check",
"type": "LAMBDA",
"inputParameters": {
"list" : "${lookup_client.output.body}",
"scriptExpression" : "if($.list.length === 0 || $.list.length > 1) throw('No client found with client_id or ambiguous query returned multiple clients.')"