public Agenda getAgenda() {
if ( agenda == null ) {
agenda = new Agenda() {
public void clear() {
ClearAgendaCommand command = new ClearAgendaCommand();
commandService.execute( command );
}
public ActivationGroup getActivationGroup(final String name) {
return new ActivationGroup() {
public void clear() {
ClearActivationGroupCommand command = new ClearActivationGroupCommand();
command.setName(name);
commandService.execute( command );
}
public String getName() {
return name;
}
};
}
public AgendaGroup getAgendaGroup(final String name) {
return new AgendaGroup() {
public void clear() {
ClearAgendaGroupCommand command = new ClearAgendaGroupCommand();
command.setName(name);
commandService.execute( command );
}
public String getName() {
return name;
}
public void setFocus() {
AgendaGroupSetFocusCommand command = new AgendaGroupSetFocusCommand();
command.setName(name);
commandService.execute( command );
}
};
}
public RuleFlowGroup getRuleFlowGroup(final String name) {
return new RuleFlowGroup() {
public void clear() {
ClearRuleFlowGroupCommand command = new ClearRuleFlowGroupCommand();
command.setName(name);
commandService.execute( command );
}
public String getName() {
return name;
}