String focus = session.getAgenda().getFocusName();
}
private Object[] getAgendaElements(IJavaObject workingMemoryImpl) throws DebugException {
List result = new ArrayList();
IValue agendaGroupObjects = DebugUtil.getValueByExpression("return getAgenda().getAgendaGroups();", workingMemoryImpl);
// Drools 4 code
IValue focus = DebugUtil.getValueByExpression("return getAgenda().getFocus();", workingMemoryImpl);
if (focus == null) {
// Drools 5 code
focus = DebugUtil.getValueByExpression("return getAgenda().getFocusName();", workingMemoryImpl);
}
if (agendaGroupObjects instanceof IJavaArray) {