[rules-users] how to get value form rule

Rahul Upadhyay email2upadhyay at gmail.com
Wed Jan 2 04:04:58 EST 2008


Hi

I have written a struts application,  I write  rule through BRMS (using
guided editor ) .  here in then (RHS) part It always create new object of my
class and then set the value and I want to set the value in my object so
that can be visiable.

My rule file is following below

rule "password"
	dialect "mvel"
	when
		A1RegistrationForm( passwd1 == ( passwd2 ) )
	then
		A1RegistrationForm fact0 = new A1RegistrationForm();
		fact0.setMessage( "password is matched" );
		insert( fact0 );
end

...........................................
 I want to setMessage in myobject which is declared in my struts
application, instead of fact0 object in then part.

Please reply

Thanks in advance


-- 
View this message in context: http://www.nabble.com/how-to-get-value-form-rule-tp14575238p14575238.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list