cancel
Showing results for 
Search instead for 
Did you mean: 

Run alfresco rule on 'delete'

msvoren
Champ in-the-making
Champ in-the-making
Hi!
Trying to execute a rule when I DELETE a file in space.
Setting the "outbound" rule doesn't help. This only works in case I'm MOVING that file to some other space.

Is the any trick on that?
Thank you!
3 REPLIES 3

sanket
Champ on-the-rise
Champ on-the-rise
I am facing the same problem.
If u get a solution to it, please post it.

Thanks,
Sanket.

sjeandroz
Champ in-the-making
Champ in-the-making
Hi!

I have the same problem.

I want to execute a javascript in case of delete a file and an other javascript in case of moving a file.

unfortunatly, content rules seems don't see the difference between two actions…

someone have an idea?

thanks and sorry for my bad level in english…

mikemars
Champ in-the-making
Champ in-the-making
It's a bit long winded, but one option could be to create a custom Aspect.

You can then bind a behaviour to the aspect and implement the NodeServicePolicies.onDeleteNodePolicy. Within the onDeleteNode method you execute your action.

Then simply add the aspect to the files.