<p>If the values are dynamic and the Fact/Field static for a keyword you could consider using a Template or Decision Table, where for example a single column represents a Fact/Field and the user simply provides the values.</p>

<p>I am surprised to read you found DSL had to be defined for every Condition or Action. This is certainly not the case in my experience.</p>
<p>If you meant you had to define a DSL for every Fact/Field combination you require this is to be expected.</p>
<p>Otherwise, &quot;yes&quot; this can only be achieved by changing the code base.</p>
<p>With kind regards,</p>
<p>Mike</p>
<p>sent on the move</p>
<p>On 9 Aug 2012 13:59, &quot;san_drools&quot; &lt;<a href="mailto:pathasantosh@yahoo.co.in">pathasantosh@yahoo.co.in</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
       I need to know how to proceed to define keywords that represent<br>
objects of facts in Drools.<br>
<br>
         In detail, i am  using Guvnor editor to write Business and<br>
technical rules required on a package basis for an application. So, here<br>
writing rules by using Objects and it&#39;s attributes synactically is a tedious<br>
job for client.<br>
         So, the idea is &quot;to provide some keywords to the client where each<br>
keyword represents an object/attribute. By using keywords simply, the client<br>
will write a rule. These keywords shall be processed (may be at compile<br>
time) and the respective object/attribute shall be used/considered in rule<br>
when the rules are fired&quot;<br>
<br>
          To achieve this,<br>
             1. worked with DSL configurations but it fulfilled our idea<br>
partially as every #condition and #action needs to be defined in DSL<br>
configurations to be able to use them in a rule.<br>
             2. Tried working on guvnor sources for it, but couldn&#39;t be able<br>
to do (as i am new to drools; i am a learner)<br>
<br>
        Can any one please suggest the way we can proceed to achieve this<br>
requirement. Is &#39;working on guvnor sources&#39; only the possible way for this?<br>
Or is there any option/feature we can proceed with? Please let me know.<br>
Thanks in advance.<br>
<br>
Regards<br>
San_Drools<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-define-keywords-that-represent-objects-in-facts-to-be-able-to-use-in-rules-tp4019065.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-define-keywords-that-represent-objects-in-facts-to-be-able-to-use-in-rules-tp4019065.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>