Assign a variable to bind to your fact on the LHS of your rule. Then a new menu option will show up in the RHS part of the rule allowing you to set an attribute on your bound fact.

   []s
   Edson


2008/1/2, Rahul Upadhyay <email2upadhyay@gmail.com>:

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.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com