Thanks... I have just done some further investigations into the conditions because sometimes it works and sometimes it doesn't.

I suspect that it is something to do with the order that the functions happen to get placed into the package.
If I have a function that calls another function that happens to have been placed into the package before it, then it works. Otherwise it does not.

Unfortunately, I cannot affect the order so I am at the mercy of the Guvnor!

I guess I'll just have to just put them all in one file and then factor them out when I get 5.1.

Chris

On 09/12/2010 17:16, Tihomir Surdilovic wrote:
I think I see the issue you are talking about. In 5.0.2 when declaring multiple functions (where one calls another) the package is not building (compilation errors). In BRMS 5.1 this is no longer the issue. A workaround for you in 5.0.2 looks to be to define all functions in a single function file in Guvnor (uploaded screenshot for you). With this my simple tests run fine.

Hope this helps.
Thanks.


On 12/9/10 11:26 AM, Chris Selwyn wrote:
I am using Drools 5.0.2.

What I didn't mention was that I am constructing my package in Guvnor.. so maybe it's a problem with Guvnor rather than the core.

Chris

On 09/12/2010 16:05, Tihomir Surdilovic wrote:
Hi Chris, can you tell me the supported 5.0.x version you are using and
also show a simple test? I am not able to reproduce with supported bits
5.0.1, 5.0.2, and the very soon to be released brms 5.1 (
http://planet.jboss.org/post/jboss_enterprise_brms_5_1_saves_the_holiday_shopping_season
).

Thanks.
On 12/9/10 10:20 AM, Chris Selwyn wrote:
I don't seem to be able to find how to call one function from another
function in Drools 5.0.
It works just fine in 5.1 but I am having to use 5.0 because my customer
requires me to use a supported version.

Is this a known problem or is there really no way to do it?

Chris Selwyn
_______________________________________________
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


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1170 / Virus Database: 426/3304 - Release Date: 12/08/10




No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1170 / Virus Database: 426/3304 - Release Date: 12/08/10