AnsweredAssumed Answered

cant edit custom Property with the cmis-extension

Question asked by schurik on Jan 8, 2013
Latest reply on Aug 3, 2015 by americanolinhares
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  "parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");" to the session and tried to update a Property with that code.


public void updateDocTest(Session session, Document doc){
      Map<String, Object> properties = new HashMap<String, Object>();
      properties.put("do:myid", "000011");
      doc.updateProperties(properties);
   }

After run the action, the custom Property is emty and i can't understand why…
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.

Can someone help me pls.

Thank you

Outcomes