I have a rule that compares a string with an enum value. I have thus written
my rules this way:

when
$var : SomeType( stringField == SomeEnum.ENUM.name )
then
...something
end

But I get the following error:
Unable to create restriction [QualifiedIndentifierRestr: ==
SomeEnum.ENUM.name]

I have also tried
when
$var : SomeType( eval(stringField == SomeEnum.ENUM.name() ))
then
...something
end

Same thing...

Any ideas?

-- 
View this message in context: 
http://n3.nabble.com/Unable-to-create-restriction-QualifiedIdentifierRest-Enum-tp448128p448128.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to