updated cris rule results methods

This commit is contained in:
Konstantinos Spyrou 2020-03-26 17:35:55 +00:00
parent c0cbbbe9ef
commit fdc6a46bff
1 changed files with 4 additions and 4 deletions

View File

@ -57,11 +57,11 @@ public class CrisValidatorUtils {
List<JobResultEntry> jobResultEntries = new ArrayList<>();
for (RuleResults ruleResults : crisJob.getRuleResults()) {
JobResultEntry jobResultEntry = new JobResultEntry();
jobResultEntry.setName(ruleResults.getRuleMethodName());
jobResultEntry.setRuleId(ruleResults.getRuleId());
jobResultEntry.setName(ruleResults.getRule().getName());
jobResultEntry.setRuleId(ruleResults.getRule().getId());
jobResultEntry.setMandatory(true);
jobResultEntry.setWeight(Math.round(ruleResults.getWeight()));
jobResultEntry.setType(ruleResults.getType());
jobResultEntry.setWeight(Math.round(ruleResults.getRule().getWeight()));
jobResultEntry.setType(ruleResults.getRule().getType());
jobResultEntry.setHasErrors(false);
if (ruleResults.getCount() == 0) {
jobResultEntry.setSuccesses("-");