[rules-users] Making my own agenda Filter
Mehak
mehak.kapoor at hewitt.com
Mon Mar 10 09:48:47 EDT 2008
Hi I am using this code to make my own agenda filter. In this case if the
type of rule is agenda then agenda filter to focus on that agenda is set
else agenda filter for rule is set.
private static AgendaFilter buildAgendaFilter(RuleConfig rule)
{ final String searchName = rule.getRuleName();
final String type = rule.getRuleType();
AgendaFilter filter = new AgendaFilter() // The control doesnt go inside
this code
{
public boolean accept(Activation activation)
{ if(type == "AGENDA")
{
if((activation.getRule().getAgendaGroup()).equalsIgnoreCase(searchName))
{ System.out.println(searchName);
return true;
}
return false;
}
else
{
if((activation.getRule().getName()).equalsIgnoreCase(searchName))
{
return true;
}
return false;
}
}
};
return filter;
The problem is that the control doesnt go inside the new agenda creation.
Please let me know if something is wrong with the way I have used it.
Thanks
--
View this message in context: http://www.nabble.com/Making-my-own-agenda-Filter-tp15950765p15950765.html
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list