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.
Solved! Go 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
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.