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:
Thanks Mark, this is very useful. I will star learning just now.
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
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
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
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
Try reading the user guide documentation, before you pester people. Maybe, just maybe, the examples and walk throughs are there.
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
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
Hi Mark
Thanks for your valid information
regards
sarath
Post a Comment