Monday, October 01, 2007

Drools Examples Documentation Gets Beefed Up

One of the issues constantly raised to us is that lack of documented examples, with the 4.0.2 release out this week this is no longer the case :) We documented most of the examples provided with the project, in detail. These examples cover much of the core behaviour and functionality of the engine. Feedback on this documentation, before we do 4.0.2, would be very much welcome :)

Hudson builds our code base on each commit, so you can get the latest examples documentation build from trunk here:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/html/ch10.html

9 comments:

  1. Thanks Mark, this is very useful. I will star learning just now.

    ReplyDelete
  2. Mark,
    each time looking at the doc it becomes better and better - thanks for the great work.
    (think you spent much time on this)

    now there are examples using RuleFlows :-)

    small wish for future releases: examples using SubRuleFlows and Milestones.

    regards
    ekke

    ReplyDelete
  3. Hi Mark, I'm new to Rules Engine. I need to start with an example on drools. I have checked with your link which is provided on blog. If I try to open this link https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/html/ch10.html
    getting the status error 404. Could you please send me the example link with sub rules flow.
    Regards
    Sarath

    ReplyDelete
  4. That blog link for was for when we were working on drools 4.0.2 - which is why that hudson CI build link is now outdated. All that works is now rolled into the main distribution examples, which is now at 4.0.7:
    http://www.jboss.org/drools/documentation.html

    ReplyDelete
  5. Hi Mark Thanks for you valuble information. I need small clarification, which link I need to check for examples in http://www.jboss.org/drools/documentation.html that page. I'm also looking 4.0.7 version.
    Shall I click the "Live Trails" for examples? Please provide the information where exactly availabel examples?
    Regards
    Sarath

    ReplyDelete
  6. Try reading the user guide documentation, before you pester people. Maybe, just maybe, the examples and walk throughs are there.

    ReplyDelete
  7. Hi Mark
    Could you please help on this message
    line 62:0 mismatched character 'EOF' expecting '''
    org.drools.compiler.DroolsParserException: Unknown error while parsing. This is a bug. Please contact the Development team."

    I'm getting the error to this location here and
    builder.addPackageFromDrl(new InputStreamReader(RServlet.class.getResourceAsStream("/credit.drl")));

    here
    ruleBase.addPackagebuilder.getPackage());

    Below is my code snippet.

    PackageBuilder builder = new PackageBuilder();
    try {
    builder.addPackageFromDrl(new InputStreamReader(RServlet.class.getResourceAsStream("/credit.drl")));
    } catch (DroolsParserException e1) {
    e1.printStackTrace();
    }
    RuleBase ruleBase= RuleBaseFactory.newRuleBase();
    try {
    ruleBase.addPackage(builder.getPackage());
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    StatefulSession workingMemory = ruleBase.newStatefulSession();

    Could you plese help me on this issue
    Regards
    Sarath

    ReplyDelete
  8. This is not the right place for those sorts of questions, it is not relevant in anyway to the topic of the blog posting - this is not a help forum.

    Please subscribe to the USER mailing list and ask your questions there:
    http://www.jboss.org/drools/lists.html

    ReplyDelete
  9. Hi Mark
    Thanks for your valid information
    regards
    sarath

    ReplyDelete