mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
[MNT-22353]- Changed variable.
This commit is contained in:
@@ -194,7 +194,7 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute
|
|||||||
|
|
||||||
boolean hasMore = true;
|
boolean hasMore = true;
|
||||||
int skipCount = 0;
|
int skipCount = 0;
|
||||||
List<NodeRef> resultList = new ArrayList<>();
|
List<NodeRef> resultNodes = new ArrayList<>();
|
||||||
|
|
||||||
if (batchSize < 1)
|
if (batchSize < 1)
|
||||||
{
|
{
|
||||||
@@ -217,17 +217,17 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute
|
|||||||
ResultSet results = searchService.query(params);
|
ResultSet results = searchService.query(params);
|
||||||
hasMore = results.hasMore();
|
hasMore = results.hasMore();
|
||||||
if(results.length() != 0) {
|
if(results.length() != 0) {
|
||||||
resultList=results.getNodeRefs().stream().filter(node ->!freezeService.isFrozenOrHasFrozenChildren(nodeService.getPrimaryParent(node).getParentRef())).collect(Collectors.toList());
|
resultNodes=results.getNodeRefs().stream().filter(node ->!freezeService.isFrozenOrHasFrozenChildren(nodeService.getPrimaryParent(node).getParentRef())).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
skipCount += resultList.size(); // increase by page size
|
skipCount += resultNodes.size(); // increase by page size
|
||||||
results.close();
|
results.close();
|
||||||
|
|
||||||
log.debug("Processing " + resultList.size() + " nodes");
|
log.debug("Processing " + resultNodes.size() + " nodes");
|
||||||
|
|
||||||
// process search results
|
// process search results
|
||||||
if (!resultList.isEmpty())
|
if (!resultNodes.isEmpty())
|
||||||
{
|
{
|
||||||
executeAction(resultList);
|
executeAction(resultNodes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.debug("Job Finished");
|
log.debug("Job Finished");
|
||||||
|
Reference in New Issue
Block a user