servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r670729 - /servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
Date Mon, 23 Jun 2008 20:13:25 GMT
Author: gertv
Date: Mon Jun 23 13:13:24 2008
New Revision: 670729

URL: http://svn.apache.org/viewvc?rev=670729&view=rev
Log:
Fixing the credit-agency.drl file to match the new version of Drools

Modified:
    servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl

Modified: servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl?rev=670729&r1=670728&r2=670729&view=diff
==============================================================================
--- servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
(original)
+++ servicemix/smx3/trunk/samples/loan-broker/loan-broker-drools-su/src/main/resources/credit-agency.drl
Mon Jun 23 13:13:24 2008
@@ -24,7 +24,7 @@
 
 rule UnkownOperation
 	when
-		me : Exchange( status == Exchange.ACTIVE, in : in != null,
+		me : Exchange( status == Exchange.ACTIVE, $in : in != null,
 					   operation != "{urn:logicblaze:soa:creditagency}getCreditHistoryLength", 
 		               operation != "{urn:logicblaze:soa:creditagency}getCreditScore" )
 	then
@@ -34,8 +34,8 @@
 /*
 rule BadSSN
 	when
-		me : Exchange( status == Exchange.ACTIVE, in : in != null )
-		eval( in.xpath("/*:ssn/text() <= 0") )
+		me : Exchange( status == Exchange.ACTIVE, $in : in != null )
+		eval( $in.xpath("/*:ssn/text() <= 0") )
 	then
 		jbi.fault("<InvalidSSN xmlns='urn:logicblaze:soa:creditagency'><ssn>" + x +
</ssn></InvalidSSN>");
 end
@@ -43,7 +43,7 @@
 
 rule CreditHistory
 	when
-		me : Exchange( status == Exchange.ACTIVE, in : in != null,
+		me : Exchange( status == Exchange.ACTIVE, $in : in != null,
 					   operation == "{urn:logicblaze:soa:creditagency}getCreditHistoryLength" )
 	then
 		jbi.answer("<getCreditHistoryLengthResponse xmlns='urn:logicblaze:soa:creditagency'><length>"
+ 100 + "</length></getCreditHistoryLengthResponse>");
@@ -51,7 +51,7 @@
 
 rule CreditScore
 	when
-		me : Exchange( status == Exchange.ACTIVE, in : in != null,
+		me : Exchange( status == Exchange.ACTIVE, $in : in != null,
 		               operation == "{urn:logicblaze:soa:creditagency}getCreditScore" )
 	then
 		jbi.answer("<getCreditScoreResponse xmlns='urn:logicblaze:soa:creditagency'><score>"
+ 1000 + "</score></getCreditScoreResponse>");



Mime
View raw message