[rules-users] check if a Enum object is present in condition

Martin A wmlsub at gmail.com
Sat Oct 22 14:28:13 EDT 2011


Hello,

I try to put a condition in my LHS, such as:

rule "initial_playground_dialog"
    #agenda-group "firstTimeUser"
    #salience 99
    when
        $gst :
GameStateController(!hasEventOccurred("initial_playground_dialog"))
        $list : List()
        $screen : FrontendScreen.PLAYGROUND
    then
       ....
end

where 'FrontendScreen' is an enum and PLAYGROUND is its property. However I
get a syntax error. What's the proper way to check for and assign such a
session object?

Any help is appreciated!

Best regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111022/10125da2/attachment.html 


More information about the rules-users mailing list