I suggest you to start simple.<div>Just create a java project add the drools dependencies (knowledge-api, drools-core and drools-compiler), define your POJO classes that will represent your Domain model, for example: Product, Discount, Category, etc and then you can start writing your rules. When you get a set of rules ready you can use the drools APIs to create your knowledge session that will allow you to insert facts and evaluate them with your defined rules. You can check the documentation page for more information on how to do that or you can also check out the examples located here:</div>

<div><br></div><div><a href="https://github.com/Salaboy/Drools_jBPM5-Training-Examples/tree/master/drools5">https://github.com/Salaboy/Drools_jBPM5-Training-Examples/tree/master/drools5</a></div><div><br></div><div>That shows how to create simple maven java projects that contains a set of rules to evaluate very simple scenarios.</div>

<div><br></div><div>Cheers<br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 3:16 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;">

My requirement is if i select the product type mobile, or dth, or some other<br>
,<br>
then i will check one more rule if customer credit total is above 1000 etc..<br>
then i want create a new fact or field . and on that field i want to keep<br>
rule and give some discount constraint as new rule<br>
<br>
I am new to drools please help me i have some problem,<br>
<br>
After creating a pojo class jar, uploads into guvnor , and write rules on<br>
that, how can we add new fact at runtime dynamically , where does it comes<br>
in guvnor to write rule on new facts generated dynamically.<br>
plz can give some brush up on this.<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-tp3495811p3495891.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-tp3495811p3495891.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>