<!– Marks a content item as having status –> <aspect name="kb:status"> <title>Knowledge Base Status</title> <properties>
<!– Adds a new metadata property to the KB article –> <!– Constrains the value –> <property name="kb:status"> <title>Status</title> <type>d:text</type> <default>Draft</default> <constraints> <constraint ref="kb:status_constraint" /> </constraints> </property>
</properties> </aspect>
<!– Marks a content item as a KB Article –> <aspect name="kb:article"> <title>Knowledge Base Article</title> <properties> <!– Adds a new metadata property to the KB article –> <!– Constrains the value –> <property name="kb:articletype"> <title>Article Type</title> <type>d:text</type> <default>Article</default> <constraints> <constraint type="LIST"> <parameter name="allowedValues"> <list> <value>Any</value> <value>Article</value> <value>FAQ</value> <value>White Paper</value> </list> </parameter> </constraint> </constraints> </property> </properties>
After giving your model a cursory review, I don't see anything glaring that is wrong. However, I have found that if a model is not working, you can try deploying it through the admin console, and you'll get some useful messages about why the server won't compile it. Instructions on using the admin console are here: http://wiki.alfresco.com/wiki/Dynamic_Models "Using the Repository Admin Console". There is also a stand alone model test class that you can invoke, however, I don't have a reference to what it is called right now. Good luck!