<?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 behavior to set association name in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298907#M252037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I generate node name dynamically, using OnCreateNode bahavior to calculate node name before saving it. I would also like to use the same generated name as association name (it is a common "contains" association, I just want to have descriptive name).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually, association name is set using nodeService.createNode(…) 'assocQname' parameter. Is it possible to set assoc name using behavior? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OnCreateNodePolicy and OnCreateChildAssociationPolicy use ChildAssociationRef parameter but it does not allow to set assocQName. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions, please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 11:55:24 GMT</pubDate>
    <dc:creator>darionis</dc:creator>
    <dc:date>2014-09-02T11:55:24Z</dc:date>
    <item>
      <title>behavior to set association name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298907#M252037</link>
      <description>Hello,I generate node name dynamically, using OnCreateNode bahavior to calculate node name before saving it. I would also like to use the same generated name as association name (it is a common "contains" association, I just want to have descriptive name).Usually, association name is set using nodeS</description>
      <pubDate>Tue, 02 Sep 2014 11:55:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298907#M252037</guid>
      <dc:creator>darionis</dc:creator>
      <dc:date>2014-09-02T11:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: behavior to set association name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298908#M252038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should try to move the node below the same parent using the new assoc name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, newName);&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nodeService.moveNode(nodeRef, parentRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, newName));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 17:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298908#M252038</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-09-02T17:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: behavior to set association name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298909#M252039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Angel!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:23:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/behavior-to-set-association-name/m-p/298909#M252039</guid>
      <dc:creator>darionis</dc:creator>
      <dc:date>2014-09-17T18:23:45Z</dc:date>
    </item>
  </channel>
</rss>

