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...
Sent from the Drools - User mailing list archive at
Nabble.com.