<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; 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>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br>
<br><br><div><span class="gmail_quote">2008/1/2, Rahul Upadhyay &lt;<a href="mailto:email2upadhyay@gmail.com">email2upadhyay@gmail.com</a>&gt;:</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,&nbsp;&nbsp;I write&nbsp;&nbsp;rule through BRMS (using<br>guided editor ) .&nbsp;&nbsp;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 &quot;password&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dialect &quot;mvel&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A1RegistrationForm( passwd1 == ( passwd2 ) )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A1RegistrationForm fact0 = new A1RegistrationForm();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fact0.setMessage( &quot;password is matched&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>