Anyone knows how to define rules for company home space via bootstrap feature during startup of alfresco. I would like to define a inbound rule to add versionable aspect for any content that is sub type of cm:content. I encountered exception during the bootstrap process with the following error message:
Caused by: org.alfresco.service.cmr.view.ImporterException: Path /app:company_home/rule:ruleFolder within node workspace://SpacesStore/11857a62-cce8-49e5-a7ae-91c43d71fbdf does not exist - the path must resolve to a valid location
When I remove the rule:ruleFolder (in bold), the bootstrap process completed successfully but when I login to alfresco explorer, I can't see any rule attached to company home in manage content rules screen.
Below are what I have done:
1) create a new spring context file "custom-bootstrap-context.xml" in shared/classes/alfresco/extension folder. <bean id="spacesBootstrap" parent="spacesBootstrap-base" scope="singleton"> <property name="bootstrapViews"> <list merge="true"> <props> <prop key="path">/app:company_home/rule:ruleFolder</prop> <prop key="location">alfresco/extension/bootstrap/custom-transfer-target-rule.xml</prop> </props> </list> </property> </bean>