<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Felipe Piccolini wrote:
<blockquote cite="mid:B43292C9-7748-491D-846C-76F27F08C645@bluesoft.cl"
type="cite">Using the GUI editor for rules is a nice way to make
rules, however the editor put restrictions on what u can fill on the
textfields
<div>for a type of attribute, ie. if I have a Double attribute
(approvedMount) in a bean (Person) I cant make the update of this field
based on</div>
<div>another field ... what I wanna do (and cant on BRMS GUI) is:</div>
<div><br class="khtml-block-placeholder">
</div>
<div style="margin: 0px;"><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">rule</span></font><font
class="Apple-style-span" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;"> </span></font><font
class="Apple-style-span" color="#008000" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;">"Set approvedMount
for a women"</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">no-loop</span></font><font
class="Apple-style-span" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;"> </span></font><font
class="Apple-style-span" color="#960000" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;">true</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">when</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">$p: Person($sex: sex == </span></font><font
class="Apple-style-span" color="#008000" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;">"F"</span></font><font
class="Apple-style-span" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;">, $income:
incomeMount)</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">then</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">$p.setApprovedMount($income * 1.2);</span></font></div>
<div style="margin: 0px;"><span class="Apple-tab-span"
style="white-space: pre;"> </span><span class="Apple-tab-span"
style="white-space: pre;"> </span><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">update</span></font><font
class="Apple-style-span" face="Monaco" size="3"><span
class="Apple-style-span" style="font-size: 11px;">($p);</span></font></div>
<div style="margin: 0px;"><font class="Apple-style-span"
color="#960000" face="Monaco" size="3"><span class="Apple-style-span"
style="font-size: 11px;">end</span></font></div>
<div><br class="khtml-block-placeholder">
</div>
<div>Where my Person class has incomeMount and approvedMount as
Double.</div>
<div><br class="khtml-block-placeholder">
</div>
<div>BRMS GUI only let me put 1.2 but no words to refer the $income
variable.</div>
<div><br class="khtml-block-placeholder">
</div>
<div>What can I do?... where will be this possible?... it is quite
useless if I cant do what I want, because it force me to rebuild the
bean</div>
</blockquote>
Yes all the work we do is totally useless. did you try specifying a
formula?<br>
<blockquote cite="mid:B43292C9-7748-491D-846C-76F27F08C645@bluesoft.cl"
type="cite">
<div>to have fields names like "approvedMountIncresedBasedOnIncome"
and make a formula inside the setter, which is exactly the code</div>
<div>I wanna put on rules, because is the bussines logic.<br>
<div> <span class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;">
<div><span class="Apple-style-span"
style="text-decoration: underline;"><span class="Apple-style-span"
style="">
</span></span>
<div><font class="Apple-style-span" size="3"><span
class="Apple-style-span" style="font-size: 13px;"><b
style="font-size: 13px; font-weight: bold;"><span
class="Apple-style-span" style="font-size: 13px; font-weight: bold;">Felipe
Piccolini M.</span></b></span></font></div>
<div><a moz-do-not-send="true"
href="mailto:felipe.piccolini@bluesoft.cl"><span
class="Apple-style-span" style="color: rgb(0, 0, 238);">felipe.piccolini@bluesoft.cl</span></a></div>
<br class="khtml-block-placeholder">
</div>
<div><br class="khtml-block-placeholder">
</div>
<br class="Apple-interchange-newline">
</span> </div>
<br>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>