[rules-users] Potential Bug in Guvnor with usage of "from collection" and "Any of the following are true"

Michael Anstis michael.anstis at gmail.com
Fri Sep 6 15:34:09 EDT 2013


What version of Guvnor are you using?

Can you check with 5.5? I have a vague recollection that this has been
fixed.

If the problem remains in 5.5 please raise a JIRA at
https://issues.jboss.org/browse/GUVNOR


On 6 September 2013 20:07, Sean Su <sean.x.su at gmail.com> wrote:

> I found that the statement generated from "from collection" is not correct
> when it is used in combination with "Any of the following are true"
> feature. There is ">" being generated in frond of the statement which is
> causing the compilation error.
>
> Here is the code being generated from the guided editor:
>
>   java.util.Collection( size >= 1 ) from collect ( ProcedureEvent(
> elements contains 4658 ))
> (         >java.util.Collection( size == 1 ) from collect (
> ProcedureEvent( elements contains 7788 , eval(
> contiguousDays.createNewWithPaddedTime(1,
> DateTimeUnit.DAY).intersectsButNotAdjacent($diagnosticEvent.contiguousDays)
> )))
> or         >java.util.Collection( size >= 2 ) from collect ( DrugEvent(
> elements contains 4146 ))
> ) The code above was from the item 8 and 9 in the attached screen. As
> shown, the collection statement is correct when there is no "any of the
> following are true" involved.
>
> This seems to be a bug in Guvnor.
>
> Please let me know if this needs to be reported.
>
> Sean
>
> _______________________________________________
> 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/20130906/d575500e/attachment.html 


More information about the rules-users mailing list