[rules-users] custom rule creation/parsing
Mark Proctor
mproctor at codehaus.org
Mon Jul 16 12:03:28 EDT 2007
descr's cover the full range of the drl language. I recommend you parse
some drl files into descrs, and look at the creates AST with your debugger.
Mark
Eugeny N Dzhurinsky wrote:
> 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?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070716/ceecbd99/attachment.html
More information about the rules-users
mailing list