Trigger on restore from the trashscan

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

Trigger on restore from the trashscan

Jump to solution

I need to set a property after recovering a node from the trashcanWhat is the best way to do this?

Now I am thinking about using a trigger.

Could you tell me how to implement a trigger to restore the object from the trashcan? I chose 

  • onCreateNode

from the list (http://docs.alfresco.com/6.0/references/dev-extension-points-behaviors.html).

1 Solution

Accepted Solutions
Highlighted
Advanced II

Re: Trigger on restore from the trashscan

Jump to solution

Hello.

You can try using the following policy:

org.alfresco.repo.node.NodeServicePolicies.OnRestoreNodePolicy

alfresco-repository/NodeServicePolicies.java at ac38ac94ff4f9cbdf2671a9517781bda389a13c4 · Alfresco/... 

View solution in original post

2 Replies
Highlighted
Advanced II

Re: Trigger on restore from the trashscan

Jump to solution

Hello.

You can try using the following policy:

org.alfresco.repo.node.NodeServicePolicies.OnRestoreNodePolicy

alfresco-repository/NodeServicePolicies.java at ac38ac94ff4f9cbdf2671a9517781bda389a13c4 · Alfresco/... 

View solution in original post

Active Member II

Re: Trigger on restore from the trashscan

Jump to solution

thanks