<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Mark, <DIV><BR class="khtml-block-placeholder"></DIV><DIV>  Im sorry, I never try to say the work u did is useless. I think the work is great and I thank u guys for doing this.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The problem I have is that I need to use the GUI the way the business guy write the logic and I cant find the easy way to</DIV><DIV>do this. Maybe is my fault because I dont know how to use the tool, but if you could help me to do this (you say using formulas)</DIV><DIV>I'll be very thankful.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On 02-10-2007, at 18:49, Mark Proctor wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> 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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><SPAN class="Apple-style-span" style="text-decoration: underline;; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="-khtml-text-decorations-in-effect: underline; ">                                                                        </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 href="mailto:felipe.piccolini@bluesoft.cl"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; ">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></BODY></HTML>