updated cris rule results methods
This commit is contained in:
parent
c0cbbbe9ef
commit
fdc6a46bff
|
@ -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("-");
|
||||
|
|
Loading…
Reference in New Issue