<?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: Discover updated properties on rule service executed action. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260226#M213356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No I don't think there is an easy way to determine what has changed through rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, as you suspect, you can't rely upon modification dates since they are only approximate to about a second. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you point out there are behaviours that will allow you to determine what has changed.&amp;nbsp;&amp;nbsp; Do you actually need to use a rule for your piece of functionality, can you not just use a behaviour?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 21:33:00 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2010-11-22T21:33:00Z</dc:date>
    <item>
      <title>Discover updated properties on rule service executed action.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260225#M213355</link>
      <description>When you set a rule for inbound content it fires whenever content is added or updated. I can "manage" to detect if it is a new content by comparing creation and modification dates of the content, but is this a safe way of doing so ? Although not very probable it is technically possible for a content</description>
      <pubDate>Mon, 22 Nov 2010 18:39:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260225#M213355</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-11-22T18:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Discover updated properties on rule service executed action.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260226#M213356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No I don't think there is an easy way to determine what has changed through rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, as you suspect, you can't rely upon modification dates since they are only approximate to about a second. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you point out there are behaviours that will allow you to determine what has changed.&amp;nbsp;&amp;nbsp; Do you actually need to use a rule for your piece of functionality, can you not just use a behaviour?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 21:33:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260226#M213356</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-11-22T21:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Discover updated properties on rule service executed action.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260227#M213357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, what I want to achieve is "location" related, not "type" related. I want to create some entries in a Share Site's discussion board when a content is created/updated in it's document library. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK behaviour's execution (class policies at least) are constrained based on the node's type or aspect so in order to achieve my goal I would have to bind the policy to "cm:content" and then, in the behaviour decide if the created node is related to a site that requires notification or not. That seems like a very bad and overkill idea, isn't it ? Instead I managed to programatically add a rule at site-creation time that fires on "inbound" events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I could instead do it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Add a rule to the document library that on create adds a custom "notifyToForum" aspect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Add a behaviour that fires on "onUpdateProperties" of the "aspect". ( I think this property fires even on creation time, but that should be easy to detect when this happens based on the previous properties map )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Add a behaviour that fires on "beforeDeleteNode" of the "aspect", to notify the deletion of a file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Add a behaviour that fires on "onCreateVersion", although probably the creation of a new version also fires&amp;nbsp; "onUpdateProperties" and this won't be neccesary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it make sense ? I'll give it a try this afternoon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 09:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/discover-updated-properties-on-rule-service-executed-action/m-p/260227#M213357</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-11-23T09:52:45Z</dc:date>
    </item>
  </channel>
</rss>

