AssessableCourseNode acn = (AssessableCourseNode) foundNode;
ScoreEvaluation se = evalCourseNode(acn);
if (se == null) { // the node could not provide any sensible information on scoring. e.g. a STNode with no calculating rules
String msg = "could not evaluate node " + acn.getShortTitle() + " (" + acn.getIdent() + ")" + "; called by node "
+ (evaluatingCourseNode == null ? "n/a" : evaluatingCourseNode.getShortTitle() + " (" + evaluatingCourseNode.getIdent() + ")");
new OLATRuntimeException(ScoreAccounting.class, "scoreaccounting.evaluationerror.score",
new String[]{acn.getIdent(), acn.getShortTitle()},
Util.getPackageName(ScoreAccounting.class),
msg, null);
}
Float score = se.getScore();