OK, so you use this as a DSL definition. Where is the problem?<br>-W<br><br><div class="gmail_quote">On 9 August 2012 16:22, san_drools <span dir="ltr">&lt;<a href="mailto:pathasantosh@yahoo.co.in" target="_blank">pathasantosh@yahoo.co.in</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Laune,<br>
                 Yes, the Object and attribute names are meaningful but in<br>
our case they are a bit lengthy and wanted to give rule author more<br>
convinience in writing rules.<br>
<br>
                For example, when we need to write Object1($contactNo :<br>
contactNumber &amp;&amp; contacttype == &quot;mobile&quot;) to get contact number and use it<br>
further in rule, we will give a keyword &quot;PersonMobileContact&quot; to represent<br>
the above line. So that, rule author simply uses this keyword. This is i<br>
want in my requirement.<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-tp4019065p4019068.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-tp4019065p4019068.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></div><br>