[rules-dev] plz send one rule invocation in java

sanjeev sanjeev.dhadigoudar at gmail.com
Tue Feb 13 05:30:27 EST 2007


Dear sir,
 
 Iam sanjeev,iam working in software company,but there nobody is there to help 
me,so iam requesting you to write down one java code that iam sending you the 
rule in drools-2.0,sir plz iam requesting once again to you,plz send me one 
java code for this rule.

the rule look like this


/*PRODUCTION DEMAND TEST */

<?xml version="1.0" encoding="UTF-8"?>
<rule-set
	name="JavaRules.org Test Agent Drools Port"
	description="AIS Rule"
	xmlns="http://drools.org/rules"
	xmlns:java="http://drools.org/semantics/java"
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
		xs:schemaLocation="http://drools.org/rules rules.xsd
			http://drools.org/semantics/java java.xsd">

	<rule name="pdTest">
		<parameter identifier="AreaAdded">
			<class>java.lang.Integer</class>
		</parameter>
		<parameter identifier="Prop_Area">
			<class>java.lang.Integer</class>
		</parameter>
		<java:condition>
			AreaAdded <= Prop_Area 
		</java:condition>
		<java:consequence>
			drools.assertObject("PASS");
		</java:consequence>
	</rule>
</rule-set>


Waiting for your reply as early as possible,it's good for me within two days



Thanks and regards 

sanjeev




More information about the rules-dev mailing list