use of org.asqatasun.ruleimplementation.AbstractSiteRuleWithPageResultImplementation in project Asqatasun by Asqatasun.
the class RuleImplementationLoaderServiceImpl method loadRuleImplementation.
@Override
public RuleImplementation loadRuleImplementation(Test test) {
RuleImplementationLoader ruleImplementationLoader = ruleImplementationLoaderFactory.create(archiveRoot, test.getRuleArchiveName(), test.getRuleClassName());
ruleImplementationLoader.run();
RuleImplementation ruleImplementation = ruleImplementationLoader.getResult();
ruleImplementation.setTest(test);
ruleImplementation.setProcessResultDataService(processResultDataService);
ruleImplementation.setNomenclatureLoaderService(nomenclatureLoaderService);
// of a given ProcessResult in this case
if (ruleImplementation instanceof AbstractSiteRuleWithPageResultImplementation) {
((AbstractSiteRuleWithPageResultImplementation) ruleImplementation).setProcessRemarkDataService(processRemarkDataService);
}
return ruleImplementation;
}
Aggregations