[rules-users] Drools.NET active?

2011-02-25 Thread Sean Su
Does anyone know if Drools.NET is something Drools team in JBoss works on?
Or it is maintained by other team which just named the product Drools.NET.

The website and document seem to me that the project is not active. Does
anyone know?

Thanks

Sean

-- 
But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the
Force are they. -Yoda
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools.NET active?

2011-02-25 Thread Geoffrey De Smet
No one at JBoss works on Drools.NET, as far as I know.

It looks indeed like the project is inactive and it's been forked from 
the java Drools long ago.
If you need to connect to Drools from .NET, you might better off looking 
at the camel integration... or switch to java :)

Op 25-02-11 15:01, Sean Su schreef:
 Does anyone know if Drools.NET is something Drools team in JBoss works 
 on? Or it is maintained by other team which just named the product 
 Drools.NET.

 The website and document seem to me that the project is not active. 
 Does anyone know?

 Thanks

 Sean

 -- 
 But beware of the Dark Side. Anger, fear, aggression - the Dark Side 
 of the Force are they. -Yoda


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

-- 
With kind regards,
Geoffrey De Smet


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Object updated as rules are running

2011-02-25 Thread Jon Gil
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.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Simon Chen
Try setting the second rule with a higher salience value?

2011/2/25 Jon Gil jonsprogrammingem...@gmail.com:
 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.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Greg Barton
Did you notify the engine that your data has been updated?
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436
See section 3.3.3.1.3

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:

From: Jon Gil jonsprogrammingem...@gmail.com
Subject: [rules-users] Object updated as rules are running
To: rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 9:16 AM

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



  ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Jon Gil
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_bar...@yahoo.com

   Did you notify the engine that your data has been updated?


 http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436

 See section 3.3.3.1.3

 --- On *Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com* wrote:


 From: Jon Gil jonsprogrammingem...@gmail.com
 Subject: [rules-users] Object updated as rules are running
 To: rules-users@lists.jboss.org
 Date: Friday, February 25, 2011, 9:16 AM


  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.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] PackageBuilderConfiguration

