Skip to Content
author's profile photo
Former Member

Notification on file creation in a folder

Hi all,

I would like to implement a service that can "observe" the document creation event in a specific CM folder and then I can process the document afterwards. Seems like the existing INotification event is only target to notify the user with email. Â

Is there any other APIs that can allow me to observe this event?

Thanks in advance.

Best Regards,

Jacky

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jan 12, 2004 at 05:47 PM

    Hi Jacky!

    There is a difference between the notifications and events:

    Notifications are indeed only meant for notifying users per email, to allow the observation of documents on a user level (e.g. subscription). This notification mechanism is build on events:

    Those events are the mechanism to observe a document on a coding level (e.g. subscription uses events to check for and trigger notifications).

    There are some further informations about events in sections 2.2.6 and 5.2.6 of the "Repository Framework Concepts", see "https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/repository framework concepts".

    The IResourceEventBroker and IResourceEventReceiver in the Java Doc "https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/km javadoc ep6 sp2" might be a good point to start with.

    Please notice, that an awful lot of events is generated within the Repository Framework, therefore it is very important, to register an IResourceEventReceiver only to the relevant events and NEVER to all events (don't use the ResourceEvent.ALL type)!

    Furthermore you should avoid to register to any of the "read"-events (GET, GET_CHILDREN, PROPERTY_GET types in ResourceEvent).

    Best regards,

    Paul

    Add comment
    10|10000 characters needed characters exceeded