Hello, Its possible in Jess to access enumerated types previously defined in java. I mean, suppose I define a enumerated type in some .java like
public enum Type {type1, type2, type3}; and then I have some class with a type atribute like: public class hello{ Type hello_type; String name; } Now, what i want is to do something like this in jess: (defrule hello-rule (hello {name=="some name"} {hello_type==type1}) => printout "Hello") Although, because hello_type is not a "normal" type I can not do this kind of comparison. I tried to import the Type for the jess code, still doesn't work. Any ideas how can solve this? Regards, Joao Mourao -------------------------------------------- Unclassified email
begin:vcard fn;quoted-printable:Jo=C3=A3o Mour=C3=A3o n;quoted-printable;quoted-printable:Mour=C3=A3o;Jo=C3=A3o org:Thales;Above Water Systems adr:;;;Hengelo;;;Netherlands email;internet:[EMAIL PROTECTED] title:THALES NETHERLANDS B.V. tel;work:2640 note:-unclassified mail- version:2.1 end:vcard