cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger on restore from the trashscan

npavlov
Confirmed Champ
Confirmed Champ

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 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

Hello.

You can try using the following policy:

org.alfresco.repo.node.NodeServicePolicies.OnRestoreNodePolicy

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

View answer in original post

2 REPLIES 2

douglascrp
World-Class Innovator
World-Class Innovator

Hello.

You can try using the following policy:

org.alfresco.repo.node.NodeServicePolicies.OnRestoreNodePolicy

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

thanks