[jboss-svn-commits] JBL Code SVN: r18629 - labs/jbossrules/branches/uncertainDrools/uncDocs.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Feb 28 19:27:52 EST 2008


Author: dsotty
Date: 2008-02-28 19:27:52 -0500 (Thu, 28 Feb 2008)
New Revision: 18629

Added:
   labs/jbossrules/branches/uncertainDrools/uncDocs/TestUnc.drl
Log:


Added: labs/jbossrules/branches/uncertainDrools/uncDocs/TestUnc.drl
===================================================================
--- labs/jbossrules/branches/uncertainDrools/uncDocs/TestUnc.drl	                        (rev 0)
+++ labs/jbossrules/branches/uncertainDrools/uncDocs/TestUnc.drl	2008-02-29 00:27:52 UTC (rev 18629)
@@ -0,0 +1,30 @@
+#created on: 29-gen-2008
+package com.sample
+
+#list any import classes here.
+import uncertainty.truthvals.Degree;
+import com.sample.DroolsTest2.Person;
+
+
+#declare any global variables here
+
+rule "Welfare"	
+	dialect "java"
+	when 
+		p : Person(age == 30 , wealth == 100)
+		q : Person(age == 100)
+		r : Person(wealth == 50)
+	then 
+		insertLogical( new String(p.getName()+" is happy" ) );
+			
+end
+
+
+rule "Echo"
+	dialect "java"	
+	when
+		s : String()
+	then		
+		System.out.println("Echo effect " + s);
+end	
+		


Property changes on: labs/jbossrules/branches/uncertainDrools/uncDocs/TestUnc.drl
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-svn-commits mailing list