Triggers in Alfresco while adding a document

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

Triggers in Alfresco while adding a document

Jump to solution

Hello Community,

I wanna understand technically how Triggers work in Alfresco, (in the case of adding a document into repository).

Thank you in advance.

Best regards.

1 Solution

Accepted Solutions
abhinavmishra14
Advanced

Re: Triggers in Alfresco while adding a document

Jump to solution

You should explore behaviors to better understand how to listen to events and execute/run any code as needed. org.alfresco.repo.node.NodeServicePolicies has several methods to listen to node events.

example:

beforeAddAspect

beforeArchiveNode

beforeCreateNode

beforeCreateStore

beforeDeleteAssociation

beforeDeleteChildAssociation

beforeDeleteNode

beforeMoveNode

beforeRemoveAspect

beforeSetNodeType

beforeUpdateNode

onAddAspect

onCreateAssociation

onCreateChildAssociation

onCreateNode

onCreateStore

onDeleteAssociation

onDeleteChildAssociation

onDeleteNode

onMoveNode

onRemoveAspect

onSetNodeType

onUpdateNode

onUpdateProperties

 

This is a good starting tutorial to learn behaviors: https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View solution in original post

1 Reply
abhinavmishra14
Advanced

Re: Triggers in Alfresco while adding a document

Jump to solution

You should explore behaviors to better understand how to listen to events and execute/run any code as needed. org.alfresco.repo.node.NodeServicePolicies has several methods to listen to node events.

example:

beforeAddAspect

beforeArchiveNode

beforeCreateNode

beforeCreateStore

beforeDeleteAssociation

beforeDeleteChildAssociation

beforeDeleteNode

beforeMoveNode

beforeRemoveAspect

beforeSetNodeType

beforeUpdateNode

onAddAspect

onCreateAssociation

onCreateChildAssociation

onCreateNode

onCreateStore

onDeleteAssociation

onDeleteChildAssociation

onDeleteNode

onMoveNode

onRemoveAspect

onSetNodeType

onUpdateNode

onUpdateProperties

 

This is a good starting tutorial to learn behaviors: https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)