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(a)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-1...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Maxime FALAIZE