I have a publication in FME Server that monitors a directory and sends a message to a topic when the contents of the directory change - for example, when a file gets updated.
When I start the monitor for the topic in FME Server, I get this JSON output:
Total: 1Shown: 1
Test_DirWatch_Topic arrived at 7:40:03
{
"ws_topic": "Test_DirWatch_Topic",
"dirwatch_publisher_path": "C:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\Data\\\\xls\\\\New Text Document.txt",
"dirwatch_publisher_content": "ENTRY_MODIFY C:\\\\ProgramData\\\\Safe Software\\\\FME Server\\\\Data\\\\xls\\\\New Text Document.txt",
"dirwatch_publisher_action": "MODIFY",
"fns_type": "dirwatch_publisher"
}I also have am FME script that subscribes to the topic and takes action when the topic receives the JSON above. However, I only want the script to take action if the directory change is a "modify" to a certain file (in this case, "New Text Document.txt"). There are other files in this directory and I don't want the script to take action when any of them change.
Is it possible for my FME script to get access to this JSON? Then I can break it down and determine which directory change occurred.Thanks