Skip to main content

File Listener (IDM)

Overview

The File Listener (IDM) trigger monitors Infor Document Management for new or changed document resources and starts workflow iterations for matching files.

Purpose

Use this trigger when documents stored in IDM must be downloaded and processed automatically by a workflow.

Configuration

FieldDescription
Infor ION ServiceInfor ION service used to access IDM. For more, see Infor ION Service.
Document TypeIDM document type to monitor.
Filename PatternOptional filename pattern. * matches multiple characters and ? matches one character.
Read file content to propertyStores supported file content in IDM_FILE_LISTENER_CONTENT.

Outputs

OutputData TypeCollectionDescription
NewFileNodeFileFalseThe trigger outputs a NodeFile for each matching IDM resource.

Properties

PropertyFlowDataTypeDescription
IDM_FILE_LISTENER_ITEM_PIDStringIDM item PID
IDM_FILE_LISTENER_RESOURCE_NAMEStringResource name
IDM_FILE_LISTENER_LAST_CHANGED_TSStringLast changed timestamp
IDM_FILE_LISTENER_CREATED_TSStringCreated timestamp
IDM_FILE_LISTENER_ITEM_INFOJsonNodeFull IDM item information
IDM_FILE_LISTENER_CONTENTStringThe file content inside a property

Processing Logic

The trigger builds an IDM query for the selected document type and optional filename pattern. On the first run, it queries matching resources ordered by LASTCHANGEDTS. On later runs, it queries only resources newer than the stored last changed timestamp. Files are downloaded and emitted sequentially; after a successful non-manual iteration, the stored timestamp is updated.

Examples

  • report_*.pdf matches files such as report_january.pdf and report_2023.pdf.
  • data_??.csv matches files such as data_01.csv and data_AZ.csv.

Notes / Limitations

  • The trigger requests up to 10 IDM items per polling run.
  • Manual runs do not update the stored timestamp.
  • File content is only stored as a property when the option is enabled and the file type can be read safely.