Skip to content

Commit

Permalink
notification fix to withdraw request for profile fields (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
shankaragoudab authored Sep 6, 2024
1 parent cd1524c commit 030376a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/sunbird/workflow/config/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,5 +354,6 @@ private Constants() {
public static final String PROFILE_DETAILS_PERSONAL_DETAILS_PRIMARY_EMAIL = "profileDetails.personalDetails.primaryEmail";
public static final String NO_PENDING_REQUEST_AVAILABLE_MESSAGE = "There are no approval requests pending for approval with the MDO";
public static final String NO_PENDING_GROUP_DESIGNATION_REQUEST_AVAILABLE_MESSAGE = "There are no approval requests pending for designation and/or group approval with the MDO";
public static final String WITHDRAWN = "WITHDRAWN";

}
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public void sendNotification(WfRequest wfRequest) {
} catch (JsonProcessingException e) {
e.printStackTrace();
}
if (Constants.PROFILE_SERVICE_NAME.equalsIgnoreCase(wfRequest.getServiceName()) && Constants.WITHDRAWN.equalsIgnoreCase(wfStatusEntity.getCurrentStatus())) {
return;
}
if (!ObjectUtils.isEmpty(wfStatus.getNotificationEnable()) && wfStatus.getNotificationEnable()) {
logger.info("Enter's in the notification block");
Set<String> usersId = new HashSet<>();
Expand Down

0 comments on commit 030376a

Please sign in to comment.