Tried to load my fusion package before any others. Same problem
- Mail original -
De: "Vincent LEGENDRE"
À: "Rules Users List"
Envoyé: Lundi 28 Novembre 2011 19:48:03
Objet: Re: [rules-users] Fusion : must declare @role(event) for all class
hierarchy ?
Hi E
Hi Edson, and thanks for answering
? - are the fact types (classes) in the same package or different packages?
Different packages. But I tried this on my little sample (put the sub-class in
another package than the mother class), and this works
? - Are the declaration(s)/rules in the same fil
Vincent,
It seems it is a merging problem on declarations, but unfortunately, the
exceptions you are seeing are the symptoms, not the cause, so I can't infer
much from them.
Some suggestions to try to isolate the problem: are the fact types
(classes) in the same package or different pack
Well, after trying and trying to reproduce with a simpler case, @role is always
correctly inherited.
But in my application, it seems not, or may be it is another problem.
I have 3 classes : ChantierEvent (the main mother class) and its 2 subClasses :
InitEvent and DisposeEvent
When I declare @ro
Strange ...
When trying to build a minimal sample that reproduce my problem ... well ...
did not manage to reproduce ...
I will try to find out why my first attempt is different from my minimal sample
now ...
Will get back here asap.
___
rules-users mai
rules-users-Fusion-must-declare-role-event-for-all-class-hierarchy-tp3506862p3508356.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/lis
Vincent,
Fact types are supposed to inherit the @role of their parent classes, so
if you define the parent class/interface as an event, all subclasses will
inherit the event role. If it is not working like this, it is a bug, but I
am pretty sure we have tests for it. Please open a JIRA and p
Hi all
We are using Fusion to make some simplification and grouping on some events.
We have several classes of events, all derivated from a top-level class .
With fusion version 5.3 (and 5.2 too), we must declare the @role(event) for the
top-level class, but also for all its classes hierarchy