AnsweredAssumed Answered

Custom action on deleted Noderef

Question asked by mangar on Oct 5, 2012
Latest reply on Nov 8, 2012 by mangar
I have an action that needs to be triggered on a delete action.  I write my action and hook it to a space rule. The action triggers fine.

However, I get an error:

org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist:

at this line of code:

String fileName = (String) nodeService.getProperty(actionedUponNodeRef, ContentModel.PROP_NAME);

which makes sense, as I just deleted the node.

How do I get path/filename etc..  info in an action where I just deleted the node?

How do i get the information before the node is deleted?