[rules-users] Not able to detect how to correct ERR 102
Stephen Masters
stephen.masters at me.com
Fri Mar 21 09:28:39 EDT 2014
Not sure whether you reformatted the DSL for the mailing list, but it’s worth pointing out that each phrase defined in the DSL needs to be on a single line.
This may have changed in a newer version of Drools (my DSL runs in 5.3), but DSL hasn’t been given much attention for a while, so I suspect not.
Steve
On 21 Mar 2014, at 13:22, Maxime Falaize <maxime.falaize at gmail.com> wrote:
> Try with this :
>
> rule "hello rule"
> when
> There is a Customer with first name "David"
> then
> Greet Customer
> end
>
> and this DSL :
>
> ----------------------------------------------------------------------------------------------------
> [condition][]There is a Customer with first name {name}=$customer :
> Customer(firstName == {name})
> [consequence][]Greet Customer=System.out.println("Hello " +
> $customer.getFirstName());
> -----------------------------------------------------------------------------------------------------
>
>
> Of course your DSLR file is dependent of the DSL. Without the DSL, Drools cannot guess what you want to do.
>
>
> 2014-03-21 14:12 GMT+01:00 ankit3j <ankit3j at gmail.com>:
> Contents of Sample.dsl
> ----------------------------------------------------------------------------------------------------
> [condition][]There is a Customer with first name "{name}"=$customer :
> Customer(firstName == {name})
> [consequence][]Greet Customer=System.out.println("Hello " +
> $customer.getFirstName());
> -----------------------------------------------------------------------------------------------------
>
> Personally, I don't think its dependent on DSL contents as I have not yet
> compiled anything. From my point of view, my DSLR file is still independent
> of whatever DSL I am using.
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028888.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> --
> Maxime FALAIZE
> _______________________________________________
> 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/20140321/29418b0d/attachment.html
More information about the rules-users
mailing list