<br> Markus, did you tried:<br><br>[consequence][]write {value} to stdout=System.out.println({value});<br><br> With the line:<br><br>write $item.getMessage() to stdout<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">
2007/11/7, Markus Helbig <<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>following example:<br><br>Item Class:<br><br>public class MyItem {<br><br> public MyItem() {}<br><br> public String getMessage()<br> {<br> return "Hello World!";<br> }<br>
<br>}<br><br>DSL:<br><br>[condition][]is of type MyItem=MyItem()<br>[consequence][]write "{value}" to stdout=System.out.println("{value}");<br><br>DSRL File:<br><br>rule<br> when<br> $item: is of type MyItem
<br> then<br> write $item.getMessage() to stdout<br>end<br><br>Is this "write $item.getMessage() to stdout" possible in any way?<br>Currently i'm not able to get it to work ...<br><br>Cheers<br>
<br>Markus<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">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646
<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>