<?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: setting datetime aspect properties in rule action in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18845#M8344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar, can you elaborate on that?&lt;/P&gt;&lt;P&gt;As we are talking about an action in a rule with the condition "a document entering a folder" I expect this to be run on the back-end and not client side. Some documents are put in folders through CMIS API.&lt;/P&gt;&lt;P&gt;The solution we are looking for is being able to set the datetime property as a rule action on a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 14:47:54 GMT</pubDate>
    <dc:creator>jim_van_dam</dc:creator>
    <dc:date>2017-03-17T14:47:54Z</dc:date>
    <item>
      <title>setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18843#M8342</link>
      <description>Are aspect datetime custom properties supported for the 'set property' rule action?We created an aspect with different properties and all show up when creating 'set property' rule actions except the d:datetime properties.We are using Alfresco community edition.If not supported we understand that we</description>
      <pubDate>Fri, 17 Mar 2017 08:58:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18843#M8342</guid>
      <dc:creator>jim_van_dam</dc:creator>
      <dc:date>2017-03-17T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18844#M8343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Try to set property on a document,&amp;nbsp;using ISO8601 format for datetimes in the&amp;nbsp;Javascript Console for example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;--C.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:26:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18844#M8343</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-03-17T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18845#M8344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar, can you elaborate on that?&lt;/P&gt;&lt;P&gt;As we are talking about an action in a rule with the condition "a document entering a folder" I expect this to be run on the back-end and not client side. Some documents are put in folders through CMIS API.&lt;/P&gt;&lt;P&gt;The solution we are looking for is being able to set the datetime property as a rule action on a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:47:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18845#M8344</guid>
      <dc:creator>jim_van_dam</dc:creator>
      <dc:date>2017-03-17T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18846#M8345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a bug. I have reproduced the problem on my machine with 201702-GA 5.2.0 (r135134-b14) schema 10005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps to reproduce were to use the Model Manager to create a new namespace and aspect. The aspect has a single datetime property and the default layout has been applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the aspect to documents and editing the property as normal works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when configuring a rule, the set property action shows the aspect under "Aspects" but when you click it, it offers no properties to set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please create a Jira and reference this forum thread?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:54:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18846#M8345</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-03-17T14:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18847#M8346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Jeff Potts&lt;/B&gt;, I have the same issue for example with&amp;nbsp;default effectivity aspect (in older Alfresco 201602GA), and the cm:from and cm:to properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Jim van Dam&lt;/B&gt;‌, try to define the rule and run&amp;nbsp;a script (with Alfresco Javascript API - it is server API) saved in /Data Dictionary/Scripts/ that sets the corresponding property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 15:14:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18847#M8346</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-03-17T15:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18848#M8347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write a JavaScript file with something like:&lt;/P&gt;&lt;P&gt;document.properties['tst:datetime1'] = new Date(); // Or whatever&lt;/P&gt;&lt;P&gt;document.save();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That JavaScript file is then uploaded to Data Dictionary/Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your folder rule, use the "execute script" action and point to the script you just uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it is in a rule it will be fired regardless of how the content is added to the repo, including via CMIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 15:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18848#M8347</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-03-17T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: setting datetime aspect properties in rule action</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18849#M8348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Cesar Capillas&lt;/B&gt;‌ thanks for the tips, I will see how quick the bug is fixed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and otherwise use your solution to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Jeff Potts&lt;/B&gt;‌ thank you for reproducing. I will create a ticket for it. If bug fixes are as quickly taken up as answers to questions I would be very impressed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created ticket:&amp;nbsp;&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/ALF-21884" title="https://issues.alfresco.com/jira/browse/ALF-21884" rel="nofollow noopener noreferrer"&gt;[ALF-21884] datetime property cannot be set using 'set property' action in rule - Alfresco JIRA&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 16:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/setting-datetime-aspect-properties-in-rule-action/m-p/18849#M8348</guid>
      <dc:creator>jim_van_dam</dc:creator>
      <dc:date>2017-03-17T16:01:35Z</dc:date>
    </item>
  </channel>
</rss>

