I have configured 3.1.0M1 on my local machine with the corresponding IDE... 
now I need help with the rule syntax.  I have configured a DAO which will
return an ArrayList of values representing a list of values from the lookup
table - I tried this, but I'm having problems...:


rule "GATE-IN Match"
        
// This rule should match IF:
//  CUSTOMER_REFERENCE_NUMBER starts with 'HX', and 
//  ACTIVITY_LOCATION starts with "US" 
//  SH_CODE exists in lookup table idenfied by key "MILT.CUSTNO"        
        
        when
                $GateIN : RKEM_Move (CUSTOMER_REFERENCE_NUMBER matches "^HX.*", 
                                                 ACTIVITY_LOCATION matches
"^US.*",
                                    $list : (from
lookupDAO.getLookupValues("MILT.CUSTNO")) contains $GateIN.getSH_CODE()  )
                                      
        then 
           System.out.println("Matched 001695568GP GATE-IN Match Rule - about to
inovke Service...");
                
end





Anstis, Michael (M.) wrote:
> 
> I don't have the syntax at hand but Edson has previously posted about
> using "from" in similar circumstances.

-- 
View this message in context: 
http://www.nabble.com/Rules-with-Lookup-Tables...-tf3329159.html#a9360008
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to