<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV><BR class="khtml-block-placeholder"></DIV><DIV> Im working in 2 rules and I'm having some problems writing the LHS in a way the final</DIV><DIV>user can understand reading the drl (which uses a dsl expander).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The first rule is something like this:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   Two facts: User and Form.</DIV><DIV>   The rule is something like this: </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>     'If the User is "User1" or "User2" or "User3" then The Form can be approved if the amount of Credit1(defined in the Form)</DIV><DIV>      is less than the User's maximum limit and the amount of Guarantee (another amount of money) is less than User's minum limit"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>  I try to write it in a DSL:</DIV><DIV>     A user the type User1,User2 or User3=u: User(type=User1|=User2|=User3, max: maximumLimit, min: minimumLimit)</DIV><DIV>     A Form for a credit=f : Form(cred: creditAmount, guar: guaranteeAmount)</DIV><DIV>     The Credit amount is less than User's Maximum Limit=cred &lt; max</DIV><DIV>     The Guarantee amount must be less than the User's Minimum Limit=guar &lt; min</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>But it doesn't work, I know it shoudnt work, but How can I write the sentences in a way that can be used all in a rule, but also can be readed separatedly?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>  The other rule I need help is something like this:</DIV><DIV>    Having a List with some objects (lets say Credit is the object with name, value and period as attributes)</DIV><DIV>  </DIV><DIV>      "The List only contains Credits of this types: {Credit(type=1,period=36, value=80) or Credit(type=2,period=48,value=100) or ... etc, etc)"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   How can I write  the LHS of something like this if the fact is the List of Credits?      </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   I have Edson's words in my mind all the time: "eval is EVIL"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So the question is how can I do this without eval and using DSL templates</DIV><DIV>so the templates can be readed properly from a human been?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for your help.<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>