[rules-users] Bug in Guvnor?
Toni Rikkola
trikkola at redhat.com
Tue Apr 7 03:32:21 EDT 2009
Hi,
Looks like this has been fixed. The sample works with the trunk codes,
but did fail when I tested with CR1.
Thank you for reporting.
Toni Rikkola
hpost wrote:
> Hi. I didn't see this in Jira, and it is very reproducible for me. I am
> using 5.0CR1, and trying to work completely in Guvnor. I create a simple
> Model, add a Business Rule and a Test Scenario, and all works fine. As soon
> as I add a function, the Test Scenarios no longer work. If I delete the
> function, the Test Scenario starts working again. Here is a simple sample.
>
> package TestPkg
>
> declare TestFact
> name: String
> age: Integer
> end
>
> function int testFunc() {
>
> return 2;
> }
>
> rule "TestRule"
> dialect "mvel"
> when
> $testFact : TestFact( name == "Bill" )
> then
> $testFact.setAge( 3 );
> end
>
>
> I'm not even calling the function - just its presence causes Test Scenarios
> to fail.
>
> Thanks,
>
> Herman Post
>
>
More information about the rules-users
mailing list