> Here's an example of the .drl file input syntax: > > import org.drools.MockObject; > > ruleset ExampleRuleSet > { > rule ExampleRule(MockObject person, > MockObject sibling, > MockObject parent) > { > String name; > > when > { > person.getName() == "bob"; > name = person.getName(); > name = parent.getName(); > parent = person.getParent(); > } > > then > { > System.err.println( person + " is named Bob and so is his parent " + parent ); > } > }
Looking good Bob! Just a thought - and forgive me if I've missed something obvious - but could you use real Java code to write rules as an alternative to your rules language? e.g. using a Rule interface and a RuleSet class which contains a collection of rules? James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ drools-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/drools-interest