Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

km modify properties

i need to call the method received when I change a property, the problem is that this method is called only when the resource is in state "approved".

this is the code I´m using.

Thanks in advance,

Regards.


protected void addRepositoryAssignment(IRepositoryManager mgr) throws ServiceNotAvailableException {
	// Implement this method: Usually the service registers itself for certain events at the repository manager.
	try {
		mgr.getEventBroker().register(this, 
new ResourceEvent(ResourceEvent.CREATE_CHILD, null));	
		mgr.getEventBroker().register(this,      com.sapportals.wcm.repository.service.statemanagement.cm.StatemanagementEvent.BACK_IN_PROGRESS_TEMPLATE);		
	} catch (WcmException e) {
			e.printStackTrace();
	}
}

protected void removeRepositoryAssignment(IRepositoryManager mgr) throws WcmException {
	mgr.getEventBroker().unregister(this, 
      com.sapportals.wcm.repository.service.statemanagement.cm.StatemanagementEvent.BACK_IN_PROGRESS_TEMPLATE);
}

Former Member
Not what you were looking for? View more on this topic or Ask a question