Hi,
If you are asked to send a business event whenever a customer postal address is created or updated.
How would you do it?
I mean we should send a business event:
If we insert a customer postal address
If we update let's say street or zip code fields
if we update the purpose to include Business/Home
If we update both the street and the purpose together
As you know the dirPartyLocation update method gets called multiple times. Even the logistics postal address methods might be called multiple times
So how would you guarantee that at the end of the creation of the postal address or at the end of updating it, only one business event will be triggered? Where would you put the code to guarantee that?