<div>    Hehe, ok, you convinced me Greg! ;)</div><div><br></div><div><a href="https://jira.jboss.org/browse/JBRULES-2652">https://jira.jboss.org/browse/JBRULES-2652</a></div><div><br></div><div>    Edson</div><br><div class="gmail_quote">
2010/8/9 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>+1 on the full constructor.<br><font color="#888888"><br>GreG</font></div><div><div></div><div class="h5"><div><br>On Aug 9, 2010, at 3:58 PM, Edson Tirelli &lt;<a href="mailto:tirelli@post.com" target="_blank">tirelli@post.com</a>&gt; wrote:<br>
<br></div><div></div><blockquote type="cite"><div>    I thought about adding that, but I feel like we would just be reimplementing java, in this case. So, if you need anything else other than simple java beans, you should implement it as a java class.<div>
<br></div><div>    Regarding the constructor, I might still add a constructor that receives all fields as parameters, just to reduce verbosity when using the java dialect, but if you are using mvel dialect, you can use &quot;with&quot;:</div>

<div><br></div><div>rule ...</div><div>when ...</div><div>then</div><div>    with( person = new Person() ) {</div><div>         name = &quot;Bob&quot;,</div><div>         age = 35</div><div>    }</div><div>    insert( person );</div>

<div>end</div><div>  </div><div>    Edson</div><div><div><br><div class="gmail_quote">2010/8/9 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de" target="_blank"></a><a href="mailto:tviessmann@stud.hs-bremen.de" target="_blank">tviessmann@stud.hs-bremen.de</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
is it possible to define a function/constructor inside a fact type<br>
declaration? If yes, how can it be done?<br>
<br>
Thank you :)<br>
Tina<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank"></a><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"></a><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><br clear="all"></div></div></div></blockquote></div></div></div><br></blockquote></div>