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.
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
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.