Sidebar

How do you prevent a resolving message from processing some end points twice?

0 votes
285 views
asked Apr 1, 2019 by lewis-s-9714 (1,020 points)
I have HL7 messages being sent through 2 separate paths with different end points. One of the end points occasionally gets an error that needs to be manually resolved. When that happens, the message is re-sent to the other end point as well, giving us duplicates. I'm trying to find a way to check the message dynamically to see if it already processed a branch successfully so it doesn't do it again.

The trouble I'm having is that any changes done to the message are reset, so I can't just add a value to check. I see errorManager has "hasParent" but that is only available in scheduled scripts. Do I have other options?

1 Answer

+1 vote
 
Best answer
Currently you have 3 options:

1. Is there a way to fix the message before it errors and deal with it.

2. Manually resolve it after you disable the source node and disconnect the destination you do not want it to resend to.

3. Create another channel for that destination and send the message to that channel. If it errors out then when you resolve it is now a separate message in the channel with only that one destination.
answered Apr 1, 2019 by brandon-w-8204 (33,170 points)
selected Apr 1, 2019 by lewis-s-9714
...