Hi,

I'm highly interested in ruta, and its potential applications in industrial
applications. Right know I'm trying to create a simple toy condition
extension that is simply a case insensitive INLIST condition. It is
completely based on the InListCondition class, I also declared an
implementation of the IRutaConditionExtension interface.

With primitve types everything seems to work great, except when the
condition is used with a variable :

STRINGLIST MonthsList = {"january", ...};
DECLARE Month;
ANY{INSENSITIVEINLIST(MonthsList) -> MARK(Month)};

I get a class cast exception when the condition is being created, because
MonthsList is a SimpleTypeExpression and I'm expecting a StringListExpression. 

Am I doing something wrong ? I suppose there is a way to resolve the
variable to the actual list, but I missed it somehow.


Any ideas on how that could be done?

Regards

Sebastian

Reply via email to