String identification) {
return process.getOpenChildProcessByDocumentId(documentType, identification) != null;
}
protected void setProcessCodeForThisIndividualCandidacy(CandidacyProcess process) {
CandidacyPeriod period = process.getCandidacyPeriod();
String beginExecutionYear =
String.valueOf(period.getExecutionInterval().getBeginDateYearMonthDay().get(DateTimeFieldType.year())).substring(
2, 4);
String endExecutionYear =
String.valueOf(period.getExecutionInterval().getEndDateYearMonthDay().get(DateTimeFieldType.year())).substring(2,
4);
setProcessCode(beginExecutionYear + endExecutionYear + getExternalId());
}