如何使用 Sterling Integrator 中的业务流程通过 GPM 选择特定类型的文件(XML、txt)

How to pick a specific type of file (XML , txt) via GPM using a Business Process in Sterling Integrator

您好,我正在学习 MFT 的基础知识,我想创建一个业务流程来选择特定类型的文件,例如 xml 或仅 txt,当我传递它时

我不知道如何解决这个问题

非常欢迎任何帮助

您可以在 B2B 集成器中使用文件系统适配器提取服务。您可以使用文件名过滤器,以便该服务仅收集与收集文件夹中的指定过滤器匹配的文件。例子: *.txt 或 *.xml .

    <process name="ExampleFileCollection"> 
<operation name="File System Adapter"> 
<participant name="ExampleCollectionFSA"/> 
<output message="FileSystemInputMessage"> 
    <assign to="." from="*"/> 
    <assign to="Action">FS_COLLECT</assign> 
    <assign to="collectZeroByteFiles">false</assign> 
    <assign to="deleteAfterCollect">false</assign> 
    <assign to="fileModTimeThreshold">60</assign> 
    <assign to="filter">*.txt</assign> 
    <assign to="initialWorkFlowId">FIND_MESSAGE_CONSUMER</assign> 
    <assign to="maxThreads">10</assign> 
    <assign to="noFilesSetSuccess">false</assign> 
</output> 
<input message="inmsg"> 
    <assign to="." from="*"/> 
</input> 
</operation> 
    </process>