AnsweredAssumed Answered

Datalist Alfresco Community v5.2.0

Question asked by hanzochile on Jun 14, 2017
Latest reply on Jun 16, 2017 by cesarista

Estimados,

 

Me encuentro creando un datalist, pero al momento de implementar, alfresco me da el siguiente error:

 

He creado los siguientes archivos:

 

1. /opt/alfresco-community/tomcat/shared/classes/alfresco/extension/model/fikaDataListModel.xml

<?xml version="1.0" encoding="UTF-8"?>
<model name="fika:fikaDataListModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Tutorial Task Datalist Model</description>
<author>Sean Dumont</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl" />
</imports>
<namespaces>
<namespace uri="www.arkavia.com/datalist/1.0" prefix="fika" />
</namespaces>

 

<types>
<type name="fika:fikatasklist">
<title>Fika Task List</title>
<parent>dl:dataListItem</parent>
<properties>
<property name="fika:startDate">
<title>Task Start Date</title>
<type>d:date</type>
</property>
<property name="fika:dueDate">
<title>Task Due Date</title>
<type>d:date</type>
</property>
<property name="fika:taskComments">
<title>Comments</title>
<type>d:text</type>
</property>
</properties>
<associations>
<association name="fika:taskAssignee">
<title>Assignee</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<many>true</many>
</target>
</association>
</associations>
<overrides/>
<mandatory-aspects>
<aspect>fika:created</aspect>
<aspect>cm:titled</aspect>
<aspect>cm:attachable</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="fika:created">
<title>Task Submission Date</title>
<parent>cm:auditable</parent>
<overrides>
<property name="cm:created">
</property>
<property name="cm:creator">
</property>
</overrides>
</aspect>
</aspects>
</model>

 

2. /opt/alfresco-community/tomcat/shared/classes/alfresco/extension/fikaDataListModel-context.xml

 

<bean id="fikaDataListModel.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>/opt/alfresco-community/tomcat/shared/classes/alfresco/extension/model/fikaDataListModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>/opt/alfresco-community/tomcat/shared/classes/alfresco/messages/fikaDataListModel</value>
</list>
</property>
</bean>

 

3. /opt/alfresco-community/tomcat/shared/classes/alfresco/messages/fikaDataListModel.properties

fika_fikaDataListModel.type.fika_fikatasklist.title=Fika Task List
fika_fikaDataListModel.type.fika_fikatasklist.description=A simple task list including title, description, start date, due date, assignee, comments, and attachments.
fika_fikaDataListModel.property.fika_startDate.title=Start Date
fika_fikaDataListModel.property.fika_dueDate.title=Due Date
fika_fikaDataListModel.property.fika_taskComments.title=Comments
fika_fikaDataListModel.association.fika_taskAssignee.title=Assignee
fika_fikaDataListModel.property.cm_creator.title=Task Submitter

 

4. share-config-custom.xml

<alfresco-config>

<!-- Task List Datalist Node -->
<config evaluator="node-type" condition="fika:fikatasklist">
<forms>
<form>
<field-visibility>
<show id="cm:title" />
<show id="cm:description" />
<show id="fika:startDate" />
<show id="fika:dueDate" />
<show id="fika:taskAssignee" />
<show id="fika:taskComments" />
<show id="cm:attachments" />
</field-visibility>
<edit-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
<appearance>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="fika:taskComments">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="cm:attachments">
<control>
<control-param name="startLocation">{doclib}</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
<!-- Task List Datalist Model -->
<config evaluator="model-type" condition="fika:fikatasklist">
<forms>
<form>
<field-visibility>
<show id="cm:title" />
<show id="cm:description" />
<show id="fika:startDate" />
<show id="fika:dueDate" />
<show id="fika:taskAssignee" />
<show id="fika:taskComments" />
<show id="cm:attachments" />
</field-visibility>
<create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
<appearance>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="fika:taskComments">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="cm:attachments">
<control>
<control-param name="startLocation">{doclib}</control-param>
</control>
</field>
</appearance>
</form>
<form id="datagrid">
<field-visibility>
<show id="cm:title" />
<show id="cm:creator" />
<show id="cm:description" />
<show id="fika:startDate" />
<show id="fika:dueDate" />
<show id="fika:taskAssignee" />
<show id="fika:taskComments" />
<show id="cm:attachments" />
</field-visibility>
</form>
</forms>
</config>

</alfresco-config>

 

Por que me dará el error? que estoy haciendo mal?

Outcomes