Re: [rules-users] question on syntax with FROM keyword

2007-11-02 Thread Mark Proctor
put brackets around the SomeObject and from statement not ( SomeObject(val == 5) from dao.find(99) ) Eric Miles wrote: I'm trying to use the FROM keyword in a way that I think it should be able to be used, but I'm getting compilation errors. Here are the 2 ways that I'm getting stumped on:

Re: [rules-users] question on syntax with FROM keyword

2007-11-02 Thread Eric Miles
That works, thanks a bunch. However, the exists still will not work as I had hoped. The brackets do not help if dao.find(99) returns a null; I receive a null pointer exception. Is there any way to deal with that gracefully in drools? That's why I wanted to use the exists syntax... exists