Visar inlägg med etikett JBoss Rules. Visa alla inlägg
Visar inlägg med etikett JBoss Rules. Visa alla inlägg

2007-08-20

Drools puzzle #1

I completely missed the announcement for the Drools puzzles but it looks like lots of fun. Here's my solution to the first puzzle using Clips. You run it by executing the batch file:

CLIPS> (batch "... /ages-of-the-sons.bat")
TRUE
CLIPS> (clear)
CLIPS> (load "ages-of-the-sons.clp")
%%!***
TRUE
CLIPS> (generate-ages)
FALSE
CLIPS> (run)
What are the ages of the three sons of the old man?
2, 2 and 9
10 rules fired
40 mean number of facts (44 maximum).
0 mean number of instances (0 maximum).
4 mean number of activations (8 maximum)

2007-03-05

JBoss Rules adds support for Clips language

This is very good news indeed. I must remember to check it out more thoroughly.