<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding a new Aspect or adding a new attribute to existing bootstrapped content model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78523#M24549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using dictionaryBootstrap to bootstrap a content model. My jar version is 1.0 for both share and platform jar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;bean &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="com.mercuria.alfresco.bootstrap.modelLoader" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;parent&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="dictionaryBootstrap" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;depends-on&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="dictionaryBootstrap"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="models"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;&lt;/SPAN&gt;alfresco/module/${project.artifactId}/model/test-model.xml&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/beans&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I want to add more content model types, or add properties to the existing content model that was bootstrapped as part of version 1.0 above.&amp;nbsp;For discussion sake, lets assume that test-model.xml has content model for Aspect-A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Lets say I want to add a new aspect called 'Aspect-B' to my content model, so can I add it to same file 'test-model.xml' and increment the version of the jar to 2.0?&amp;nbsp;Is alfresco capable of differentiating an existing model that has already been bootstrapped, because some contents of my test-model.xml will also be in version 2.0. I am not sure how alfresco will deal with it or should I add only the new attribute?&lt;/P&gt;&lt;P&gt;2. If I want to add an additional attribute to Aspect-A and bootstrap the new attribute. How should I bootstrap an additional attribute to an existing bootstrapped aspect in alfresco instance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2018 14:23:23 GMT</pubDate>
    <dc:creator>kartech11</dc:creator>
    <dc:date>2018-07-31T14:23:23Z</dc:date>
    <item>
      <title>Adding a new Aspect or adding a new attribute to existing bootstrapped content model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78523#M24549</link>
      <description>I am using dictionaryBootstrap to bootstrap a content model. My jar version is 1.0 for both share and platform jar.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="com.mercuria.alfresco.bootstrap.modelLoader" parent="dictionaryBootstrap" depends-on="dictionaryBootstrap"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="models"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lis</description>
      <pubDate>Tue, 31 Jul 2018 14:23:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78523#M24549</guid>
      <dc:creator>kartech11</dc:creator>
      <dc:date>2018-07-31T14:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new Aspect or adding a new attribute to existing bootstrapped content model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78524#M24550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes, incremental changes on a bootstrap&amp;nbsp;content model are allowed. So adding a new aspect is possible.&lt;/P&gt;&lt;P&gt;2. Adding a new property in aspect A is also an incremental change, so it is also possible. But, in this case you may need to update your existing content for setting the values on the new property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any change on the bootstrap content model is&amp;nbsp;better without data, when the model may be disabled and deleted without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 17:22:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78524#M24550</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-07-31T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new Aspect or adding a new attribute to existing bootstrapped content model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78525#M24551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks @&lt;A _jive_internal="true" data-avatarid="2840" data-externalid="" data-online="false" data-presence="null" data-userid="80296" data-username="cesarista" href="https://community.alfresco.com/people/cesarista" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;Cesar Capillas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a new attribute to my model, and also have it setup in the share-config-custom.xml file under the field visibility section and appearance. But when I bootstrap the JAR with this new attribute I don't see the new attribute showing up under my model when I look it up in the Model Manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see from the logs that the&amp;nbsp;&lt;/P&gt;&lt;P&gt;2018-08-01 11:13:47,412 INFO [repo.module.ModuleServiceImpl] [localhost-startStop-1] Upgrading module 'alfresco-bootstrap-platform-jar' version 5.6 (was 5.5).&lt;BR /&gt; 2018-08-01 11:13:47,430 DEBUG [repo.module.ModuleComponentHelper] [localhost-startStop-1] &lt;BR /&gt; Started module 'ModuleDetails[{module.version=5.6, module.description=Platform/Repo JAR Module (to be included in the alfresco.war) - &lt;BR /&gt; part of AIO - SDK 3, module.id=alfresco-bootstrap-platform-jar, module.repo.version.max=999, &lt;BR /&gt; module.title=Alfresco Platform/Repository JAR Module, module.repo.version.min=0, module.installState=UNKNOWN}]' including 21components.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:34:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-aspect-or-adding-a-new-attribute-to-existing/m-p/78525#M24551</guid>
      <dc:creator>kartech11</dc:creator>
      <dc:date>2018-08-01T09:34:54Z</dc:date>
    </item>
  </channel>
</rss>

