<br> Yes, simplest thing to do is to use the descriptors. There is no documents yet (help welcome), but one can use the DRL/XML dumpers to test if what you are generating is what you want.<br><br> In the end, the way we support multiple languages (DRL, XML, CLP...) is to use the descriptors as an intermediate format, so, any framework/language driver you ends up creating will in the end generate descriptors.
<br><br> []s<br> Edson<br><br><br><div><span class="gmail_quote">2007/7/16, Dean Jones <<a href="mailto:dean.m.jones@gmail.com">dean.m.jones@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Eugeny,<br><br>Not sure if this is the recommended way, but I did something similar<br>using the classes in the org.drools.lang.descr package. You can create<br>a PackageDescr from your custom objects and then call<br>
PackageBuilder.addPackage(PackageDescr) and<br>PackageBuilder.getPackage() to get an org.drools.rule.Package.<br><br>I couldn't find any documentation on the org.drools.lang.descr package<br>(javadoc is pretty minimal as well), but you should be able to work
<br>out what to do, at least for the basic stuff.<br><br>Best wishes,<br><br>Dean.<br><br>On 7/16/07, Eugeny N Dzhurinsky <<a href="mailto:bofh@redwerk.com">bofh@redwerk.com</a>> wrote:<br>> Hello!<br>><br>> We are about to develop an application where customers are responsible to
<br>> create various rules and define actions. There are a dictionary of available<br>> conditions applied to objects as well as set of predefined actions.<br>><br>> For now we know there is a DRL, which is parsed and certain actions are
<br>> executed, but we think the way<br>><br>> our custom objects -> generate DRL -> parse DRL by Drools -> inject rules objects<br>><br>> is a bit redundant, in such way we need to create additional layer to generate
<br>> something which is to be parsed then by Drools.<br>><br>> We would like to avoid such complexity, if possible.<br>><br>> Is it possible to create our own objects which will act as rules for Drools<br>
> framework, so we can implement some interfaces/inherit some abstract classes<br>> and inject our custom logic/objects there?<br>><br>> Thank you in advance!<br>><br>> --<br>> Eugene N Dzhurinsky<br>
> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer
<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>