<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Triggers in Alfresco while adding a document in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/triggers-in-alfresco-while-adding-a-document/m-p/137044#M36779</link>
    <description>&lt;P&gt;You should &lt;A href="https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/behavior-policies/" target="_self" rel="nofollow noopener noreferrer"&gt;explore behaviors to better understand how&lt;/A&gt; to listen to events and execute/run any code as needed.&amp;nbsp;org.alfresco.repo.node.NodeServicePolicies has several methods to listen to node events.&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;PRE&gt;beforeAddAspect

beforeArchiveNode

beforeCreateNode

beforeCreateStore

beforeDeleteAssociation

beforeDeleteChildAssociation

beforeDeleteNode

beforeMoveNode

beforeRemoveAspect

beforeSetNodeType

beforeUpdateNode

onAddAspect

onCreateAssociation

onCreateChildAssociation

onCreateNode

onCreateStore

onDeleteAssociation

onDeleteChildAssociation

onDeleteNode

onMoveNode

onRemoveAspect

onSetNodeType

onUpdateNode

onUpdateProperties&lt;/PRE&gt;

&lt;P&gt;This is a good starting tutorial to learn behaviors:&amp;nbsp;&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 16:32:58 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2021-11-23T16:32:58Z</dc:date>
    <item>
      <title>Triggers in Alfresco while adding a document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/triggers-in-alfresco-while-adding-a-document/m-p/137043#M36778</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I wanna understand technically how Triggers work in Alfresco, (in the case of adding a document into repository).&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:46:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/triggers-in-alfresco-while-adding-a-document/m-p/137043#M36778</guid>
      <dc:creator>imane</dc:creator>
      <dc:date>2021-11-23T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Triggers in Alfresco while adding a document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/triggers-in-alfresco-while-adding-a-document/m-p/137044#M36779</link>
      <description>&lt;P&gt;You should &lt;A href="https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/behavior-policies/" target="_self" rel="nofollow noopener noreferrer"&gt;explore behaviors to better understand how&lt;/A&gt; to listen to events and execute/run any code as needed.&amp;nbsp;org.alfresco.repo.node.NodeServicePolicies has several methods to listen to node events.&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;PRE&gt;beforeAddAspect

beforeArchiveNode

beforeCreateNode

beforeCreateStore

beforeDeleteAssociation

beforeDeleteChildAssociation

beforeDeleteNode

beforeMoveNode

beforeRemoveAspect

beforeSetNodeType

beforeUpdateNode

onAddAspect

onCreateAssociation

onCreateChildAssociation

onCreateNode

onCreateStore

onDeleteAssociation

onDeleteChildAssociation

onDeleteNode

onMoveNode

onRemoveAspect

onSetNodeType

onUpdateNode

onUpdateProperties&lt;/PRE&gt;

&lt;P&gt;This is a good starting tutorial to learn behaviors:&amp;nbsp;&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:32:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/triggers-in-alfresco-while-adding-a-document/m-p/137044#M36779</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-11-23T16:32:58Z</dc:date>
    </item>
  </channel>
</rss>

