Skip to Content
author's profile photo Former Member
Former Member

How to detect Approval and Reject

Hi Everyone,

I have a service that detect Delete, Get, Set, for a resource in a km repository, but I have to detect Approval and Reject actions on resources,

After reading and looking for an hour in the forums I can't fine some useful example, so Can anybody tellme where I can find some examples or some info about that specific actions.

Right now the service is working fine for the commented actions, I'm using

....getEventBroker().register(this,new ResourceEvent(ResourceEvent.CREATE_CHILD, null));

....getEventBroker().register(this,new ResourceEvent(ResourceEvent.GET, null));

and so on to register.

Thanks in advance

Luis

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2007 at 11:32 AM
    private static IStatemanagementEvent PUBLISH_EVENT = new StatemanagementEvent(StatemanagementEvent.PUBLISH,null);
    
    IResourceEventBroker broker = resource.getRepositoryManager().getEventBroker();     
    
    broker.register(this, PUBLISH_EVENT, IEventBroker.PRIO_MIN,true);
    

    The above code registers an event listener for the document publish event.

    Similarly there are other events available in IStateManagementEvent class like hte following.

    BACK_IN_PROGRESS

    PRE_BACK_IN_PROGRESS

    PRE_PUBLISH

    and so on.

    Check them out.

    Hope this helps.

    Pradeep.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 12:55 PM

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.