on 02-19-2014 10:16 AM
Hi guys,
I have a message outbound in PI, and I have to determine to use one mapping or another depending on a string in our XML. Our XML is like:
<MT_TEST>
<row>
<text>There has been an Error in program...</text>
</row>
....
I have to look for string 'Error' in one of the rows to determine the receiver mapping. There are multiple rows. I have seen old blogs, but in the interface determination I don't see the xpath expression to use function 'contains' for example, and is not a pattern.
I have seen the possibility of extended receiver determination, but this is to determine the receiver, then how you put the mapping after determining the receiver?
Many thanks,
XAvier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikhail,
If I put (//MT_TEST/row/text, 'Error') = 0 for the first and (//MT_TEST/row/text, 'Error') != 0 always goes for the second. If I put true and false despite 0, doesn't determine the service interface.
The xpath check all the lines? Because the string 'Error' could come only in the first row, and maybe this could be the problem.
Many thanks,
Xavier.
Hello,
U can use multimapping concept, so while doing message mapping u can check if text field contains "Error" string then output first structure and if not then create second structure.
Check this:
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
I have tried this solution but I have the error in monitoring that Split mapping created no messages.
I have two operations in the Inbound Service Interface. Created the message mapping and operation mapping with Occurrence 0..unbounded and configured the interface determination, but it doesn't work.
I have tried also with two service interface despite one, but I have the same error message.
I don't know what could be wrong in this case.
Kind Regards,
Xavier.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.