AnsweredAssumed Answered

Alfresco Custom Aspects

Question asked by narithota on Jan 11, 2013
Latest reply on Sep 30, 2013 by tytanix
HI Team,

I need to upload the documents with custom metadata. I am using Open CMIS API to work with Alfresco. So I tried to upload a new custom model of aspects.

Following are three files : :


MYMOdel-Context.xml :

<?xml version='1.0' encoding='UTF-8'?>
    <bean id="example.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
        <property name="labels">

MyModel.xml :

<?xml version="1.0" encoding="UTF-8"?>
<model name="my:example" xmlns="">
    <description>Sample Model</description>
        <import uri="" prefix="d"/>
        <import uri="" prefix="cm"/>
        <namespace uri="" prefix="my"/>
        <aspect name="my:docProps">
            <title>GB Aspects</title>
                <property name="my:projectId">
                    <title>Project ID</title>
                <property name="my:questionId">
                    <title>Question ID</title>
            <property name="my:uploadedBy">
                    <title>Uploaded By</title>

I place above three files in tomcat\shared\classes\alfresco\extension directory.

and I edited the web-client-config-custom.xml as:

     <config evaluator="aspect-name" condition="my:docProps">
             <show-property name="my:projectId"/>
             <show-property name="my:questionId"/>
          <show-property name="my:uploadedBy"/>
    <config evaluator="string-compare" condition="Action Wizards">
            <aspect name="my:docProps" />

After these steps I stopped and started the alfresco service but unfortunately service is not starting.

With out these files service is starting successfully.

I checked alfresco logs,but there is no relevant information.

Please tell me where I am doing wrong things.