cancel
Showing results for 
Search instead for 
Did you mean: 

Error during search on custom records management metadata

melanielewis
Champ in-the-making
Champ in-the-making
Hello -

I am trying to create a custom search in Workdesk using custom metadata from my Alfresco respository. I made sure to add the Aspect Retriever lines to my bootstrap file, but I keep getting this error

Property P:rmc:rmarecordCustomProperties.rmc:CONTRACT is neither defined in object class cmis:document nor in the applied Alfresco aspects

Anyone encountered this?
3 REPLIES 3

deko
Star Contributor
Star Contributor
Hi Melanie,

first you should verify that the Aspect property is really named as you specified it in the search template.

Then you should check your <subclasses> node in the search template. Are you searching for cmis:document only? Do have objects from this type in your Alfresco repo that have the defined Aspect property attached?

Regards,
Dennis

melanielewis
Champ in-the-making
Champ in-the-making
Hi Dennis -

I believe the aspect property is named correctly… I queried for the document using CMIS and i see the aspect type that was applied <alf:appliedAspects>P:rmc:rmarecordCustomProperties</alf:appliedAspects>

and then I see its value

<cmisSmiley TongueropertyString propertyDefinitionId="rmc:CONTRACT" displayName="CONTRACT" queryName="rmc:CONTRACT"/><cmis:value>DOC45PAPT117000</cmis:value></cmisSmiley TongueropertyString>

I am struggling with how to make sure that aspect is applied with workdesk and in my search so I can create searches against that attribute.


d_evil
Champ in-the-making
Champ in-the-making
Hi,

basically Workdesk is creating a corresponding JOIN if the search definition contains any aspect properties in WHERE or SELECT clause.

<blockquote>
I am struggling with how to make sure that aspect is applied with workdesk
</blockquote>
By default you cannot see that, Aspects are not part of the CMIS 1.0 spec and therefore are used/handled through specific extensions. In CMIS 1.1 there will be a possibility to handle/see Aspects "nativly".

I know that with the older version of Workdesk and alfresco 4.x there was a problem in communication, please try the latest release of Workdesk 4.1.1 where many problems were solved using the Apache Chemistry OpenCMIS framework.

Regards,
D.evil