[rules-users] Not able to detect how to correct ERR 102

Maxime Falaize maxime.falaize at gmail.com
Fri Mar 21 09:22:53 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140321/26b143d0/attachment-0001.html 


More information about the rules-users mailing list