02-08-2017 12:04 AM
While I run the Alfresco project in eclipse, I got the following error message. Could you tell me or suggest me the possible problem solving way?
< ------
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'acme-cms-poc-repo-amp.dictionaryBootstrap' defined in
class path resource [alfresco/module/acme-cms-poc-repo-amp/context/bootstrap-context.xml]: Error setting property values; nested exception is o
rg.springframework.beans.NotWritablePropertyException: Invalid property 'workflowDefinitions' of bean class [org.alfresco.repo.dictionary.Dicti
onaryBootstrap]: Bean property 'workflowDefinitions' is not writable or has an invalid setter method. Does the parameter type of the setter mat
ch the return type of the getter?
------>
I attached the detailed error message file and bootstrap-context.xml that is implemented by me.
Thank you.
02-08-2017 04:30 AM
You are simply using the wrong bean class via the parent bean definition. A "dictionaryModelBootstrap" is not intended to work with workflows at all, it is only dealing with standard content models. Please check "Creating custom advanced workflows" as a tutorial.
02-12-2017 09:27 PM
Hello Axel Faust .
Sorry, I have the same error as previous error (org.springframework.beans.factory.BeanCreationException even I already changed the bean definition. Could you point out my implementation what is wrong?
I modified like that
--------
<bean id="acme-cms-poc-repo-amp.workflowBootstrap" parent="workflowDeployer">
--------
Here is my source code.
{{{
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
workflow, and loading custom content models. -->
<!-- Registration of new models -->
<bean id="acme-cms-poc-repo-amp.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/module/${project.artifactId}/workflows/simple-invoice-process.bpmn</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
<value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/module/${project.artifactId}/messages/workflow-messages</value>
</list>
</property>
</bean>
</beans>
}}}
Explore our Alfresco products with the links below. Use labels to filter content by product module.