
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2021 08:46 AM
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.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2021 11:32 AM
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
(ACSCE, AWS SAA, Azure Admin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2021 11:32 AM
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
(ACSCE, AWS SAA, Azure Admin)
