Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread Michael Anstis
It was added in 5.4.0. Nothing equivalent exists in 5.3.

http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/releaseNotes.html#releaseNotes_5.4.0_Guvnor

On 17 October 2012 13:24, ayonchak  wrote:

> Hi Mike,
>
> Thanks for your reply.
>
> I am using Drools 5.3 ..Is there anything like that in this version? Or I
> need to upgrade to 5.4 version?
>
> Ayon
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324p4020326.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread ayonchak
Hi Mike,

Thanks for your reply.

I am using Drools 5.3 ..Is there anything like that in this version? Or I
need to upgrade to 5.4 version?

Ayon



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324p4020326.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to Use functions in Web-Guided Editor

2012-10-17 Thread Michael Anstis
What version of Guvnor are you using? It sounds very old.

In Guvnor 5.4.0 you can add a "BRL Fragment" column to the web-guided
decision table.

Using this column type you can define an Action that can be free-format DRL
and contain template keys (e.g. $1, $2, $3).

Your code block could then be used verbatim.

On 17 October 2012 12:21, ayonchak  wrote:

> Hi All,
>
> I am facing some problem when migrating from excel-based drools to Drools
> Guvnor. Suppose we are using some function in the Conditions and Actions of
> excel. But how to write them in Guvnor as in Guvnor I can only get the
> value
> of the condition and set the value of the variable in action. Then I can
> manipulate the value in code. But is there any option of doing that in
> Rule?
>
> Like I am using this in an action of excel based Drools -
>
> long mnthlyBnft=$1*1L;
> if(planRule.getMonthlyBnftList().size() == 0)
>   {
>  do
> {
>  planRule.getMonthlyBnftList().add(mnthlyBnft);
>  mnthlyBnft = mnthlyBnft + $3;
> }while(mnthlyBnft<=$2);
> }
>
> In the values I am giving 3 comma-separated values for $1, $2 and $3.
>
> How to do the same in Guvnor? I saw the new function option in Guvnor but
> didn't find anywhere how to use that in Web-Guide based decision table
> rule.
> Please help me. Thanks!
>
> Ayon
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users