<?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: Dynamic Posts Not Automatically Posting (in preview) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262736#M215866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's odd. Do you find that, once you've nudged it by editing the query, it then picks up the schedule again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two properties that are looked at when automatically refreshing the dynamic asset collections: "ws:isDynamic" and "ws:refreshAt". The code that checks which asset collections need refreshing is in the DynamicCollectionProcessor class. Are you familiar with the Node Browser? If so, it would be useful to know what the values of these properties are on the asset collection node that you're having trouble with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code that causes the dynamic asset collection to be refreshed when you change the query is the onUpdateProperties method in the WebassetCollectionType class. The code that actually runs the query and associates the results with the asset collection is in the WebassetCollectionHelper class. This is also the code that sets the ws:refreshAt property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reviewing the code again just now, the logic &lt;/SPAN&gt;&lt;STRONG&gt;seems&lt;/STRONG&gt;&lt;SPAN&gt; to be correct, so there's obviously something unexpected happening. If you can, let me know what the values are of those properties are (and how the refreshAt property relates to the current time).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something else that may be useful is boosting the logging in that area of the code. Try adding this line to your log4j.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.logger.org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.DynamicCollectionProcessor=debug&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 08:59:30 GMT</pubDate>
    <dc:creator>bremmington</dc:creator>
    <dc:date>2011-02-21T08:59:30Z</dc:date>
    <item>
      <title>Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262735#M215865</link>
      <description>I'm having an odd issue that I'm looking for some help on. I have a Quick Start site that for some reason will not automatically post the latest articles using the dynamic method. The only time I can get the section.articles "folder" to grab the newest posts is if I make a change in the metadata Que</description>
      <pubDate>Fri, 18 Feb 2011 18:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262735#M215865</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-02-18T18:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262736#M215866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's odd. Do you find that, once you've nudged it by editing the query, it then picks up the schedule again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two properties that are looked at when automatically refreshing the dynamic asset collections: "ws:isDynamic" and "ws:refreshAt". The code that checks which asset collections need refreshing is in the DynamicCollectionProcessor class. Are you familiar with the Node Browser? If so, it would be useful to know what the values of these properties are on the asset collection node that you're having trouble with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code that causes the dynamic asset collection to be refreshed when you change the query is the onUpdateProperties method in the WebassetCollectionType class. The code that actually runs the query and associates the results with the asset collection is in the WebassetCollectionHelper class. This is also the code that sets the ws:refreshAt property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reviewing the code again just now, the logic &lt;/SPAN&gt;&lt;STRONG&gt;seems&lt;/STRONG&gt;&lt;SPAN&gt; to be correct, so there's obviously something unexpected happening. If you can, let me know what the values are of those properties are (and how the refreshAt property relates to the current time).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something else that may be useful is boosting the logging in that area of the code. Try adding this line to your log4j.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.logger.org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.DynamicCollectionProcessor=debug&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 08:59:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262736#M215866</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-02-21T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262737#M215867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, nudging the query doesn't kickstart the schedule again. It still sits idle after the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I don't know much about the Node Browser. I know where it is located but I don't know how to use it. I took a look at it but I'm not sure how how to search for the properties you mentioned in there. Is there some instructions or guide I can follow that would help me with the Node Browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try adding that line to the log later on tonight when my traffic dies down and I can restart the application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 21:51:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262737#M215867</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-02-22T21:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262738#M215868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately there's not much information about the node browser. Here's a quick set of instructions to get to the relevant data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;Open the node browser&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the list of available stores, select "workspace://SpacesStore"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the "Children" section of the page that's shown, select "company_home"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the "Children" section of the page that's shown, select "sites"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the "Children" section of the page that's shown, select the Share site that you're using for your WQS installation&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;In the "Children" section of the page that's shown, select "documentLibrary"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Keep drilling down the folder structure in this way to get to the problematic asset collection&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;On each page that the node browser shows you, there is a "Properties" section that shows you every property set on that node.&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;When you have reached your asset collection node, you should see values for these properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/website/1.0}minsToQueryRefresh" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}minsToQueryRefresh&lt;/A&gt;&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/website/1.0}refreshAt" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}refreshAt&lt;/A&gt;&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/website/1.0}isDynamic" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}isDynamic&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know what these values are, as well as the local time when you look at them. The refreshAt property should be greater than currentTime and less than (currentTime + minsToQueryRefresh). isDynamic should be "true". minsToQueryRefresh should be whatever you've set (probably "1", based on your initial post).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 08:09:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262738#M215868</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-02-23T08:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262739#M215869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for my delay in replying. Thanks for pointing out the node browser and the help in navigating it. I think I have a basic grasp of it and I think it can be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the values you've mentioned here is what I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I pulled this data on Mar. 02, 18:11:34 UTC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/model/website/1.0}minsToQueryRefresh" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}minsToQueryRefresh&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/website/1.0}refreshAt" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}refreshAt&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tue Mar 01 17:23:20 UTC 2011&lt;BR /&gt;{&lt;A href="http://www.alfresco.org/model/website/1.0}isDynamic" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/website/1.0}isDynamic&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; true&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that the "refreshAt" value is in the past. Just to be clear, should this node be constantly updating upon each refresh?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 18:22:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262739#M215869</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-03-02T18:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262740#M215870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very strange. That data is indicating that that particular asset collection was last updated at Mar 01 17:22:20 UTC 2011, but should have been updated again at Mar 01 17:23:20 UTC 2011. I can't imagine why it wasn't. I'll check the code again - remind me what version you're using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any other dynamic asset collections on this installation that are being updated correctly? Please would you post the query that you have defined on the asset collection? In fact posting all the information from the node browser window may be useful. Are any errors appearing in the log file? Certainly if an error occurs while executing the query then the refreshAt property won't be updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 19:04:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262740#M215870</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-03-02T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Posts Not Automatically Posting (in preview)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262741#M215871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using 3.4d from a nightly build from 1/12/11. I do not have a successful dynamic post on my live install but I do have sucessful dynamic posts on my local development box. They are both using the same builds the only difference being my live server is run on a Linux platform whereas my dev box is running the Windows version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try looking at the log file. I will try to make it do a dynamic post after editing the query again and see any fresh errors. I will post what I find when I see it. I will also post a copy of the entire node browser info. I'll put it in another reply as I'm juggling another project at the moment.&amp;nbsp; &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 03:02:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamic-posts-not-automatically-posting-in-preview/m-p/262741#M215871</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-03-07T03:02:00Z</dc:date>
    </item>
  </channel>
</rss>

