Skip to content

Commit

Permalink
gdrs
Browse files Browse the repository at this point in the history
  • Loading branch information
trevlenb2 committed Oct 14, 2024
1 parent 44791f6 commit 3b5ef7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public void etl(EventTrackerMessage eventTrackerMessage) {

UUID targetPlan = hdssProperties.getTarget().get(planIdentifier1);

log.info("Target plan {}", targetPlan);

if (targetPlan != null) {

sendEmails(individual, indexStructure, indexHousehold, compoundId,
Expand All @@ -130,14 +132,19 @@ public void etl(EventTrackerMessage eventTrackerMessage) {
.collect(
Collectors.toList());


log.info("submitting index case {}", indexStructure);
submitTasks(owner, List.of(indexStructure), targetPlan, actions,
ActionTitleEnum.INDEX_CASE);

log.info("submitting index case members {}", indexIndividual.getId());
submitTasks(owner, List.of(UUID.fromString(indexIndividual.getId())), targetPlan, actions,
ActionTitleEnum.INDEX_CASE_MEMBER);

log.info("submitting rcd {}", allStructuresInCompound);
submitTasks(owner, allStructuresInCompound, targetPlan, actions, ActionTitleEnum.RCD);

log.info("submitting rcd member {}", allIndividualsInCompound);
submitTasks(owner, allIndividualsInCompound.stream()
.map(individualObj -> UUID.fromString(individualObj.getId())).collect(
Collectors.toList()), targetPlan, actions, ActionTitleEnum.RCD_MEMBER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ private void submitTaskCandidatesToKafka(Action action, Plan plan, String ownerI
taskProcessEvent);
break;
case GENERATE:
log.debug("submitting tasks {}",taskProcessEvent);
publisherService.send(
kafkaProperties.getTopicMap().get(KafkaConstants.TASK_CANDIDATE_GENERATE),
taskProcessEvent);
Expand Down

0 comments on commit 3b5ef7c

Please sign in to comment.