Examples (JBoss-Drools and Prolog)

Examples with JBoss-Rules.

  1. HelloWorld with Rules. Shows the basic principles: A single rule, a simple fact and some nice'n easy glue code.

  2. Integrating the rule-engine into your application: Implementing a RuleEngineWrapper

  3. Solving the Golfer-Riddle with a rule engine. See below for Prolog-solution.

  4. Routing messages or requests, sometimes called content based routing

Examples with Prolog

Prerequsites: You should know the Prolog syntax. Excellent tutorials exist on the web, I will not provide a syntax overview.

  1. The Golfer riddle revisited, solved in Prolog. In my opinion a lot cleaner than in Java+Drools - but decide for yourself.