You know what I'm going to say to that one, please submit examples and tutorials and I'll update them into the documentation :)- I can't do all this on my own. Also I'm probably now too far removed from new users to truly write understandable documentation for noobies.

We are building more examples as we go along. We already have a full smorgasboard of integration tests that show ALL drools syntax usage:
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/

If you find something that is broken or not tested please send us an integration test and we will add it, integration tests are very important.

We now have several examples, variations on the state example and fibonacci. Jeff Brown is adding in Conway's Game of Life. I have plans to convert a pacman game over to Drools 3.0. These will grow over time - again please submit examples and write documentation to help with this.

Dinner time for me now, I'll answer the rest of your email later.

Mark
Dmitry Goldenberg wrote:
The issue may not necessarily be the particular language constructs as
much as having enough samples and best practices to infer how to get
stuff done.  This is especially true for a Java developer who is a
novice to the wonderful world of rules :)  I don't mind the learning
curve as long as there are enough tools in the toolbox for me to get my
job done.

For example, how do I express the following logic through DRL? -

SomeObject so =3D new SomeObject();
if (MyEngine.staticMethod1(arg1, arg2) &&
    (new MyObject(param1, param2)).isConditionTrue() &&
    so.getString().startsWith("a"))

I've gathered that
       customer : Customer( subscription =3D=3D "Silver" )
is equivalent to
       Customer customer =3D new Customer();
       if (customer.getSubscription().equals("Silver")) { ...

But how do I deal with static method invokations, passing parameters
into constructors, and invoking methods other than getters?

Thank you,
- Dmitry


Reply via email to