I am new to Architect, so forgive me if I have missed something...
Scenario
Collect Date of Birth as ddmmyy from caller.
Validate DOB
The challenges seen are that the functions in the Expression Editor do not handle "invalid" input?
There is no function like IsDate() to return a true/false.
The ToDate() function does not handle an invalid date, e.g return null (or NOT_SET).
Documentation I have read indicates flow will go to error handling which is basically wrong for basic validation expression.
A simple task (in most IVR / CpaaS products I have used) becomes tedious.
Do I really need to create a long Update Data object with lots of entries parsing data and checks around the month, number of days and then leap years to determine if I have a valid date in the DOB entry?
I have tried finding more information on how flexible and capable the expression editor is, i.e. can you set local vars, is there some scripting language to build logic to parse the caller input and validate?
Seems I have to combine functions to return a boolean only