[rules-users] Problem with FROM and temporal operators

Wolfgang Laun wolfgang.laun at gmail.com
Tue Dec 14 07:30:12 EST 2010


On 14 December 2010 13:02, Harris <harrisx at 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 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/20101214/092d3dfe/attachment.html 


More information about the rules-users mailing list