I'm trying to formulate a condition like:
global java.util.List myGlobalList;
rule "Hello World"
$hibernateSession : Session();
$tmp1 :TempEntity($bin1 :bin) from $hibernateSession.createQuery("from
$tmp2 : TempEntity($bin2 : bin) from myGlobalList
//eval($bin == ((TempEntity)(myGlobalList.get(0))).getBin())
eval($bin1 == $bin2)
I'm trying to find an Entity by bin from DB.
there is only one entity in the "myGlobalList". NO complie error but it
shows the following:
log4j:WARN No appenders could be found for logger
log4j:WARN Please initialize the log4j system properly.
tempentity0_.bin as bin0_,
tempentity0_.bank_name as bank2_0_,
tempentity0_.bank_id as bank3_0_,
tempentity0_.card_name as card4_0_,
tempentity0_.card_length as card5_0_,
tempentity0_.card_type as card6_0_
what should I do if i want this rule works?
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com