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,