<br>&nbsp;&nbsp; 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>&nbsp;&nbsp; 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>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/7/16, Dean Jones &lt;<a href="mailto:dean.m.jones@gmail.com">dean.m.jones@gmail.com</a>&gt;:</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&#39;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 &lt;<a href="mailto:bofh@redwerk.com">bofh@redwerk.com</a>&gt; wrote:<br>&gt; Hello!<br>&gt;<br>&gt; We are about to develop an application where customers are responsible to
<br>&gt; create various rules and define actions. There are a dictionary of available<br>&gt; conditions applied to objects as well as set of predefined actions.<br>&gt;<br>&gt; For now&nbsp;&nbsp;we know there is a DRL, which is parsed and certain actions are
<br>&gt; executed, but we think the way<br>&gt;<br>&gt; our custom objects -&gt; generate DRL -&gt; parse DRL by Drools -&gt; inject rules objects<br>&gt;<br>&gt; is a bit redundant, in such way we need to create additional layer to generate
<br>&gt; something which is to be parsed then by Drools.<br>&gt;<br>&gt; We would like to avoid such complexity, if possible.<br>&gt;<br>&gt; Is it possible to create our own objects which will act as rules for Drools<br>
&gt; framework, so we can implement some interfaces/inherit some abstract classes<br>&gt; and inject our custom logic/objects there?<br>&gt;<br>&gt; Thank you in advance!<br>&gt;<br>&gt; --<br>&gt; Eugene N Dzhurinsky<br>
&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer
<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>