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
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