Hi there,<div>can you elaborate a little bit more on what are you trying to achieve.</div><div>It&#39;s almost impossible to help with that generic description.</div><div><br></div><div>You can write rules on your products that create and insert new facts pretty easily</div>

<div><br></div><div>Rule &quot;categorize product&quot;</div><div>  no-loop</div><div>  when</div><div>     $p:Product(name == &quot;Product1&quot;)</div><div>  then</div><div>     $p.setCategory(&quot;category1&quot;);</div>

<div>     update($p);</div><div>end</div><div><br></div><div>This rule will enrich your original product with a category depending on the product name. Are you looking to something similar to this?</div><div><br></div><div>

Cheers<br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 2:05 AM, srinivasasanda <span dir="ltr">&lt;<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello<br>
     I have a problem  please any one help me<br>
     i have a field product type depending on product type i want to create<br>
new field or property or fact, and on the new field i want to give rules...<br>
   please send me some example or link to lean and practice<br>
   if we dynamically invoke the fact or add a property will it shows a<br>
pattern which is declaring that the rule is   looking for a that fact .<br>
<br>
In advance thanks if any one help ... thanks a lot ..<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-dynamically-invoke-a-field-or-property-into-a-fact-and-set-rule-on-that-field-or-property-tp3495811p3495811.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-dynamically-invoke-a-field-or-property-into-a-fact-and-set-rule-on-that-field-or-property-tp3495811p3495811.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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div>

 - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div>

<br>
</div>