2017-04-13 93 views
0

我需要在存儲上創建文件夾。文件夾名稱是動態的,來自傳入的請求。我試圖與物業「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> 

任何人只要有想法如何解決這種情況? 在此先感謝!

回答

0

您可以使用至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> 

您可以看到examples on the WSO2 documentation

+0

感謝您的支持! – awc