[rules-users] DSL - new line problem

Michael Neale michael.neale at gmail.com
Wed Jan 24 06:01:11 EST 2007


no you can't span lines. The resulting expansion can span lines though. Just
not a single expression.

On 1/24/07, Nirmal.R <rgbnirmal at yahoo.com> wrote:
>
>
> Hi,
>
> I've create the following rule using dsl
>
> rule
> when
>                 load map and result
>                 Variable "prov" as Integer less than or equal to Variable
> "os" as Integer
> * 20/100 AND (Variable "eliCol" as Integer + Variable "inEliCol" as
> Integer
> less than or equal to Variable "os" as Integer
>         then
>
>                 assign 150 to result
>                 display risk weight
> end
>
>
>
> Here
>
> I'm not able to specify the domain specific sentence in multiple lines. I
> get the following error whenever i write in multiple lines. Tell me some
> way
> to solve it
>
> org.drools.rule.InvalidRulePackage: unknown:20:90 mismatched token:
> [@99,464:465='\r\n',<4>,20:90]; expecting type ')'
>
> unknown:22:43 mismatched token: [@151,596:596=')',<25>,22:43]; expecting
> type EOL
>
> unknown:20:9 Unexpected token ')'
>
> unknown:21:9 Unexpected token ')'
>
>
>
> --
> View this message in context:
> http://www.nabble.com/DSL---new-line-problem-tf3080075.html#a8557582
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070124/7482fc13/attachment.html 


More information about the rules-users mailing list