Integer[] resourceIds = new Integer[executionOrder.size()];
int i = 0;
for (Resource resource : executionOrder) {
resourceIds[i++] = resource.getId();
}
ResourceDatasource resourceDatasource = new ResourceDatasource();
Criteria criteria = new Criteria();
criteria.addCriteria(ResourceDatasource.FILTER_RESOURCE_IDS, resourceIds);
resourceDatasource.fetchData(criteria, new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
if (response.getStatus() != DSResponse.STATUS_SUCCESS) {
throw new RuntimeException(MSG.view_group_operationScheduleDetails_failedToLoadMembers());
}
Record[] data = response.getData();