On 14 December 2010 13:02, Harris <span dir="ltr">&lt;<a href="mailto:harrisx@gmx.de">harrisx@gmx.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I checked it out and it works :-)<br></blockquote><div><br>Thanks for the feedback. <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
I&#39;ve inserted only the devices directly as facts, because I wanted to<br>
maintain the structure of the data, which I receive as XML.<br>
Maybe it&#39;s a good idea to insert the signals of each device as facts in the<br>
beginning as well. But then I&#39;ll have to create specialized classes for<br>
signals, which in addition hold the information about the &quot;parent device&quot;.<br></blockquote><div><br>You could add an optional element or attribute of type Device to the schema<br>type Signal, which doesn&#39;t hurt during validation, and set this when walking<br>
the document tree. (I&#39;m very much in favour of using XML elements straight<br>away as facts; this parent-linkage is the typical consequence.)<br><br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Thanks for your help,<br>
Harris<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-FROM-and-temporal-operators-tp2084522p2085073.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-FROM-and-temporal-operators-tp2084522p2085073.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>