Hi ,<br>I have created a rules package using BRMS and then trying to execute rules using below code can some one please let me know how i can see the modified object back.<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<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></blockquote></div><br>