Hello again,

On 2/19/07, Marcus Ilgner <[EMAIL PROTECTED]> wrote:

Hi list,

I'm having problems using Enums in the LHS of my rules.
Running this rule

> rule "demo"
>     when
>         $t : Transition( from == PlayerCharacter.STATE_IDLE,
>                          to == PlayerCharacter.STATE_GENERATING,
>                          state != TransitionState.REQUESTED )
>     then
>         System.out.println("The state is: " + $t.getState());
> end


actually results in the output
> The state is: REQUESTED

Am I doing something wrong?
I'm currently using the experimental 3.1.0M1 release.


Since it seems that I'm the only one who experiences this odd behaviour, I
have put together a simple self-contained test case:
http://dude-development.de/enumtest.java
This example, running on Version 3.1.0-M1, always prints every value, even
those that are equal to VALUE1. If I change the comparator to equal, no
value gets printed.
Is it me who's doing something wrong or is it really a bug? Judging from
previous posts and what I read on the JIRA, Enums should work like that,
don't they?
I'd be grateful for any hints.

Best regards
Marcus
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to