PersonalDataPurge event

When a personal data purge of certain objects is committed, ContactManager generates a PersonalDataPurge event that you can respond to in an Event Fired rule to send a message. For example, you might want to send a message to a downstream system.

ContactManager generates a PersonalDataPurge event when an ABContact purge is committed as part of a personal data purge. In the base configuration, there is no rule that responds to this event, but you can create an EventFired rule in the EventMessage rule set category that sends a message.

Your rule could take the following form in the Guidewire Studio Rules editor:

USES:

CONDITION (messageContext : entity.MessageContext):

return messageContext.EventName == "PersonalDataPurge"

ACTION (messageContext : entity.MessageContext, actions : gw.Rules.Action):

var claimInfo = messageContext.Root as ABContact
messageContext.createPersonalDataPurgeMessage(
    "("ABContact with public ID ${contact.PublicID} has been successfully purged")

See also