holodeck-b2b/Holodeck-B2B

InFlow: the message will be delivered even if its state is FAILURE ?

tigran-a opened this issue · 1 comments

Hi,

Probably I'm missing something...
PerformCustomValidations handler does not care about the current message unit state other than DUPLICATE (where the handler does nothing).
If the message was in the FAILURE state (e.g. after ProcessSecurityHeaders decided so), the mentioned handler will change its state to READY_FOR_DELIVERY:


and DeliverUserMessage will deliver it to the business application.

Thanks in advance for a clarification

Because the PerformCustomValidations extends org.holodeckb2b.common.handlers.AbstractUserMessageHandler it already excludes processing of _User Message_s in FAILURE state. However it indeed would be better to check on whether the current state is still PROCESSING before validating the message and possibly setting its state to READY_FOR_DELIVERY.
This change has now been applied in version 6.0.1