Search in sources :

Example 1 with Consolidator

use of org.asqatasun.consolidator.Consolidator in project Asqatasun by Asqatasun.

the class ConsolidatorServiceImpl method consolidate.

@Override
public Collection<ProcessResult> consolidate(Collection<ProcessResult> grossResultList, Collection<Test> testList) {
    List<ProcessResult> resultList = new ArrayList<>();
    for (Test test : testList) {
        // if the rule archive name is empty, the test is not launched
        if (!test.getNoProcess()) {
            RuleImplementation ruleImplementation = ruleImplementationLoaderService.loadRuleImplementation(test);
            Consolidator consolidator = consolidatorFactory.create(grossResultList, ruleImplementation, ProcessRemarkServiceFactory.create(processRemarkDataService, evidenceElementDataService, evidenceDataService));
            consolidator.run();
            resultList.addAll(consolidator.getResult());
        }
    }
    return resultList;
}
Also used : Test(org.asqatasun.entity.reference.Test) ArrayList(java.util.ArrayList) ProcessResult(org.asqatasun.entity.audit.ProcessResult) Consolidator(org.asqatasun.consolidator.Consolidator) RuleImplementation(org.asqatasun.ruleimplementation.RuleImplementation)

Aggregations

ArrayList (java.util.ArrayList)1 Consolidator (org.asqatasun.consolidator.Consolidator)1 ProcessResult (org.asqatasun.entity.audit.ProcessResult)1 Test (org.asqatasun.entity.reference.Test)1 RuleImplementation (org.asqatasun.ruleimplementation.RuleImplementation)1