I get the file path as input in the mule inside xml. Using the XPATH expression, I can extract the path. I want to read a specific file from this path. I tried to determine the endpoint of the incoming file as shown below. But it does not seem to work.
<flow name="flow1">
....
....
<set-session-variable variableName="filePath" value="#[xpath://filePath]" />
<flow-ref name="fileFlow"/>
</flow>
<flow name="fileFlow">
<file:inbound-endpoint path="#[header:SESSION:filePath]" />
</flow>
My understanding here is that no code can be placed in front of an inbound-endpoint. Therefore, I defined it in another thread. Please indicate if there is a way to read the file at the specified path.
source
share