I am switching from Drools 2 to 5.
Do we still do the following in Drools
5:
Properties properties = new Properties();
properties.setProperty( "drools.dialect.java.compiler", RULE_COMPILER);
PackageBuilderConfiguration conf = new
PackageBuilderConfiguration(properties);
saleem
From:
rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Jon Gil
Sent: Friday, February 25, 2011 11:15 AM
To: Rules Users List
Subject: Re: [rules-users] Object updated as rules are running
How do we do that? Since
we are using the rules server, all we are doing is calling with an HTTP call
with the object and the rules flow we want to call. We then receive back the
results as the HTTP response.
2011/2/25 Greg Barton <greg_barton@yahoo.com>
Did you notify the engine that your data has been updated?
See section 3.3.3.1.3
Hi, I have a very simple rules flow that I am getting odd
results from. For now, our project is planning on
using spreadsheets and a drools server. The test project we are working on accepts a movie
name from an external source and creates a Movie object that is
passed to the rules. The first rule looks at the movieName
attribute and assigns it a movieStar using the Movie objects setMovieStar
call. We have printLn statements before and after this action to
confirm that it does in fact work. The second rule, where things go wrong, checks the
MovieStar attribute, but no matter what we've just set it to, it always uses
the value ("NoStarYet") that was originally created when we
create the Movie object in our Java code in the condition of our second
rule. We've tried using the getMovieStar call in the condition, but it
has been throwing errors when we startup the Drools Server. When we retreive the Movie object from the resultSet, the
movieStar attribute is set correclty, but we can't get our flow to go as
expected. This really seems like a simple issue, but we've had no
luck with it. Any thoughts? Does the rules engine use the getter
methods for conditions or does it use the values from the entityXML we pass
in? Is there a way to make the engine update the object between running
each rule? Any help is appreciated greatly. -----Inline Attachment Follows----- _______________________________________________ |
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users