Justine,

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.

regards
Steve

On 2/9/07, Justine Hlista <[EMAIL PROTECTED]> wrote:

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.

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:

rule "snapshot"
no-loop true
    when
        snap : Scalper120Values(id:uniqueId,
         shares:sharesFilled,
         buy:buyShares,
         sell:sellShares ->((shares.intValue() < (1/780) * ( buy.intValue()
+ sell.intValue()))&&((buy.intValue() + sell.intValue()) > 500000)));
    then
        System.out.println("blah");
end


On 2/8/07, Edson Tirelli <[EMAIL PROTECTED]> wrote:
>
>
>    Justine,
>
>    It shouldn't be space sensitive. Where are you inserting the space
> that is giving you the error? I see your line bellow is missing a ')' in
> the end, but maybe it was a mistake when you wrote the e-mail... so,
> could you please clarify?
>
>    In trunk the syntax was simplified to almost what you asked for. In
> trunk you can write:
>
>

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users




--
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
[EMAIL PROTECTED]
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to