Can you please provide example of OnValidate?
Here's what I tried and it does not work:
Class Test.InboundAdapter Extends Ens.InboundAdapter
{
/// Stream class to store message body. Leave empty to use strings.
Property BodyClass As %Dictionary.CacheClassname;
Parameter SETTINGS = "BodyClass:Basic";
/// Does not get called.
Method OnValidate(args...)
{
merge ^b = args
quit $$$ERROR($$$GeneralError, "Some error")
}
/// Runtime only. And $username is always _Ensemble. ##super() is in Ens.Settings
Method AssignOneSetting(pProperty As %String, pValue As %String, pName As %String) As %Status
{
set ^c($i(^c)) = $lb(pProperty, pValue, pName, $username)
quit ##super(pProperty, pValue, pName)
}
}- Log in to post comments