2017-04-13 15 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

To 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

関連する問題