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.fala...@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 <anki...@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 
> 
> -- 
> Maxime FALAIZE
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to