<br> <br> 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.<br><br> []s<br> Edson<br>
<br><br><div><span class="gmail_quote">2008/1/2, Rahul Upadhyay <<a href="mailto:email2upadhyay@gmail.com">email2upadhyay@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi<br><br>I have written a struts application, I write rule through BRMS (using<br>guided editor ) . here in then (RHS) part It always create new object of my<br>class and then set the value and I want to set the value in my object so
<br>that can be visiable.<br><br>My rule file is following below<br><br>rule "password"<br> dialect "mvel"<br> when<br> A1RegistrationForm( passwd1 == ( passwd2 ) )<br> then
<br> A1RegistrationForm fact0 = new A1RegistrationForm();<br> fact0.setMessage( "password is matched" );<br> insert( fact0 );<br>end<br><br>...........................................
<br> I want to setMessage in myobject which is declared in my struts<br>application, instead of fact0 object in then part.<br><br>Please reply<br><br>Thanks in advance<br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/how-to-get-value-form-rule-tp14575238p14575238.html">
http://www.nabble.com/how-to-get-value-form-rule-tp14575238p14575238.html</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>