On 14 December 2010 13:02, Harris <harrisx@gmx.de> wrote:

I checked it out and it works :-)

Thanks for the feedback. 
 

I've inserted only the devices directly as facts, because I wanted to
maintain the structure of the data, which I receive as XML.
Maybe it's a good idea to insert the signals of each device as facts in the
beginning as well. But then I'll have to create specialized classes for
signals, which in addition hold the information about the "parent device".

You could add an optional element or attribute of type Device to the schema
type Signal, which doesn't hurt during validation, and set this when walking
the document tree. (I'm very much in favour of using XML elements straight
away as facts; this parent-linkage is the typical consequence.)

-W
 

Thanks for your help,
Harris


--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-FROM-and-temporal-operators-tp2084522p2085073.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users