checkPreconditionsToProcess(event);
return super.internalProcess(user, entryDTOs, event, fromAccount, toAccount, transactionDetail);
}
private void checkPreconditionsToProcess(Event event) {
final DFACandidacyEvent dfaCandidacyEvent = (DFACandidacyEvent) event;
if (!dfaCandidacyEvent.hasCandidacyPeriodInDegreeCurricularPlan()) {
throw new DomainException(
"error.accounting.postingRules.dfa.DFACandidacyPR.cannot.process.without.candidacy.period.defined");
}
}