I'm trying to change the reported event code within EH ruleset activity function. I figured I'd just have to update the internal event code on the message but that didn't seem to work. No event was reported in the handler; why is this?
As you can see I reported the Departure event. Then I added a rule that if the event was 'Departure' change it to 'Arrival at In-Transit Destination'. The changed event code isn't reporting? It's configured as an Unexpected Event on the handler... What am I missing?
You want to retain existing event message Departure and additionally report unexpected Arrival In-Transit Destination event or you want to swap Departure to Arrival In-Transit Destination.
This looks like falls under extended check for event message before posting an event message. As Vishnu mentioned, you have to check preprocessing and post the event.