[jboss-svn-commits] JBL Code SVN: r20071 - labs/jbossrules/branches/mattgeis/drools-compiler/src/test/resources/org/drools/lang/dsl.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon May 19 20:14:17 EDT 2008


Author: mattgeis
Date: 2008-05-19 20:14:17 -0400 (Mon, 19 May 2008)
New Revision: 20071

Modified:
   labs/jbossrules/branches/mattgeis/drools-compiler/src/test/resources/org/drools/lang/dsl/test_metainfo.dsl
Log:
Modified dsl file to include the now mandatory meta section in the mapping

Modified: labs/jbossrules/branches/mattgeis/drools-compiler/src/test/resources/org/drools/lang/dsl/test_metainfo.dsl
===================================================================
--- labs/jbossrules/branches/mattgeis/drools-compiler/src/test/resources/org/drools/lang/dsl/test_metainfo.dsl	2008-05-20 00:13:47 UTC (rev 20070)
+++ labs/jbossrules/branches/mattgeis/drools-compiler/src/test/resources/org/drools/lang/dsl/test_metainfo.dsl	2008-05-20 00:14:17 UTC (rev 20071)
@@ -1,7 +1,7 @@
 #This is a sample DSL for a ficticous E-Commerce website that is building a recommendation engine
 [keyword][*]regra {atributos} faça {rhs} se {lhs} fim=rule {atributos} \\n when\\n    {lhs}\\n then\\n    {rhs}\\n end
 [keyword][*]consulta=query
-[keyword]fim=end
+[keyword][]fim=end
 [when][woolfel.ecommerce.model.Customer]the Customer=cust : Customer()
 [when][woolfel.ecommerce.model.Customer]- has an email=emailAddress != null
 [when][woolfel.ecommerce.model.Customer]- first name is "{first}"=first == "{first}"
@@ -26,7 +26,7 @@
 [when][woolfel.ecommerce.model.Order]- has more than {items}=cartItems > {items}
 [when][woolfel.ecommerce.model.Order]- has coupons=coupons != null
 [then][woolfel.ecommerce.model.Recommendation]return the recommendation=resp.setRecommendation(recm);
-[then]Log "{msg}"=System.out.println("{msg}");
-[when]but not=not
+[then][]Log "{msg}"=System.out.println("{msg}");
+[when][]but not=not
 [when][woolfel.ecommerce.model.Customer]- last name is not "{surname}"=surname != "{surname}"
 [then][*]Show last name=System.out.println(cust.getSurname());




More information about the jboss-svn-commits mailing list