[rules-users] setting different value in consequence ( RHS part) based on a conditional check

Michael Anstis michael.anstis at gmail.com
Thu Jan 26 16:06:10 EST 2012


I am afraid you can't do it using one of the UI components:
https://issues.jboss.org/browse/GUVNOR-1435

You should however be able to add a free-form DRL section and type the
consequence in.

On 26 January 2012 20:41, vadlam <sreeram.vadlamudi at wellsfargo.com> wrote:

> I tried to use the function in a BRL editor in Guvnor.
>
> In the consequence part how do I correctly call the function?
>
> when I enter it as
>
> yn( $status)  in the text box for that field in the BRL editor, it takes it
> as a string and thus tries to read the whole as a string. when I click on
> view source for the BRL rule, it shows it as
>
> fact0.setField1(  "yn( $status)"  );
>
> instead of
>
> fact0.setField1(  yn( $status)  );
>
> How do I correctly specify the function in the BRL text editor for the
> field
> value ?
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/setting-different-value-in-consequence-RHS-part-based-on-a-conditional-check-tp3690826p3691544.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120126/42a66604/attachment.html 


More information about the rules-users mailing list