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 <justine(a)vsasset.com> 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 <tirelli(a)post.com> 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
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Steven Williams
Supervising Consultant
Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
stevenw(a)objectconsulting.com.au
www.objectconsulting.com.au
consulting | development | training | support
our experience makes the difference