Justine,<br><br>I would not suggest you allow a user to write rules in DRL. Consider creating a DSL or a decision table that they could use.<br><br>regards<br>Steve<br><br><div><span class="gmail_quote">On 2/9/07, <b class="gmail_sendername">
Justine Hlista</b> <<a href="mailto:justine@vsasset.com">justine@vsasset.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yay!! I was just looking into moving on to the trunk. Unfortunately we have a code freeze tomorrow, so it might have to wait a few days.<br><br>Yes, apparently I made a typo when I typed in the example (trying to simplify it, argh!). And while I said it was sensitive to whitespace, the whitespace I actually meant was a line break. Here is the actual rule, which will compile without a line break in the predicate. However, if I insert a line break at the &&, it throws:
<br><br>rule "snapshot"<br>no-loop true<br> when<br> snap : Scalper120Values(id:uniqueId,<br> shares:sharesFilled,<br> buy:buyShares,<br> sell:sellShares ->((shares.intValue
() < (1/780) * (
buy.intValue() + sell.intValue()))&&((buy.intValue() + sell.intValue()) > 500000)));<br> then<br> System.out.println("blah");<br>end<div><span class="e" id="q_110a342db92c4afe_1"><br><br><br>
<div><span class="gmail_quote">On 2/8/07, <b class="gmail_sendername">
Edson Tirelli</b> <<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Justine,<br><br> It shouldn't be space sensitive. Where are you inserting the space<br>that is giving you the error? I see your line bellow is missing a ')' in<br>the end, but maybe it was a mistake when you wrote the e-mail... so,
<br>could you please clarify?<br><br> In trunk the syntax was simplified to almost what you asked for. In<br>trunk you can write:<br><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>Steven Williams<br><br>Supervising Consultant<br><br>Object Consulting<br>Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br><a href="mailto:stevenw@objectconsulting.com.au">stevenw@objectconsulting.com.au
</a><br><a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>consulting | development | training | support<br>our experience makes the difference