cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XML Validation / Processing Pattern

gpre7086
Explorer
0 Likes
426

Hello experts!!

I have what I believe to be a simple, common challenge however I can not come up with a simple (no code) solution.   I'm hoping there is a simple/recognized pattern for this scenario.

I have a number of nodes I'll receive as payload.   I want to validate each node against the target's XSD, based on success/failure I'll either aggregate the success nodes and send to the target for batch processing.  Or, in the event of failure I'll aggregate the failed nodes and generate a log file.

I determine success or failure based on whether property.SAP_XmlValidationResult has a value.   For now all I can come up with is a groovy script that will remove the invalid node and move it to a log file.

I would believe there is a pattern for this that requires no code - any thoughts?   See sample flow below.

Thank you!

/Greg

gpre7086_0-1708117231000.png

 

Accepted Solutions (0)

Answers (0)