I am afraid you can't do it using one of the UI components: <a href="https://issues.jboss.org/browse/GUVNOR-1435">https://issues.jboss.org/browse/GUVNOR-1435</a><br><br>You should however be able to add a free-form DRL section and type the consequence in.<br>
<br><div class="gmail_quote">On 26 January 2012 20:41, vadlam <span dir="ltr"><<a href="mailto:sreeram.vadlamudi@wellsfargo.com">sreeram.vadlamudi@wellsfargo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tried to use the function in a BRL editor in Guvnor.<br>
<br>
In the consequence part how do I correctly call the function?<br>
<br>
when I enter it as<br>
<br>
yn( $status) in the text box for that field in the BRL editor, it takes it<br>
as a string and thus tries to read the whole as a string. when I click on<br>
view source for the BRL rule, it shows it as<br>
<br>
fact0.setField1( "yn( $status)" );<br>
<br>
instead of<br>
<br>
fact0.setField1( yn( $status) );<br>
<br>
How do I correctly specify the function in the BRL text editor for the field<br>
value ?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/setting-different-value-in-consequence-RHS-part-based-on-a-conditional-check-tp3690826p3691544.html" target="_blank">http://drools.46999.n3.nabble.com/setting-different-value-in-consequence-RHS-part-based-on-a-conditional-check-tp3690826p3691544.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>