[rules-users] What should I insert into the working memory?

2010-11-28 Thread Chris Selwyn
I am working on a project that is using Drools to perform validation of hierarchical XML messages. So I have passed the XSDs through JAXB and have a set of interrelated Java objects. One of these objects (naturally) represents the root of the messages and the others represent the intermediate

Re: [rules-users] What should I insert into the working memory?

2010-11-28 Thread Wolfgang Laun
An XML schema just fitting your XML data will frequently not result in a class hierarchy that's well suited for writing rules. One point deals with representing the parent-child relationship, especially when there are multiple children of a kind, i.e., the parent class contains a List?. You have

Re: [rules-users] What should I insert into the working memory?

2010-11-28 Thread Swindells, Thomas
November 2010 11:39 To: Drools users Subject: [rules-users] What should I insert into the working memory? I am working on a project that is using Drools to perform validation of hierarchical XML messages. So I have passed the XSDs through JAXB and have a set of interrelated Java objects. One

Re: [rules-users] What should I insert into the working memory?

2010-11-28 Thread Chris Selwyn
Hi Wolfgang, Thanks for the helpful response. I do find myself using contains and memberof quite a lot depending on whether I am going up or down the tree structure. Is this a performance problem? Is it better to use from? Thanks for the hint about adding the parent pointer in the child. I'll