<br>&nbsp;&nbsp; Let me think... since we gave you the answer to your question already, and after that you came back with an excellent description of the problem (&quot;it is not working&quot;), not to mention your apparent will of investigating further, looking at the logs, docs, archives, etc, I do have a few suggestions:<br>
<br>* did you checked if there are any gnomes around your computer? They are probably sabotaging you...<br>* is your computer in the same room as your microwave? there may be interference...<br>* did you tried that on a sunny day? on rainy days you never know...<br>
<br>&nbsp;&nbsp; Well, if nothing of the above works, you may try buying training, development support or consultancy. In any of these cases I am sure the professionals, having access to your logs and test environment may either teach you or do it for you (for the right price, of course).<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2009/1/19 Ashish Soni <span dir="ltr">&lt;<a href="mailto:ashish.usoni@gmail.com">ashish.usoni@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I tried the suggestion of keeping reference of the object&nbsp; but it is not working , Please let me know if there is way to do that.<br><br>Regards,<br><font color="#888888">Ashish</font><div><div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Sun, Jan 18, 2009 at 2:47 PM, Edson Tirelli <span dir="ltr">&lt;<a href="mailto:tirelli@post.com" target="_blank">tirelli@post.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&nbsp;&nbsp;&nbsp; 6 days ago we had this very same question and a thread discussing the options:<br><br>

<a href="http://lists.jboss.org/pipermail/rules-users/2009-January/007529.html" target="_blank">http://lists.jboss.org/pipermail/rules-users/2009-January/007529.html</a><br>
<br>&nbsp;&nbsp; Please use the mail list archive.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2009/1/18 Ashish Soni <span dir="ltr">&lt;<a href="mailto:ashish.usoni@gmail.com" target="_blank">ashish.usoni@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Hi Mark , <br>I am evaluating Drools BRMS for our upcoming projects and have below questions it would be great if you can help ..<br>


I have created a rules package using BRMS and then trying to execute rules using below code can you please let me know how i can see the modified object back.<br>
<br>The Rules is very simple as if the name of the customer is &quot;Ashish&#39; then set the phone to some value as given in the rule . <br><br><br>public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Properties properties = new Properties();<br>



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; properties.load(new FileInputStream(&quot;C:\\Dev\\MyTest\\src\\com\\mytest\\MyRules.properties&quot;));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (IOException e) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleAgent ruleAgent = RuleAgent.newRuleAgent(properties);<br>



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleBase rb = ruleAgent.getRuleBase(); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StatefulSession session = rb.newStatefulSession();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.addEventListener( new DebugAgendaEventListener() );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.addEventListener( new DebugWorkingMemoryEventListener() );<br>



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger( session );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Customer customer = new Customer();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; customer.setName(&quot;Ashish&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.setFileName( &quot;C:\\Dev\\MyTest\\src\\com\\mytest\\helloworld.txt&quot; );<br>



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.insert(customer);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.fireAllRules();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; logger.writeToDisk();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.dispose();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br>Properties File <br><br>newInstance=true<br>url=<a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/AshwinPKG/AshwinSnap" target="_blank">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/AshwinPKG/AshwinSnap</a><br>



poll=30<br>name=MyConfig<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br>Regards,<br><font color="#888888">Ashish soni<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
</font><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><font color="#888888"><br><br clear="all"></font></blockquote></div></div></div></blockquote></div><br>