Skip to content
Merged

debug #369

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1725,13 +1725,19 @@ public Stream<Object> updateCase(final ProsecutionCase prosecutionCase, final Li
}
});
// LAA suppression of false proceedings concluded
if (isNotEmpty(defendantListForProceedingsConcludedEventTrigger) && isAllDefendantProceedingConcludedLaa(prosecutionCase, defendantListForProceedingsConcludedEventTrigger)) {
final UUID resultedHearingId = hearingId != null ? hearingId : latestHearingId;
final List<uk.gov.justice.core.courts.Defendant> defendantsForLaaProceedingsConcludedCheck = new ArrayList<>();
if (isNotEmpty(defendantListForProceedingsConcludedEventTrigger)
&& isAllDefendantProceedingConcludedLaa(prosecutionCase, defendantsForLaaProceedingsConcludedCheck)) {
final List<Defendant> defendantsWithLaaRepresentation =
getDefendantsWithLaaRepresentation(defendantListForProceedingsConcludedEventTrigger);
if (!defendantsWithLaaRepresentation.isEmpty()) {
final UUID resultedHearingId = hearingId != null ? hearingId : latestHearingId;
streamBuilder.add(laaDefendantProceedingConcludedChanged()
.withDefendants(defendantListForProceedingsConcludedEventTrigger)//listOfDefendantsWithLaaRepresentation)
.withDefendants(defendantsWithLaaRepresentation)
.withHearingId(resultedHearingId)
.withProsecutionCaseId(prosecutionCase.getId())
.build());
}
}

final String updatedCaseStatus = getUpdatedCaseStatus(prosecutionCase);
Expand Down
Loading