[rules-users] Minor Issue in writing DSL

Saleem Lakhani Saleem.Lakhani at citizensfla.com
Tue Aug 21 09:10:46 EDT 2007


Hi,

 

If I had a rule written in DSL using Drools 3.0 like;

 

1.	[when] when1=r : ObjectA( )
2.	[when] when2=eval(r.isApplication() || r.isBanker())

 

There are no attributes in class Object with name application and banker
but there are methods in ObjectA with names isApplication() & isBanker()
which does some work and return Boolean based on some facts.

 

What is the correct way of writing the same rule using Drools 4.0 ?

 

Also, if the above attributes were present in ObjectA what would have
been the best way to write it in DSL using Drools 4.0

 

Thanks,

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070821/3d9f2dc7/attachment.html 


More information about the rules-users mailing list