<?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 cant edit custom Property with the cmis-extension in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264759#M217889</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 use Alfresco 4.0.d and the alfresco-opencmis-extension-0.4. I created a action in Alfresco where i want to edit a custom property. For that i add the Parameter&amp;nbsp; "parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");" to the session and tried to update a Property with that code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public void updateDocTest(Session session, Document doc){ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Map&amp;lt;String, Object&amp;gt; properties = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;properties.put("do:myid", "000011");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;doc.updateProperties(properties);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;After run the action, the custom Property is emty and i can't understand why…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i create a simple java class and run the code outside from alfresco, it work fine. But when i use the code in Alfresco in a action, then the code dont work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me pls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 09:27:10 GMT</pubDate>
    <dc:creator>schurik</dc:creator>
    <dc:date>2013-01-08T09:27:10Z</dc:date>
    <item>
      <title>cant edit custom Property with the cmis-extension</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264759#M217889</link>
      <description>Hello,i use Alfresco 4.0.d and the alfresco-opencmis-extension-0.4. I created a action in Alfresco where i want to edit a custom property. For that i add the Parameter&amp;nbsp; "parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");" to the session a</description>
      <pubDate>Tue, 08 Jan 2013 09:27:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264759#M217889</guid>
      <dc:creator>schurik</dc:creator>
      <dc:date>2013-01-08T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: cant edit custom Property with the cmis-extension</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264760#M217890</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;Could you post any logs or other information to help us see what happens when you try to run the script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 23:03:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264760#M217890</guid>
      <dc:creator>aevans713</dc:creator>
      <dc:date>2013-01-08T23:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: cant edit custom Property with the cmis-extension</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264761#M217891</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 have no error in the logs. When i run the action with "properties.put(PropertyIds.NAME, "name");", it works fine. So i can edit the standard properties, but not the custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible, that alfresco dont find the alfresco-opencmis-extension? I put the jar in the classpath from the Project. Need alfresco the jar in a other folder too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 12:33:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264761#M217891</guid>
      <dc:creator>schurik</dc:creator>
      <dc:date>2013-01-09T12:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: cant edit custom Property with the cmis-extension</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264762#M217892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem. Via CMIS I can update the document's name but I can't update others properties neither the custom aspect property (sc:isActiveDadosIncoerentes). There is no error message but only the name is updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document doc = (AlfrescoDocument) session.getObject(valueList[4]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Map&amp;lt;String, Object&amp;gt; documentProperties = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;documentProperties.put( PropertyIds.CREATED_BY,"operadoralfresco");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;documentProperties.put( PropertyIds.CREATION_DATE,"01012010");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;documentProperties.put( PropertyIds.NAME,"teste2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;documentProperties.put("sc:isActiveDadosIncoerentes", "true");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;doc.updateProperties(documentProperties,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;/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;Can anyone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 19:52:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264762#M217892</guid>
      <dc:creator>americanolinhar</dc:creator>
      <dc:date>2015-07-31T19:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: cant edit custom Property with the cmis-extension</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264763#M217893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is working. This post has the answer &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/alfresco-api/setting-aspect-property-using-cmis-06122014-1046" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/alfresco-api/setting-aspect-property-using-cmis-06122014-1046&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 12:57:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cant-edit-custom-property-with-the-cmis-extension/m-p/264763#M217893</guid>
      <dc:creator>americanolinhar</dc:creator>
      <dc:date>2015-08-03T12:57:37Z</dc:date>
    </item>
  </channel>
</rss>

