Catch events when documents change

Hi. We would like to do realtime indexing of content in our km engine. Is there a way to create a listener which is triggered anytime a document changes, so that we can inform our "TREX" (or a 3rd party search engine)?
Next step would be to also catch an event everytime permissions for a document change.
I would appreciate, if someone could elaborate on the possibilities.

Hi Sebastian,
yes, you can implement an IEventReceiver an listen to certain events:
public class MyEventReceiver implements IResourceEventReceiver {
    public MyEventReceiver() {
     IResourceEventBroker broker = resource.getRepositoryManager().getEventBroker();
        broker.register(this, IResourceEvent.RENAME_EVENT, IEventBroker.PRIO_MIN, true);
    public void received(IEvent event) {
     if( event instanceof IResourceEvent ) {
      IResourceEvent resourceEvent = (IResourceEvent)event;
      IResource resource = resourceEvent.getResource();
See JavaDoc here: https://media.sdn.sap.com/html/submitted_docs/nw_kmc/javadoc/com/sapportals/wcm/util/events/package-summary.html
KMC Developer Guide Eventing intro: https://media.sdn.sap.com/html/submitted_docs/nw_kmc/introduction/rf/concepts/rf_concepts.html#events
Regards,
Thilo

Similar Messages

  • APP-FND-01926 The Custom Event  WHEN-LOGON-CHANGED...

    Hi,
    After compiling and placing a 'custom' CUSTOM.pll (and plx) file on the server, when logging into Applications receiving ERROR:
    APP-FND-01926 The custom event WHEN-LOGON-CHANGED raising unhandled exception: User Defined exception.
    This is for R12.1.3
    The code was moved to the original base version of the R12 CUSTOM.pll file...
    I read many other Notes on this error, but most refer to an error related to a Program Unit Not found and requiring a regeneration of the JAR files.
    Would this be the same situation?
    When we place the original back in place the forms login works.
    Any ideas?
    Thanks,
    Lamonte

    check ur CLASSPATH environment variable ur Custom.plx library should visible on runtime to Classpath variable.
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED ra

    When login Apps, get APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Applied patch
    6241631 11i.ATG_PF.H.delta.7 (RUP 7) and it's pre-requisite patches
    Forms can not be launched successfully.
    APP-FND--01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-01403: no data found
    Followed
    Note 391243.1: Unable to access forms - getting APP-FND-01926 error (Doc ID 391243.1)
    Note 555409.1: Client Gets App-Fnd-01926 Every Time After Bounce Apps 11i Forms Service (Doc ID 555409.1)
    these two notes, can not solve the issue.
    Executed following action plans:
    1. Backup custom.pll file on your issued instance(DEV instance).
    2. Copy a custom.pll files from a working environments(i.e. PROD instance) to this issued instance(DEV instance).
    3. Compile the new copied Library CUSTOM.pll manually by running the command:
    f60gen module=CUSTOM.pll userid=APPS/APPS output_file=$AU_TOP/resource/CUSTOM.plx module_type=library batch=no compile_all=special4. The $FORMS60_PATH needs to be in sync with the the Context.xml specifically the s_f60path variable
    i.e >/oracle/apps/test10appl/au/11.5.0/resource:/oracle/apps/test10appl/au/11.5.0/resource/stub</FORMS60_PATH>
    5. Run Autoconfig instantiate the changes.
    Issue still exists.
    Please HELP~~
    Thanks,
    Jackie

    Hello Srini,
    app11i@hpfsapp2> ls -ltra CUSTOM
    -rwxr-xr-x 1 app11i dba 24576 Aug 29 2001 TMCUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Mar 8 2006 CUSTOM.pll.backup
    -rwxr-xr-x 1 app11i dba 24576 Feb 22 2007 CUSTOM.pll.20120215
    -rwxr-xr-x 1 app11i dba 32768 Oct 4 2007 CHRM_CUSTOM.plx
    -rw-r--r-- 1 app11i dba 36864 Oct 8 2007 CHRM_CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 20480 Feb 14 15:20 TMCUSTOM.plx
    -rw-r--r-- 1 app11i dba 24576 Feb 15 09:22 CUSTOM.pll
    -rwxr-xr-x 1 app11i dba 16384 Feb 15 09:23 CUSTOM.plx
    I don't quite understand "only one copy of CUSTOM.plx in the PATH directories", what is PATH directories? How to check? You mean environment variable?
    EBS version: 11.5.10.2
    DB version: 9.2.0.8
    OS: Linux x86
    Thanks,
    Jackie

  • SharePoint 2013 document library workflow to send emails when document changes

    Hi All,
    Need a email alerts to setup when documents get change in a SharePoint 2013 document library.  Mail should go to all the members in a SharePoint Security group.
    Many Thanks 
    sudesh withanage

    Out of the box , You cannot set alerts for SharePoint group. You may try -
    1- Create a group in active directory, add users to the ADgroup. Add that ADgroup in Sharepoint and configure alert.
    2- You can set up a new user and change their email to that of a distribution list, and then assign the alerts to this user.
    3- You can create a custom workflow/action or event receiver that will send an email to a distibution list or programmatically traverse the SPGroup's members and send them the notification email, whenever an item is added or changed.
    4- You can try this , this was for WSS3 -
    http://advancedalert.codeplex.com/
    5- you can to use SharePoint Designer and create a workflow that send an email to SharePoint group.
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Catch event when Application Server is shutdown

    Hi All,
    Actually I want to catch an event do something when weblogic server is shutdown.
    How can I catch the event.
    Any help would be highly appreciated.
    I tried by implementing ServletContextListener interface, but in that I can only catch the event when weblogic is started, but not when it is shutdown.

    Create a class that implements the ServletContextListener interface:
         public class myServletContextListener implements ServletContextListener
    The ServletContextListener interface has two methods that must be implemented:
         public void contextInitialized(ServletContextEvent sce)
         public void contextDestoyed(ServletContextEvent sce)
    Register the listener in the web.xml:
         <web-app>
              <context-param>
                   <param-name>param1</param-name>
                   <param-value>paramValue1<param-value>
              </context-param>
              <listener>
                                                     <listener-class>
                                                                com.listeners.MyServletContextAttributeListener
                     </listener-class>
              </listener>
              <servlet>
                   <servlet-name>test</servlet-name>
                   <servlet-class>com.test</servlet-class>
                   <init-param>
                        <param-name>param1</param-name>
                        <param-value>paramValue1</param-value>
                   </init-param>
                   <load-on-startup>1</load-on-startup>
              </servlet>
              <servlet-mapping>
                   <servlet-name>test</servlet-name>
                   <url-pattern>/test</url-pattern>
              </servlet-mapping>
         </web-app>When the server starts up the servlet context (usually on server start up) it will call the contextInitialized method of your myServletContextListener class. When the server shuts down the servlet context (usually on server shutdown) it will call the contextDestroyed method of your myServletContextListener class.
    With in these methods you can usually assume that the server is starting/stopping and do what it is you wish to do.
    However there are two things to bear in mind:
    1- Most servers offer a manager app that allows individual servlet contexts to be stopped/started without shutting down the server o you may get false results depending on you is managing the server.
    2- I am not sure if the methods will be called if the server suffers a catastrophic error and crashes. For example a out of memory error. So you may miss a server shut down but the error should be logged in the tomcat log files.

  • Tigger event when user change iphone time

    It is possible, we can trigger event if user change date and time of iphone.

    Did you traced ICI, if any de-register events getting published when you close IE.

  • Best event when data changes via a user in a datagrid

    How do I capture when data changes via a user in a datagrid?
    change event?

    thanks mate but I'm not sure where to put it:
    <mx:AdvancedDataGridColumn headerText="sell" dataField="sell" textAlign="right" editable="true">
                    <mx:itemEditor>
                        <fx:Component>                   
                        <s:MXAdvancedDataGridItemRenderer>   
                            <s:TextInput width="100%" text="{data.sell}" fontWeight="bold" contentBackgroundColor="#eeeeff" color="#3333ff"  textAlign="right"  restrict=".0-9" maxChars="11">                                           
                            </s:TextInput>                                               
                        </s:MXAdvancedDataGridItemRenderer>                                       
                        </fx:Component>               
                    </mx:itemEditor>                               
                </mx:AdvancedDataGridColumn>

  • Dev2k and event when tabpage changed ?

    Hi !
    Does Dev2k 5.0 generate an event when you press or change a
    tabpage? I haven't succeded in finding one yet, but perhaps
    someone knows about it or know of a workaround ?
    Also there is a trigger called ON-DISPATCH-EVENT !! Does anyone
    know what you can do with this ? or what it does ?
    Thanks,
    Kenneth ([email protected])
    null

    When you click on a tab in forms 5 and greater, it first
    when-tab-page-changed. Note that this trigger only first when a
    users explicitly clickes on a tab. If the application allows you
    to navigate to an item on a different tab page, the trigger does
    not fire, but the tabs do change to reflect the current tab.
    Also, there are two system variable that are helpful; they are
    :system.tab_new_page and :system.tab_previous_page. For some
    reason, the help system only includes references to the tab
    trigger and system tab variables on the FIND tab of the help
    search. The INDEX tab page of help does not list them.
    Good luck.
    Brian
    Kenneth Breit Bedsted (guest) wrote:
    : Hi !
    : Does Dev2k 5.0 generate an event when you press or change a
    : tabpage? I haven't succeded in finding one yet, but perhaps
    : someone knows about it or know of a workaround ?
    : Also there is a trigger called ON-DISPATCH-EVENT !! Does anyone
    : know what you can do with this ? or what it does ?
    : Thanks,
    : Kenneth ([email protected])
    null

  • Generate event when stack changed

    I have a task develop a class Stack that generate event when you add new element ? Develop a class Stack is not a problem, what means event that apears when a new element is added ?[                                                                                                                                                                                                                                                                                                                                                                                               

    That about awt / swing ..or I can to apply listeners
    to My Stack ?Sorry, I thought there were also non-GUI examples there. Apparently not.
    It's probably the intention to implement the observer pattern into your code.
    Here's a small demo of how this can be done:import java.util.List;
    import java.util.ArrayList;
    class Main {
        public static void main(String[] args) {
            MagazinePublisher publisher = new MagazinePublisher();
            Subscriber carl = new Subscriber("Carl");
            Subscriber pete = new Subscriber("Pete");
            Subscriber zeke = new Subscriber("Zeke");
            publisher.registerObservers(carl);
            publisher.registerObservers(pete);
            // whenever the state of the 'publisher' changes, it's
            // subscribers should be notified
            publisher.notifyObservers();
            publisher.registerObservers(zeke);
            publisher.notifyObservers();
            publisher.removeObservers(pete);
            publisher.removeObservers(carl);
            publisher.notifyObservers();
    interface MyObserver {
        void update(int edition);
    interface MySubject {
        void registerObservers(MyObserver mo);
        void removeObservers(MyObserver mo);
        void notifyObservers();
    class MagazinePublisher implements MySubject {
        List<MyObserver> observers;
        int edition;
        public MagazinePublisher() {
            observers = new ArrayList<MyObserver>();
            edition = 1;
        public void notifyObservers() {
            for(MyObserver mo : observers) {
                mo.update(edition);
            edition++;
        public void registerObservers(MyObserver mo) {
            observers.add(mo);
        public void removeObservers(MyObserver mo) {
            observers.remove(mo);
    class Subscriber implements MyObserver {
        String name;
        public Subscriber(String n) {
            name = n;
        public boolean equals(Object o) {
            return this.name.equals(((Subscriber)o).name);
        public void update(int e) {
            System.out.println(name+" recieved a copy of the "+e+" edition!");
        // hashCode() and other methods ...
    }Details about this design pattern:
    http://en.wikipedia.org/wiki/Observer_pattern
    or Google, of course:
    http://www.google.com/search?hl=en&q=Observer+pattern&btnG=Google+Search
    Good luck!

  • What is the proper event when i change an edit text

    Hi Dear;
    which event is when i an edit text value changes ?
    regards

    If you want to catch changes in exittext, store his value to global variable or somewhere to other exittext (invisible) and play with event
    pval.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN
    and compare the values in edittext and invisible edittext. If the values are different, the edittext value changes.

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • Event when network changes

    Hello all,
    I am trying to figure how to use an activex callback when the computers(windows 7) network connection changes.
    I am able to access and use properties of the NETWORKLIST.INetworkListManager class but I am not able to get the Reg Event Callback to work for NETWORKLIST.INetworkListManager.NetworkConnectivityChanged.
    Does anyone have experience with this class or more ActiveX knowledge to get this working?
    Perhaps there is another more commonly used method to see network changes without polling?
    I hope I have provided enough details to get some help. Thank you for your time.
    Attachments:
    Z_NetworkConnectivityChangedEvent.vi ‏15 KB
    Z_NetworkCPropteryChangedEventCallback.vi ‏8 KB

    Wandern wrote:
    Hello all,
    I am trying to figure how to use an activex callback when the computers(windows 7) network connection changes.
    I am able to access and use properties of the NETWORKLIST.INetworkListManager class but I am not able to get the Reg Event Callback to work for NETWORKLIST.INetworkListManager.NetworkConnectivityChanged.
    Does anyone have experience with this class or more ActiveX knowledge to get this working?
    Perhaps there is another more commonly used method to see network changes without polling?
    I hope I have provided enough details to get some help. Thank you for your time.
    I cannot get this working in LabVIEW 2013 32-bit.
    Not sure why.
    I am able to get the callback to work in C# Express 2010.

  • Event when Sequence changes

    Hi!
    In my GUI application I need to get the name of 'Sequence' when 'Sequence' of an Execution changes. Is there any event to get this change. Please help
    Thanks

    tsgy,
    I couldn't find an event that would notify you of when the sequence of an execution changes, but you don't say why you are trying to use this information.
    If you just want the name of the sequence for display reasons, then you can use any of the TestStand UI Controls, such as the Label.  Then you can use ExecutionViewManager.ConnectCaption with the Caption Source of CaptionSource_CurrentSequence
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • NOTE OSS 757361 - Additional data records in BW when document changed

    Hi developers,
    you can give me clarifications on this part of note.I have not understood where do enhancements. I must inserted code in EXIT_SAPLRSAP_001 for the  fields added for the procedure delta when the field is modified?
    This USEREXIT_SAVE_DOCUMENT_PREPARE where must be checked?
    Solution: Check the user exits of the SD and LE (such as the        
    USEREXIT_SAVE_DOCUMENT_PREPARE) for the following or similar code:  
    if XVBAP-UPDKZ is initial.                                          
      xvbap-updkz = 'U'.                                                
      modify xvbap.                                                     
    endif. 
    Thanks and regards
    Domenico

    Hi Domenico,
    this note is relevant only if you have some problem (duplication of some records, wrong after image and so on...) when you upload your delta in Logistic Cockpit area AND you enhanced your LIS communication structure (MCVBAP and so on...) thanks to some LIS user-exit (USEREXIT_SAVE_DOCUMENT_PREPARE, that is, specific code that fill your added fields when a document is saved
    In other words, this note is not relevant if you are doing some enhancement in the transfer structure, because you cannot, from there, manage any delta mechanism and image!
    Let me know if you need some more explanations..
    Hope it helps!
    Bye,
    Roberto

  • Catch event when user add an Invoice (push the Add button)

    i have User Defined Table(@User_Table1)
    so i like too whenever user click the Add Button, beside add an invoice..it write to the @User_Table1..
    at the moment, i using Screen Painter to make the form not using the existing one like A/R Invoice for example
    thanks

    I dont know about possibility how to continue the process of adding in case, that there will be some user input like msgbox, inputbox or something else. The only way how to do it (in my oppinion) is to at the end of the code set bubbleevent to true (maybe the msgbox sets it to false).  You have 2 choices how to recevie invoice details:
    - in case of beforeaction = true receive it from active form
    - in case of beforaction = false receive number of invoice and through object get details of invoice
    Petr

Maybe you are looking for