AnsweredAssumed Answered

opencmis - addaspect - Alfresco 4.2

Question asked by luigi on Dec 19, 2013
Latest reply on Jan 20, 2014 by luigi

I trying write an application using the alfresco opencmis plugin in Alfresco 4.2 Community Ed (Bitnami VM).
I just created a custom model with custom aspect.
those are my steps:
- Rename /…/shared/classes/extension/custom-model-context.xml.sample to custom-model-context.xml and customModel.xml.sample to customModel.xml
This is my custom aspect in customModel.xml:

<aspect name="custom:ModuloDetails">
<title>Document Dettaglio Moduloies>
<property name="custom:CodProtocollo">
<title>Codice Modulo</title>
<property name="custom:CodModulo">
<title>Codice Modulo</title>

- Rename  web-client-config-custom.xml.sample web-client-config-custom.xml
this is my code added

<config evaluator="string-compare" condition="Action Wizards">
<aspect name="custom:ModuloDetails"/>

<config evaluator="aspect-name" condition="custom:ModuloDetails">
<show-property name="custom:CodProtocollo"/>
<show-property name="custom:CodModulo"/>

1. no additional properties visible in Alfresco
2. if I add aspect programmatically

AlfrescoDocument alfDoc = (AlfrescoDocument) doc;

I have got this error
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Bad Request

Any help appreciated.