posted 4 years ago
I'm stuck to make some changes on this coding, to ensure no emails sent via bpaNotificationService if email in object (in the CustomerOrder class) is null, so it doesn't throw error logs? And also to include an info logger to say that "not sending email because no email is given".
This is only if it's email notification only, which is checking whether email notification key is not null.
Generally in the list, we have . Thus, my idea is to:
Use the to get the specific object from .
Once I got the specific object, check whether got email to send the notifications.