final Double totalEctsWithEnroledEctsCreditsFromPreviousPeriod =
totalCredits
+ externalCurriculumGroup.getEnroledEctsCredits(enrolmentContext.getExecutionPeriod()
.getPreviousExecutionPeriod());
if (creditsLimitInExternalCycle.creditsExceedMaximumInExternalCycle(totalEctsWithEnroledEctsCreditsFromPreviousPeriod,
totalCreditsInPreviousCycle)) {
return RuleResult.createTrue(EnrolmentResultType.TEMPORARY, sourceDegreeModuleToEvaluate.getDegreeModule(),
"curricularRules.ruleExecutors.CreditsLimitInExternalCycleExecutor.external.cycle.limit.exceeded",
creditsLimitInExternalCycle.getExternalCurriculumGroup().getName().getContent(),
totalEctsWithEnroledEctsCreditsFromPreviousPeriod.toString(), creditsLimitInExternalCycle