[drools-user] XMLGregorianCalendar and cast to Comparable

2007-01-03 Thread Justine Hlista
Hello, I am new to JBoss Rules, so this might be an obvious question. I am generating Java objects from xsd's using jaxb/xjc. These objects are used as facts in the working memory. Some of the fields in these objects need to be times; however, jaxb likes to convert xs:time types to

Re: [drools-user] XMLGregorianCalendar and cast to Comparable

2007-01-03 Thread Michael Neale
No thats a good question. Unfortunately t the moment that is what you have to do (using eval). There may be a few more options in a future version, but can't say at this stage. I am hoping one day to have pluggable operators so you can define them to do what you want and register them with the

Re: [drools-user] XMLGregorianCalendar and cast to Comparable

2007-01-03 Thread Steven Williams
You could also use the field in a predicate constraint rather than an eval. cheers Steve On 1/4/07, Michael Neale [EMAIL PROTECTED] wrote: No thats a good question. Unfortunately t the moment that is what you have to do (using eval). There may be a few more options in a future version, but