[rules-users] Using Enums in LHS

Marcus Ilgner marcus.ilgner at gmail.com
Sun Feb 18 18:42:36 EST 2007


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.


Best regards
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070219/66f384bf/attachment.html 


More information about the rules-users mailing list