-
Feature Request
-
Resolution: Done
-
Major
-
6.4.0.Final
-
None
-
NEW
-
NEW
How much does one entity impact the score? Which are the bad entities?
Map<Object, List<ConstraintMatch>> indictmentMap = guiScoreDirector.extractIndictmentMap(); ... for (List<ConstraintMatch> matches : indictmentMap.get(myEntity)) { for (ConstraintMatch match : matches) { System.out.println(match); // Use match.getScoreLevel() and match.getWeightAsNumber() to determine score impact } }
public Map<Object, List<ConstraintMatch>> extractIndictmentMap() { Map<Object, List<ConstraintMatch>> indictmentMap = new HashMap<>(); for (ConstraintMatchTotal constraintMatchTotal : getConstraintMatchTotals()) { for (ConstraintMatch constraintMatch : constraintMatchTotal.getConstraintMatchSet()) { for (Object justification : constraintMatch.getJustificationList()) { List<ConstraintMatch> indictment = indictmentMap.get(justification); if (indictment == null) { indictment = new ArrayList<>(); indictmentMap.put(justification, indictment); } indictment.add(constraintMatch); } } } return indictmentMap; }
- causes
-
PLANNER-759 ConstraintMatches in excess and missing does not recognize duplicates since Indictement feature
- Resolved
- is blocked by
-
DROOLS-1470 Match.getObjects() should also include accumulate's objects
- Closed
- is incorporated by
-
PLANNER-383 7.0 backwards incompatible changes for next major version
- Resolved
- relates to
-
PLANNER-632 ConstraintMatch and ConstraintMatchTotal should be able to return a Score instead of an int scoreLevel and weight
- Resolved