Running the latest 5.0.1 snapshot jars and it can handle enums fine. See attached code.
It should print out the following output when run:
Hello World
Goodbye cruel world
At some point I said GOODBYE
OK_I_AM_SERIOUSLY_SAYING_GOODBYE_NOW is the current status AND at some point I said HELLO
At some point I said HELLO
--- On Fri, 5/1/09, Armaghan Mahmud <mahmud.armaghan(a)gmail.com> wrote:
From: Armaghan Mahmud <mahmud.armaghan(a)gmail.com>
Subject: [rules-users] Rules question
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Date: Friday, May 1, 2009, 11:10 AM
I'm new to the mailing list so I'll start off by
saying hello to everyone.
I've recently started using DROOLS and I seem to have
hit a dead end. I'm
trying to pass in an enum and a list into the working
memory one at a time
but I would like my rule to first see if it the enum
matches a hard coded
enum value. Additionally, I would also like the rule to see
if the enum
value that is being passed to the working memory happens to
fall in the list
or not. First of all, is it possible to do that in one
rule? I've been
trying to do that using "&&" and
"contains" keywords but I'm not getting
anywhere. I don't have the code in front of me or I
would've pasted it but I
hope you can understand my point. Any help that I can get
in this matter
will be greatly appreciated.
Thanks,
Armaghan
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users