<br> Hi Ashish,<br><br> Glad you figured out.<br><br> You got me on a bad mood day (Monday morning, worked through the weekend), sorry for the harsh e-mail.<br><br> To get faster and better answer from the list users, it is important to do the homework and provide information on your e-mail that allow people to understand the problem/error and even better, if possible, reproduce the problem. While your first e-mail contained such information, the second one didn't helped at all. Otherwise, only through divination someone will be able to help. :)<br>
<br> Regards,<br> Edson<br><br> <br><div class="gmail_quote">2009/1/22 learndrools <span dir="ltr"><<a href="mailto:learnspring@gmail.com">learnspring@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Edson ,<br>
<br>
I apologies as i did a small mistake , now it is working fine.<br>
<br>
Regards,<br>
Ashish<br>
<br>
Edson Tirelli-3 wrote:<br>
><br>
> Let me think... since we gave you the answer to your question already,<br>
> and after that you came back with an excellent description of the problem<br>
> ("it is not working"), not to mention your apparent will of investigating<br>
> further, looking at the logs, docs, archives, etc, I do have a few<br>
> suggestions:<br>
><br>
> * did you checked if there are any gnomes around your computer? They are<br>
> probably sabotaging you...<br>
> * is your computer in the same room as your microwave? there may be<br>
> interference...<br>
> * did you tried that on a sunny day? on rainy days you never know...<br>
><br>
> Well, if nothing of the above works, you may try buying training,<br>
> development support or consultancy. In any of these cases I am sure the<br>
> professionals, having access to your logs and test environment may either<br>
> teach you or do it for you (for the right price, of course).<br>
><br>
> []s<br>
> Edson<br>
><br>
> 2009/1/19 Ashish Soni <<a href="mailto:ashish.usoni@gmail.com">ashish.usoni@gmail.com</a>><br>
><br>
>> I tried the suggestion of keeping reference of the object but it is not<br>
>> working , Please let me know if there is way to do that.<br>
>><br>
>> Regards,<br>
>> Ashish<br>
>><br>
>><br>
>> On Sun, Jan 18, 2009 at 2:47 PM, Edson Tirelli <<a href="mailto:tirelli@post.com">tirelli@post.com</a>> wrote:<br>
>><br>
>>><br>
>>> 6 days ago we had this very same question and a thread discussing<br>
>>> the<br>
>>> 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>
>>> Please use the mail list archive.<br>
>>><br>
>>> []s<br>
>>> Edson<br>
>>><br>
>>> 2009/1/18 Ashish Soni <<a href="mailto:ashish.usoni@gmail.com">ashish.usoni@gmail.com</a>><br>
>>><br>
>>>> Hi Mark ,<br>
>>>> I am evaluating Drools BRMS for our upcoming projects and have below<br>
>>>> questions it would be great if you can help ..<br>
>>>> I have created a rules package using BRMS and then trying to execute<br>
>>>> rules using below code can you please let me know how i can see the<br>
>>>> modified<br>
>>>> object back.<br>
>>>><br>
>>>> The Rules is very simple as if the name of the customer is "Ashish'<br>
>>>> then<br>
>>>> set the phone to some value as given in the rule .<br>
>>>><br>
>>>><br>
>>>> public static void main(String[] args) {<br>
>>>><br>
>>>> Properties properties = new Properties();<br>
>>>> try {<br>
>>>> properties.load(new<br>
>>>> FileInputStream("C:\\Dev\\MyTest\\src\\com\\mytest\\MyRules.properties"));<br>
>>>> } catch (IOException e) {<br>
>>>> }<br>
>>>><br>
>>>> RuleAgent ruleAgent = RuleAgent.newRuleAgent(properties);<br>
>>>> RuleBase rb = ruleAgent.getRuleBase();<br>
>>>> StatefulSession session = rb.newStatefulSession();<br>
>>>> session.addEventListener( new DebugAgendaEventListener() );<br>
>>>> session.addEventListener( new DebugWorkingMemoryEventListener()<br>
>>>> );<br>
>>>> WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(<br>
>>>> session );<br>
>>>> Customer customer = new Customer();<br>
>>>> customer.setName("Ashish");<br>
>>>> logger.setFileName(<br>
>>>> "C:\\Dev\\MyTest\\src\\com\\mytest\\helloworld.txt" );<br>
>>>> session.insert(customer);<br>
>>>> session.fireAllRules();<br>
>>>><br>
>>>> logger.writeToDisk();<br>
>>>> session.dispose();<br>
>>>><br>
>>>><br>
>>>> Properties File<br>
>>>><br>
>>>> newInstance=true<br>
>>>> url=<br>
>>>> <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>
>>>><br>
>>>><br>
>>>> Regards,<br>
>>>> Ashish soni<br>
>>>><br>
>>>><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>
>>>><br>
>>>><br>
>>><br>
>>><br>
><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>
><br>
><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Regarding-BRMS-tp21531829p21607323.html" target="_blank">http://www.nabble.com/Regarding-BRMS-tp21531829p21607323.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<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></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>