2011-02-25 Thread Saleem Lakhani
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-boun...@lists.jboss.org
[mailto:rules-users-boun...@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_bar...@yahoo.com

Did you notify the engine that your data has been updated? 

 

http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/h
tml_single/index.html#d0e1436

 

See section 3.3.3.1.3

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:


From: Jon Gil jonsprogrammingem...@gmail.com
Subject: [rules-users] Object updated as rules are running
To: rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 9:16 AM 

 

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
http://mc/compose?to=rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Greg Barton
It's done in the rule action of the first rule.  If you don't inform the engine 
that the object has updated the second rule can't know about it.

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:

From: Jon Gil jonsprogrammingem...@gmail.com
Subject: Re: [rules-users] Object updated as rules are running
To: Rules Users List rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 10:14 AM

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_bar...@yahoo.com





Did you notify the engine that your data has been updated? 


http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436



See section 3.3.3.1.3

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:


From: Jon Gil jonsprogrammingem...@gmail.com

Subject: [rules-users] Object updated as rules are running
To: rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 9:16 AM 






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



___
rules-users mailing list
rules-users@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users




-Inline Attachment Follows-

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



  ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Jon Gil
Can you please provide the syntax or point me in the direction of an
example?

2011/2/25 Greg Barton greg_bar...@yahoo.com

   It's done in the rule action of the first rule.  If you don't inform the
 engine that the object has updated the second rule can't know about it.


 --- On *Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com* wrote:


 From: Jon Gil jonsprogrammingem...@gmail.com
 Subject: Re: [rules-users] Object updated as rules are running
 To: Rules Users List rules-users@lists.jboss.org
 Date: Friday, February 25, 2011, 10:14 AM


 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_bar...@yahoo.comhttp://mc/compose?to=greg_bar...@yahoo.com
 

   Did you notify the engine that your data has been updated?


 http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436

 See section 3.3.3.1.3

 --- On *Fri, 2/25/11, Jon Gil 
 jonsprogrammingem...@gmail.comhttp://mc/compose?to=jonsprogrammingem...@gmail.com
 * wrote:


 From: Jon Gil 
 jonsprogrammingem...@gmail.comhttp://mc/compose?to=jonsprogrammingem...@gmail.com
 
 Subject: [rules-users] Object updated as rules are running
 To: 
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 Date: Friday, February 25, 2011, 9:16 AM


  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.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 -Inline Attachment Follows-

 ___
 rules-users mailing list
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Vincent Legendre
Title: CARTE DE VISITE


  
  
To notify modifications, use "update" operator. This action will
notify all rules using this object instance to re-evaluate. So the
second rule will trigger, but also the first one if you don't check
that MovieStar has its default value in your conditions. Without
this check, you will fall in infinite loop.

You should read the documentation more carefully.
Your question is on very basic concepts of a rule enine.



Le 25/02/2011 17:54, Jon Gil a crit:
Can you please provide the syntax or point me in the
  direction of an example?
  
  2011/2/25 Greg Barton greg_bar...@yahoo.com

  

  
It's done in the rule action of the
  first rule. If you don't inform the engine that the
  object has updated the second rule can't know about
  it.
  

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com
wrote:
  
  

  From: Jon Gil jonsprogrammingem...@gmail.com

Subject: Re: [rules-users] Object updated as rules
are running
To: "Rules Users List" rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 10:14 AM

  

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_bar...@yahoo.com

  

  
Did you notify the
  engine that your data has been
  updated?
  
  
  http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436
  
  
  See section 3.3.3.1.3

--- On Fri, 2/25/11, Jon Gil
  jonsprogrammingem...@gmail.com
wrote:

  From: Jon Gil jonsprogrammingem...@gmail.com
  Subject: [rules-users] Object
  updated as rules are running
  To: rules-users@lists.jboss.org
  Date: Friday, February 25,
  2011, 9:16 AM
  

  
  
Hi, I have a very
  simple rules flow that
  I am getting odd
  results from.For
  now, our project is
  planning on
  usingspreadsheetsand
  a drools server.

The test project we
  are working on
  acceptsa movie
  namefrom an external
  source and creates a
  Movieobject that is
  passed to the rules.
  The first rule looks
  at the movieName
  attribute and assigns
  it a movieStar using
  the Movie objects
  setMovieStar 

Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Wolfgang Laun
Here's one way:

rule example
when
$fact: Type( someField != 42 )
then
modify( $fact ){
 setSomeField( 42 )
}
end

Did you read any of the Drools Expert documentation? The necessity of
informing the inference engine about changes of fact objects is indeed
discussed, and all three techniques of doing that are covered.

-W




2011/2/25 Jon Gil jonsprogrammingem...@gmail.com

 Can you please provide the syntax or point me in the direction of an
 example?


 2011/2/25 Greg Barton greg_bar...@yahoo.com

   It's done in the rule action of the first rule.  If you don't inform
 the engine that the object has updated the second rule can't know about it.


 --- On *Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com* wrote:


 From: Jon Gil jonsprogrammingem...@gmail.com
 Subject: Re: [rules-users] Object updated as rules are running
 To: Rules Users List rules-users@lists.jboss.org
 Date: Friday, February 25, 2011, 10:14 AM


 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_bar...@yahoo.comhttp://mc/compose?to=greg_bar...@yahoo.com
 

   Did you notify the engine that your data has been updated?


 http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436

 See section 3.3.3.1.3

 --- On *Fri, 2/25/11, Jon Gil 
 jonsprogrammingem...@gmail.comhttp://mc/compose?to=jonsprogrammingem...@gmail.com
 * wrote:


 From: Jon Gil 
 jonsprogrammingem...@gmail.comhttp://mc/compose?to=jonsprogrammingem...@gmail.com
 
 Subject: [rules-users] Object updated as rules are running
 To: 
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 Date: Friday, February 25, 2011, 9:16 AM


  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.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 -Inline Attachment Follows-

 ___
 rules-users mailing list
 rules-users@lists.jboss.orghttp://mc/compose?to=rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Greg Barton
See this section:
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e5118
And subsection 4.8.4.2

--- On Fri, 2/25/11, Wolfgang Laun wolfgang.l...@gmail.com wrote:

From: Wolfgang Laun wolfgang.l...@gmail.com
Subject: Re: [rules-users] Object updated as rules are running
To: Rules Users List rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 11:26 AM

Here's one way:

rule example
when
    $fact: Type( someField != 42 )
then
    modify( $fact ){
 setSomeField( 42 )
    }
end

Did you read any of the Drools Expert documentation? The necessity of informing 
the inference engine about changes of fact objects is indeed  discussed, and 
all three techniques of doing that are covered.


-W




2011/2/25 Jon Gil jonsprogrammingem...@gmail.com

Can you please provide the syntax or point me in the direction of an example?


2011/2/25 Greg Barton greg_bar...@yahoo.com





It's done in the rule action of the first rule.  If you don't inform the engine 
that the object has updated the second rule can't know about it. 


--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:



From: Jon Gil jonsprogrammingem...@gmail.com
Subject: Re: [rules-users] Object updated as rules are running
To: Rules Users List rules-users@lists.jboss.org


Date: Friday, February 25, 2011, 10:14 AM 





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_bar...@yahoo.com





Did you notify the engine that your data has been updated? 


http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1436




See section 3.3.3.1.3

--- On Fri, 2/25/11, Jon Gil jonsprogrammingem...@gmail.com wrote:




From: Jon Gil jonsprogrammingem...@gmail.com


Subject: [rules-users] Object updated as rules are running
To: rules-users@lists.jboss.org
Date: Friday, February 25, 2011, 9:16 AM 






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




___
rules-users mailing list
rules-users@lists.jboss.org


https://lists.jboss.org/mailman/listinfo/rules-users



-Inline Attachment Follows-




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




___
rules-users mailing list
rules-users@lists.jboss.org


https://lists.jboss.org/mailman/listinfo/rules-users




___

rules-users mailing list

rules-users@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users





-Inline Attachment Follows-

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



  ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] [ANN]VTD-XML 2.10

