Before I go down the path of fleshing the rest of this out, I want to know if
this is the right approach.
I have a database with LOTS of data entries. I have a bean that provides
access to that data (ListAccess). It has a method "iHaveOne" that returns
true if the argument is contained in the list.
Is the following how one should go about this?
Other/better ways?
package blah;
import dba.ListAccess; // bean which access database
import goodstuff.Thing; // fact in drools
rule "qqq"
when
$thing:Thing()
$listAccess:ListAccess()
eval( $listAccess.iHaveOne($thing.id) )
then
do stuff
end
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-0-Is-this-the-right-way-to-access-D...
Sent from the Drools: User forum mailing list archive at
Nabble.com.