Hello community.
I have a problem with a message mapping with a special validation logic, it is dropping some of the desired values and I don't know what else to do to make it work.
DataType is as follows:
Request XML is:
Message mapping for "g" node is:
For all the other nodes, mapping is 1 to 1, including attribute "c_att".
Response XML is:
It is dropping one "g" node, it should create both of them from the source as values from node "c" are correct.
The mapping has one user defined function called "chooseValue", it simply choose from a valid string or a default value from the mapping:
Queues from testing are look like this:
I don't think the problem is within UDF, queues show it uses all the values and I already tried changing the execution type and iterating inside, same result.
Please, if anyone can shed some light on what's going on, I'd really appreciate. I'm in a pinch here and stuck as a nail.
Thanks!
PS: I know this logic is weird but it is correct, this mapping is used in several scenarios, validations should apply to one of them, the rest should generate an error if something is wrong with "g" node from source.