<?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 Lazy properties: is there an example? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122389#M86201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to equip my content-type with a property whose value is dynamically computed ("lazy evaluation"). Is this technique being used somewhere in Alfresco? Could somebody point me to some file for an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to refer to the property from the JavaScript API via &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mynode.properties["my:propname"]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; and behind the scences my Java code is called and performs the lazy evaluation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any hint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 09:48:27 GMT</pubDate>
    <dc:creator>hbf</dc:creator>
    <dc:date>2007-09-27T09:48:27Z</dc:date>
    <item>
      <title>Lazy properties: is there an example?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122389#M86201</link>
      <description>Hi,I would like to equip my content-type with a property whose value is dynamically computed ("lazy evaluation"). Is this technique being used somewhere in Alfresco? Could somebody point me to some file for an example?My goal is to refer to the property from the JavaScript API via mynode.properties[</description>
      <pubDate>Thu, 27 Sep 2007 09:48:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122389#M86201</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2007-09-27T09:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lazy properties: is there an example?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122390#M86202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's an interesting idea (although may have some performance impact depending on how much calculation you perform lazily). You may be able to use Node Policies for this. It is possible to fire arbitary java code when nodes are created, deleted and properties set etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Services_Framework#Component_Policies" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Services_Framework#Component_Policies&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Policy_Component" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Policy_Component&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 12:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122390#M86202</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-28T12:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lazy properties: is there an example?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122391#M86203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may find this article on Alfresco Behaviours interesting - it sounds more appropriate to what you want to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/archives/2007/09/26/770" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/archives/2007/09/26/770&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 16:05:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122391#M86203</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-28T16:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lazy properties: is there an example?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122392#M86204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You may find this article on Alfresco Behaviours interesting - it sounds more appropriate to what you want to do:&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/archives/2007/09/26/770" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/archives/2007/09/26/770&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Kevin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculated properties could have some interesting applications.&amp;nbsp; For example content ranking based on weighted values of other properties etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've never really liked calculated fields in databases though they are neat but they are slow in large sets our when the calculation gets too complex.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 04:26:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lazy-properties-is-there-an-example/m-p/122392#M86204</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2007-09-29T04:26:59Z</dc:date>
    </item>
  </channel>
</rss>

