0
<flow name="receive-files-from-client">
        <file:inbound-endpoint connector-ref="ibFileConnector"
                               path="/client-data/accounts/client/ToTest">
            <file:filename-wildcard-filter pattern="ABC_123*.txt, XYZ_987*.txt" />

            <object-to-byte-array-transformer />   <!-- need to convert from an input stream to a byte array to avoid having the wire-tap close it -->

            <wire-tap>
                <file:outbound-endpoint path="${workingDdir}/Dir1/archive/inbound/#[function:datestamp-yyyy-MM-dd_HH-mm-ss.SSS]" />
            </wire-tap>
        </file:inbound-endpoint>

....
...
</flow>

すべてを適切に設定しましたが、Mule がそのインバウンド パスの場所からファイルを選択していません。

4

1 に答える 1

0

次の変更されたフローを使用します。ファイル インバウンド内でファイル アウトバウンドを使用しています。

<flow name="receive-files-from-client">
        <file:inbound-endpoint connector-ref="inboundFileConnector"
                               path="/client-ftpdata/ftpaccounts/client/To_CC-Test">
            <file:filename-wildcard-filter pattern="CYC53_810*.txt,CYC53_855*.txt,CYC53_856*.txt,CYC53_997*.txt" />

            <object-to-byte-array-transformer />   <!-- need to convert from an input stream to a byte array to avoid having the wire-tap close it -->

            <wire-tap>
                <file:outbound-endpoint path="${global.workdir}/suppliers/S000590/archive/inbound/#[function:datestamp-yyyy-MM-dd_HH-mm-ss.SSS]" />
            </wire-tap>
        </file:inbound-endpoint>
            <wire-tap>
                <file:outbound-endpoint path="${global.workdir}/suppliers/S000590/archive/inbound/#[function:datestamp-yyyy-MM-dd_HH-mm-ss.SSS]" />
            </wire-tap>


....
...
</flow>

フィルターなしでフローを実行してみて、フローがファイルを選択しているかどうかを確認してください。その場合は、フィルターの正規表現を変更してください。

お役に立てれば。

于 2014-05-21T02:11:46.693 に答える