cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage the custom models using model manager

udayakumar_p
Confirmed Champ
Confirmed Champ

We have custom model defined, say commonModel.xml which has been placed into alfresco\extension\custom folder in the installation.

The model has several custom types defined. One of the property, say common:keywords has a list of allowed values. This list is defined with a constraint as below.

<constraints>
<constraint name="common:keywordsList" type="LIST">
<parameter name="allowedValues">
<list>
<value>contactus</value>
<value>mobile</value>
<value>newsletters</value>
<value>order_status</value>
<value>other</value>
</list>
</parameter>
</constraint>

This list keeps on growing and new keywords need to be added whenever we have requirement. Every time we have to go and modify this model and restart alfresco. Instead if we have a way to manage this model via share UI it would be easy to add the keywords whenever necessary. Even a business person can go and add the keywords.

Any approach to this?

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

Ok, reading the information provided into the project's page:

to build and install the artifact in your local Maven repository.

The output is one amp-file to be installed into the repository part of your Alfresco installation and one jar-file that is needed by Alfresco Share.

You have to put the amp file inside the amps folder (repository part).

For the jar:

otherwise drop the jar-file in to tomcat/shared/classes of your installation and install the amp with the mmt-tool.

Put the jar file in the mentioned path, <alfresco_install_folder>/tomcat/shared/classes

PS: I believe there must be something wrong with the latest instruction, as jars usually go inside the <alfresco_install_folder>/tomcat/shared/lib, but you should try the way the author tells you to do.

View answer in original post

12 REPLIES 12

douglascrp
World-Class Innovator
World-Class Innovator

Ok, reading the information provided into the project's page:

to build and install the artifact in your local Maven repository.

The output is one amp-file to be installed into the repository part of your Alfresco installation and one jar-file that is needed by Alfresco Share.

You have to put the amp file inside the amps folder (repository part).

For the jar:

otherwise drop the jar-file in to tomcat/shared/classes of your installation and install the amp with the mmt-tool.

Put the jar file in the mentioned path, <alfresco_install_folder>/tomcat/shared/classes

PS: I believe there must be something wrong with the latest instruction, as jars usually go inside the <alfresco_install_folder>/tomcat/shared/lib, but you should try the way the author tells you to do.

Thanks. Able to make it work. It does not work when I placed the jar into /tomcat/shared/classes worked only when i placed it into /tomcat/endorsed.

Also i faced the following exception.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.migrateFromNameToTitlePatch' defined in class path resource [alfresco/module/listmanager-amp/context/service-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'targetSchema' threw exception; nested exception is java.lang.IllegalArgumentException: 'targetSchema' must be greater than 'fixesToSchema'.

Fixed it by randomly changing the value of fixesToSchema to 1.

douglascrp
World-Class Innovator
World-Class Innovator

Nice to hear it worked.

But I guess you should try to put the jar file in the path I mentioned on my previous answer: <alfresco_install_folder>/tomcat/shared/lib