Mule入站端点不是选择文件

时间:2014-05-20 19:52:05

标签: mule endpoint inbound

<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并未从该入站路径位置选择文件。

1 个答案:

答案 0 :(得分: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>

尝试在没有过滤器的情况下执行您的流程,并查看流程是否正在挑选文件。如果是这样,请修改过滤器正则表达式。

希望这会有所帮助。