Content Management and Capture

 View Only
Expand all | Collapse all

Sample Event and Subscription

  • 1.  Sample Event and Subscription

    Posted Wed February 14, 2024 01:28 PM

    Hi Everyone, 

    We are planning to extract the metadata data from FileNet using the event and subscription when document check-in happens regularly. Can anyone share the sample event and subscription Java code and also extract the PropertyDescriptionList of the document class?

    Thanks,

    Asheesh 



    ------------------------------
    Asheesh Ravula
    ------------------------------


  • 2.  RE: Sample Event and Subscription

    Posted Tue February 27, 2024 10:48 AM

    Hello,

    Have you checked the IBM documentation? There are some sample codes available. Follow this link at the bottom of the page https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=subscriptions-working there is the Java code of an EventAction Handler. 

    But, if you ask me, I don't think Event Handler is the best approach for your UC. I'd rather use a Webhook https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=actions-v557-later-creating-webhook-event-action or an asynchronous task. 

    Cheers,

    Olivier BALTUS



    ------------------------------
    Olivier Baltus
    NSI Luxembourg
    ------------------------------