Yes, agreed.

Please raise a JIRA, https://issues.jboss.org/browse/GUVNOR, and assign to me.

Thanks,

Mike

2011/11/15 Vincent LEGENDRE <vincent.legendre@eurodecision.com>
Hi,
As said in the subject mixing formula and field constraint in same pattern makes the guided editor crash.

I had rules in 5.2, which was using such constructions, ie normal constraint for normal tests, and sometime a formula (which transform into in-pattern "eval(...)")
These rules cannot be opened by guvnor 5.3, but compiles.
When trying to rewrite the same rule in 5.3, everything is well until I add a "formula" constraint in a Pattern already having a "normal" constraint (or a normal after a formula).
If I let only one test type, all is fine.
Otherwise, the current condition becomes empty, the action part disappears, and there is no error message in logs....

It seems like a bug to me. Agreed ?

I could add my "eval" outside the pattern, but I also use such constructs in some accumulate patterns ... and I don't have any solution for them (except writing all that stuff directly in DRL format ...).

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users