You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Sterling Integrator业务流程利用GPM筛选XML/TXT文件

Hey there! I’ve got you covered on setting up that XML/TXT file filter using Sterling Integrator’s Graphical Process Modeler (GPM). Since you’re just diving into MFT basics, I’ll break this down into simple, actionable steps so you can get it working quickly.

Step-by-Step Guide to Filter XML/TXT Files via GPM

1. Start with Your File Source

  • Drag a File System Adapter onto the GPM canvas. Double-click it to configure:
    • Point it to your input directory where files are stored.
    • Set polling frequency (if you need continuous monitoring) and basic file access settings.
  • This adapter will pick up files from your target directory and pass them into the process flow.

2. Add a Filter Service to Check File Types

  • Next, drag a Filter Service node onto the canvas and connect it to the File System Adapter’s output port.
  • Double-click the Filter Service to open its configuration:
    • In the Filter Criteria section, use the %Filename% variable to reference the incoming file’s name.
    • Enter this condition to target XML/TXT files:
      %Filename% ENDSWITH '.xml' OR %Filename% ENDSWITH '.txt'
      
    • If you want to be case-insensitive (e.g., catch .XML or .TXT too), adjust the condition with the TOLOWER() function:
      TOLOWER(%Filename%) ENDSWITH '.xml' OR TOLOWER(%Filename%) ENDSWITH '.txt'
      
    • Set the filter action to Include—this ensures only matching files move forward in the flow.

3. Route Passed/Failed Files (Optional but Useful)

The Filter Service has two output ports:

  • Passed: Connect this to your next process steps (e.g., archiving the file, sending it to another system via another adapter).
  • Failed: Route these non-qualifying files to a "rejected" directory using another File System Adapter, or add an Alert Service to notify you about unsupported file types.

4. Validate and Activate Your Process

  • Click the Validate button in the GPM toolbar to check for configuration errors (common issues include typos in variable names or filter conditions).
  • Save the process, then activate it from the Sterling Integrator dashboard.
  • Test it by dropping XML/TXT files into your input directory—they should flow through to your target step. Try a non-qualifying file (like .pdf) to confirm it gets routed to the failed path.

If you hit any snags (like variable name mismatches or adapter configuration issues), feel free to ask for clarification—this stuff takes a little trial and error when you’re starting out!

内容的提问来源于stack exchange,提问作者DNBeritcss

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:51:02