Why do you insert &quot;application&quot; and &quot;p&quot; in different sessions?<br><br><div class="gmail_quote">On 16 January 2012 13:08, 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">After your suggestion here is my code,<br>
<div class="im">                RuleAgent agent = RuleAgent.newRuleAgent(&quot;/Guvnor.properties&quot;);<br>
                RuleBase rb = agent.getRuleBase();<br>
<br>
</div>                FactType appType = rb.getFactType(&quot;personDetailss.Personn&quot;);<br>
<div class="im">        Object application = appType.newInstance();<br>
        appType.set(application, &quot;age&quot;, 40);<br>
                rb.newStatelessSession().execute(new Object[] {application});<br>
WorkingMemory wm=rb.newStatefulSession();<br>
</div>PersonDetails p=new PersonDetails();<br>
wm.insert(p);<br>
wm.fireAllRules();<br>
                System.out.println(application);<br>
<br>
MY BRL is rule &quot;myrule1&quot;<br>
2.      |           dialect &quot;mvel&quot;<br>
3.      |           when<br>
<div class="im">4.      |             PersonDetails( a : age &gt; 0 )<br>
5.      |               Personn( age == a )<br>
6.      |           then<br>
</div>7.      |              System.out.println(&quot;Welcome to drools);<br>
10.     |       end<br>
<br>
<br>
Even both are 40,Im unable to get output.Please help me<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Calling-POJO-class-get-Method-in-BRL-tp3662420p3663129.html" target="_blank">http://drools.46999.n3.nabble.com/Calling-POJO-class-get-Method-in-BRL-tp3662420p3663129.html</a><br>

</font></span><div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br>