2011-02-25 Thread Jimmy Zhang
VTD-XML 2.10 is now released. It can be downloaded at 
https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/.
This release includes a number of new features and enhancement.

* The core API of VTD-XML has been expanded. Users can now perform 
cut/paste/insert on an empty element.
* This release also adds the support of deeper location cache support for 
parsing and indexing. This feature is useful for application performance tuning 
for
processing various XML documents.
* The java version also added support for processing zip and gzip files. Direct 
processing of httpURL based XML is enhanced.
* Extended Java version now support Iso-8859-10~16 encoding.
* A full featured C++ port is released.
* C version of VTD-XML now make use of thread local storage to achieve thread 
safety for multi-threaded application.
* There are also a number of bugs fixed. Special thanks to Jozef Aerts, John 
Sillers, Chris Tornau and a number of other users for input and suggestions___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Reg: Drools with Jboss esb.

2011-02-25 Thread Sathya Prakash
Hi ,

I am using JBOSS ESB for drools integration.when Drools is password
protected then where i need to pass credentials?
What is the key name i should mention in brms properties?

action class=org.jboss.soa.esb.actions.BusinessRulesProcessor

  name=RuleAgentPolicyService

property name=ruleAgentProperties

  value=ruleAgent/brmsdeployedrules.properties /

property name=object-paths

object-path esb=body.Driver /

object-path esb=body.Policy /

/property

/action



-- 
Cheers,
Sathya Prakash.
*సత్య ప్రకాష్*.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Question about in XML: literal-restriction on null value

2011-02-25 Thread Christina Lau
Finally, I pick the 1st option because the 2nd option, using
return-value-restriction, is not allowed in a
MultiRestrictionFieldConstraint (UnsupportedOperationException is thrown).
Thanks at all.

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-in-XML-literal-restriction-on-null-value-tp2572293p2580065.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users