Announcement Announcement Module
Collapse
No announcement yet.
Monitoring an XML file to trigger regeneration of ITD Metadata Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Monitoring an XML file to trigger regeneration of ITD Metadata

    Hi all,

    I am developing an add-on that will be monitoring some XML files and I'd like the add-on to trigger the regeneration of an ITD metadata. I tried to use file monitoring but it was unsuccessful. My questions are:

    1. Is there a proper (right) way in Roo to monitor file change?
    2. After the file change event occurred, how could I trigger the regeneration of an ITD metadata programmatically?

    Thank you

    Chanwit

  • #2
    Finally I've found steps to achieve these.

    1. I have my metadataProvider to implements FileEventListener.
    2. To trigger regeneration of my ITD metadataProvider, I call metadataService.evictAndGet(mid).
    and call notifyDownstream(mid), where "mid" is a metadata identification string starting with "MID:".

    Comment

    Working...
    X