<?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: Trigger &amp;quot;When items are updated&amp;quot; rule when editing associations only in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56386#M20445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered writing a behavior that would bind to one or more of the following Node Service Policies:&lt;/P&gt;&lt;P&gt;onCreateAssociation&lt;BR /&gt;onCreateChildAssociation&lt;BR /&gt;onDeleteAssociation&lt;BR /&gt;onDeleteChildAssociation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2019 19:53:30 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2019-02-18T19:53:30Z</dc:date>
    <item>
      <title>Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56385#M20444</link>
      <description>I've recently discovered that folder rules that run when "items are updated" do not fire if the only update is an association change.&amp;nbsp; I need these rules to run on association changes too.&amp;nbsp; Has anyone come up with a work around for this limitation, or is there a configuration I can make to enable th</description>
      <pubDate>Fri, 15 Feb 2019 20:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56385#M20444</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-02-15T20:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56386#M20445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered writing a behavior that would bind to one or more of the following Node Service Policies:&lt;/P&gt;&lt;P&gt;onCreateAssociation&lt;BR /&gt;onCreateChildAssociation&lt;BR /&gt;onDeleteAssociation&lt;BR /&gt;onDeleteChildAssociation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 19:53:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56386#M20445</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2019-02-18T19:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56387#M20446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I considered that I might have to use behaviors in the end, but I was looking to see what other solutions where possible before going down that route.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there a way to configure the system so that association changes trigger the Update rule?&lt;/LI&gt;&lt;LI&gt;Is there a way to use a folder picker in a property but then save a property&amp;nbsp;of the selected node instead or in addition to creating an association?&amp;nbsp; This would work around the limitation.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One concern I have about using associations is that it seems like the code could run multiple times for one node edit.&amp;nbsp; What if someone edits a node and deletes two associations, adds two associations, and edits a property?&amp;nbsp; If I bind to the&amp;nbsp;onCreateAssociation,&amp;nbsp;onDeleteAssociation, and the equivalent for properties, will my code be called 5 times?&amp;nbsp; If so, is there a way to buffer these events so that I run a block of code no more than once per transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can separate property&amp;nbsp;change logic from the association change logic, but all of the association changes must be treated as a set and&amp;nbsp;handled&amp;nbsp;once per edit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:41:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56387#M20446</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-02-19T11:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56388#M20447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Is there a way to configure the system so that association changes trigger the Update rule?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, there is no out-of-the-box way to do this.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;Is there a way to use a folder picker in a property but then save a property&amp;nbsp;of the selected node instead or in addition to creating an association?&amp;nbsp; This would work around the limitation.&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not that I know of. You could, of course, write your own control and picker.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...is there a way to buffer these events so that I run a block of code no more than once per transaction?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can try setting your behavior to bind on TRANSACTION_COMMIT instead of FIRST_EVENT or EVERY_EVENT. A single edit should be part of the same transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:14:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56388#M20447</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2019-02-19T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56389#M20448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess behaviors are really the way to go then.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:30:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56389#M20448</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-02-19T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger "When items are updated" rule when editing associations only</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56390#M20449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it turns out, Alfresco the entire premise for this question was wrong.&amp;nbsp; Alfresco&amp;nbsp;&lt;STRONG&gt;should&lt;/STRONG&gt; fire the update rule when you edit an association and it does under most circumstances.&amp;nbsp; The fact that it sometimes does not turns out to be a bug that I am experiencing.&amp;nbsp; At this moment, I don't know how to recreate it but I will update the question when I do find out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/trigger-quot-when-items-are-updated-quot-rule-when-editing/m-p/56390#M20449</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-03-14T13:17:45Z</dc:date>
    </item>
  </channel>
</rss>

