动态VFS端点
问题描述:
我需要在存储上创建文件夹。文件夹名称是动态的,来自传入的请求。我试图与物业“transport.vfs.ReplyFileName”没有成功拼接完整路径和仍然使用地址端点uri属性:动态VFS端点
<property description="concat path and DestinationFolder" expression="fn:concat(get-property('path'),get-property('DFolder'))" name="transport.vfs.ReplyFileName" scope="transport" type="STRING"/>
<property description="OUT_ONLY=true" name="OUT_ONLY" scope="default" type="STRING" value="true"/>
<endpoint>
<address uri="vfs:file://D:\\temp_WSO2\\Downloads\\">
</address>
</endpoint>
任何人只要有想法如何解决这种情况? 在此先感谢!
答
您可以使用至header属性来设置动态路径。然后,您可以包含一个匿名端点。
<header name="To" expression="fn:concat(get-property('path'),get-property('DFolder'))"/>
<property description="OUT_ONLY=true" name="OUT_ONLY" scope="default" type="STRING" value="true"/>
<send>
<endpoint>
<default/>
</endpoint>
</send>
感谢您的支持! – awc