Try to print p.getName().<br>-W<br><br><div class="gmail_quote">On 9 March 2012 15:20, seagull <span dir="ltr">&lt;<a href="mailto:g.christabelle@gmail.com" target="_blank">g.christabelle@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">Hi everyone,<br>
<br>
I am new to <a href="http://drools.net" target="_blank">drools.net</a> and I am testing some basic commands but can&#39;t seem<br>
to find help anywhere! I am trying to print the contents of a variable but<br>
for some reason, the contents are not printed! The first line (i.e. hello)<br>
on the other hand is being printed.. Is there a common mistake I may be<br>
doing?<br>
<br>
Thanks!<br>
<br>
rule &quot;testing&quot;<br>
        when<br>
                p: Person (name == &quot;john&quot;)<br>
        then<br>
                Console.WriteLine (&quot;hello&quot;);<br>
                Console.WriteLine (<a href="http://p.name" target="_blank">p.name</a>);<br>
        end<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Help-tp3812782p3812782.html" target="_blank">http://drools.46999.n3.nabble.com/Help-tp3812782p3812782.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>
</blockquote></div><br>