Hi,
I'm trying to setup an inSequence node that, when validation fails, an email
is sent out. The inbound message is arriving via transport.vfs. I'd like the
content of my email to include the name of the inbound file. My on-fail
looks like:
<on-fail>
<property name="Subject" value="Errors occurs when processing order"
scope="transport"/>
<xslt key="xslt-key-email" source="//*[local-name()='csv']">
<property name="filename"
expression="get-property('transport.vfs.FileName')" scope="transport"/>
</xslt>
<send>
<endpoint>
<address uri="mailto:[EMAIL PROTECTED]" format="pox"/>
</endpoint>
</send>
<drop/>
</on-fail>
The filename parameter being passed to the xstl fails because the property
isn't found. I've even tried instead to get one of the previously defined
properties, such as "transport.vfs.FileURI", but that doesn't work either.
To be honest, this is a fairly constant frustration for me -- I never seem
to be able to printout property values successfully where log level is
custom either. It seems as though when you specify log level="full", it
would print out ALL the property valus, but that often doesn't appear to be
the case (it just seems to print out only message context, not the
transport-specific ones).
Thanks again!
jeff