[rules-users] custom rule creation/parsing

Eugeny N Dzhurinsky bofh at redwerk.com
Mon Jul 16 07:57:01 EDT 2007


On Mon, Jul 16, 2007 at 11:51:30AM +0100, Dean Jones wrote:
> Hello Eugeny,
> 
> Not sure if this is the recommended way, but I did something similar
> using the classes in the org.drools.lang.descr package. You can create
> a PackageDescr from your custom objects and then call
> PackageBuilder.addPackage(PackageDescr) and
> PackageBuilder.getPackage() to get an org.drools.rule.Package.
> 
> I couldn't find any documentation on the org.drools.lang.descr package
> (javadoc is pretty minimal as well), but you should be able to work
> out what to do, at least for the basic stuff.
> 
> Best wishes,
> 
> Dean.

Okay, looks like that's the way to define conditions only? Or do I miss
something?

If you could provide some examples of what you did find, or somebody of
developers could tell is it right way to do things I described earlier?

-- 
Eugene N Dzhurinsky



More information about the rules-users mailing list