Skip to Content
0

Receiver Determination XPATH Condion - Not contains pattern

Feb 28, 2017 at 04:23 PM

49

avatar image

Hello,

I need to route files from AS2 to different systems based on the AS2 file name. Its been working fine so far based on the receiver determination conditions. Ex, file name starts abc* should go to ECC.

Now there's a new file - abc.xyz.date.HR.txt, which should be routed to HCM. I.e. all files starts with abc* except the one with abc*xyz*HR* should be sent to ECC and only abc*xyz*HR* should be sent to HCM. Please suggest as how to achieve this using the XPATH conditions?

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Evgeniy Kolmakov Feb 28, 2017 at 05:08 PM
0

Hi Joe!

XPath 1.0 doesn't support regular expressions.

So the first way is to use Extended Receiver Determination where you use mapping to build receivers list.

The second way, if your file name starts and ends with fixed parts, is to use combination of starts-with() and end-with() XPath functions.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded