Simple TIBCO project that Can get an Xpath as an input string and evaluated from a specific activity. I'm using tib:evalute().
In this project we have a process that have two activities req and res and accoding the process input we will evaluate the xpath on the output of one of them.