you are close ;)
Yes, it is a challenge, thats what the examples are for etc.
but try this (FYI I think you mean "or"):
*rule* "UCCnet_DVE_Depth_All"
*when*
catalogObject : CatalogObject( )
eval( catalogObject.getElementValue("depth") == *null* ||
catalogObject.getEle
Did you set the global in the WorkingMemory?
You can do that using the API at
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html
and yes that is for 3.0.5. I am sure there is an
equivalent for the version that you are using.
-Rahul
--- Sanjay Si
Did you set the global in the WorkingMemory?
You can do that using the API at
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.5/apidocs/index.html
and yes that is for 3.0.5. I am sure there is an
equivalent for the version that you are using.
-Rahul
--- Sanjay Sing
Since i could not get the earlier code running i tried using eval in LHS
side for Dao calls but i keep on getting NullPointerException ..
rule "Item should have a valid status"
when
ItemVo (statusCode : itemStatusCode != null)
eval( !itemValidationDao.isValidItemStatus(statusCode) )
then
err
Writing DRL is not easy for people new to drools. Can someone please
help me understand how to write this simple rule? You can see the
approaches I have taken.
In this case I do not have getters and setters for the attributes I am
checking. I need to pass parameters to the object for it to
Thanks for getting back to me Mike and Edson and Sorry for the delayed
response.
I looked at your examples Mike and i felt better as you said that we can
make dao calls in LHS .. And Edson suggested not to be afraid of
suggesting the same constraint for more than one rule .. i guess i was
looking