[rules-users] Unable to create restriction [QualifiedIdentifierRest == Enum]
H.C.
canterburry at gmail.com
Sun Mar 14 22:09:14 EDT 2010
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.
More information about the rules-users
mailing list