Hi Adrian,
If you are in the microflow then you can put your constant into a variable and then use it in the XPath.
On a page you can not access the constant because they are not known in the browser where this XPath is used. If it would be possible then every user would have access to all your constants.
-Andrej