I'm having some trouble to write drools, if some one could give a hand, would be appreciated
I have two simple lists of users and profiles
I need to get all profiles for a User
User(){
Long id;
String name;
}
Profile(){
Long profId;
Long userId;
Let say I need to get all profiles of a user that has id equal to 1
User( id = Profile ( profId == 1))
??? Dosen't work?