cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Content Outbound rules

sandipparikh04
Champ in-the-making
Champ in-the-making
Hello All,

I am new bee with Alfresco development. I am trying to use Outbound Rule for deleting any Content from my existing Spaces.
For that i have made one Customized rule and apply to my Root Folder with sub folders.

Now i require Parent information of the deleted file. Now when i am trying to delete any content the rules working properly
but when i am trying to retrieve parent information it gives me invalid node refrenece error. Here i think problem is it gives me deleted nodes refrence so i am not able to retrieve parent information for same. So can any one let me know is it possible , that before deleting any content i can get the require parent information and then content deleted by setting the rule.

Awaiting for your response,
Thanks & Regards
Sandip Parikh
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

If you delete a large folder structure and have the rule setup as you indicate then there is guarantee that the delete of the child rule will fire before or after the parent has been deleted.  In this case the parent has been processed before the child and there can not be retrieved.

You may need to look at storing the details of the node's being deleted in the transaction context and if the parent node is not available the implementation of the rule could then inspect the details of the node previously deleted in that transaction.

Cheers,
Roy