<?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 Updating Aspect Value from Custom Action in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/updating-aspect-value-from-custom-action/m-p/244103#M197233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom action that is working well.&amp;nbsp;&amp;nbsp; The next step is to set a custom action that I created with the value that is created in the action.&amp;nbsp; Does anyone know what the API for this is?&amp;nbsp; I have tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QName urlQname = QName.createQName(filePath.substring(0, filePath.indexOf("}")+1) + "S3URL");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;Map&amp;lt;QName, Serializable&amp;gt; properties = nodeService.getProperties(actionedUponNodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;properties.put(urlQname, url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;nodeService.addProperties(actionedUponNodeRef, properties);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp; action.setParameterValue("S3URL", url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would seem that one of those is supposed to do that, but I am at a loss as to why it is not working.&amp;nbsp; I really need this asap, so any thoughts on this would be appreciated.&amp;nbsp; As I am doing this from a custom action that is running in Alfresco, I do not want to make a web service call.&amp;nbsp; There should be another way to do this.&amp;nbsp; I am also doing this all with Java, no webscripts.&amp;nbsp; Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 22:21:09 GMT</pubDate>
    <dc:creator>erictice</dc:creator>
    <dc:date>2009-11-30T22:21:09Z</dc:date>
    <item>
      <title>Updating Aspect Value from Custom Action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-aspect-value-from-custom-action/m-p/244103#M197233</link>
      <description>I have a custom action that is working well.&amp;nbsp;&amp;nbsp; The next step is to set a custom action that I created with the value that is created in the action.&amp;nbsp; Does anyone know what the API for this is?&amp;nbsp; I have tried the following:…….&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QName urlQname = QName.createQName(filePath.substring(0, filePath.index</description>
      <pubDate>Mon, 30 Nov 2009 22:21:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-aspect-value-from-custom-action/m-p/244103#M197233</guid>
      <dc:creator>erictice</dc:creator>
      <dc:date>2009-11-30T22:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Aspect Value from Custom Action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-aspect-value-from-custom-action/m-p/244104#M197234</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;STRONG&gt;addProperties&lt;/STRONG&gt;&lt;SPAN&gt; should be used for adding (or modifying) properties.&amp;nbsp; In other words, just use your custom property with &lt;/SPAN&gt;&lt;STRONG&gt;addProperties&lt;/STRONG&gt;&lt;SPAN&gt; rather than doing a get/add.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, your property name appears to be dynamic i.e. your namespace is a file path.&amp;nbsp; Don't do this; the namespace tables and use-cases are designed for handling namespaces not ad-hoc data.&amp;nbsp; Declare the property names you wish to use in a dictionary and set the values as required; I can't think of a use-case that needs dynamic namespaces or dynamic property names; if this is one, then change your approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A high-level overview of what you are trying to achieve would be helpful.&amp;nbsp; It appears that you are trying to push/store content in S3 or something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 12:29:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-aspect-value-from-custom-action/m-p/244104#M197234</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2009-12-03T12:29:45Z</dc:date>
    </item>
  </channel>
</rss>

