cancel
Showing results for 
Search instead for 
Did you mean: 

Glob expression is not working

RafaelSoares
Explorer
0 Kudos

Hi Experts!

I am trying to execute something that seems obvious to me, but SAP PO does not understand like me!

I am trying to use an XPath Expression in a receiver REST adapter to decide about REST Operation.

I test my glob expression on this site https://www.digitalocean.com/community/tools/glob.

I have a variable 'id' that has value "create" to execute a POST or a number like "243927" to execute a PUT.

The POST works fine (id = create). But when variable 'id' has a number the channel error is "No HTTP operation specified. Please check your settings or rules.". I've already tried many others variation of Glob expressions, fill up "Additional Operation Mapping" instead of directly on PUT Operation but does not work.

If I fill up the exactly number from variable 'id' as glob Expression on "PUT Operation" the channel executes the rule and send the message as PUT operation.

Any suggestion?

Thanks in advanced.

alex_bundschuh
Product and Topic Expert
Product and Topic Expert

sounds like a bug, best is to open an incident ticket

Alex

RafaelSoares
Explorer

SAP response:

"

https://help.sap.com/viewer/5cf7d2de571a45cc81f91261668b7361/7.5.21/en-US/b4076c130bef4cd7b414d35a0f...

The provided functionality allows the usage of symbol '*' and '?'. In your scenario if you put *6* it will match 62651. More extended search criteria using regexp will make the usage of simple settings extremely ambiguous(e.g. \d A digit: [0-9]). The current supported options are:

'*' any character or none

'?': any character

"

So, the code does not work as I expected

RafaelSoares
Explorer
0 Kudos

What a pity!

Accepted Solutions (0)

Answers (0)