This document was generated from CDN thread
Created by: null on 29-09-2004 05:53:01 AM
for example, if we said type was "date", input format was "MM", but value was "13", what would happen?
Subject: RE: What is likely behaviour for "Say it smart" if given invalid data
Replied by: null on 29-09-2004 06:13:57 PM
If an Audium Say It Smart plugin encounters data in an incorrect format, it will throw an exception, which will prompt the visit of the error element, etc. So the developer, if they are not confident that the data that would be fed into Say It Smart is accurate, would have to validate it themselves in a decision or something. This is similar to the Receptionist application, the phone number was validated beforehand because that way you can catch the bad data yourselves and handle it rather than letting bad data propagate its way to the element and encounter an exception.
By the way, in Audium Call Services (the next release), if there is a substitution that references a variable that doesn't exist, the substitution will now replace itself with "" and a warning is placed in the logs that the substitution yielded emptiness. In Audium 3.3, this situation threw an exception.
Elam