05-15-2012 04:28 PM
05-17-2012 10:01 AM
So it seems clear I need to either update or remove the second model that I added. How do I go about doing this when Alfresco won't start though?This is precisely why dynamically loaded models make me nervous. It seems easy to create a situation, like you've done, where you are in a catch-22 of having screwed up your model, but the screwed up model won't let the repository start up such that you can correct the problem. Unfortunately, all I have is sympathy without a solution.
With all the model testing I've done, I've added data that uses things I no longer want in my model. How are subtractive model changes handled in Alfresco? Do you have to remove any content that uses the removed elements? Is there a clever way to do that? In a previous DM system I'd go hack the database but I really don't want to do that if I can avoid it.Subtractive model changes are tricky. In short, yes, you have to remove content that uses those elements. Especially if you have defined mandatory aspects and you are removing those aspects from your model–you'll want to remove those aspects from the objects before you make your model change. You asked for a clever way to make those changes. I find server-side JavaScript to be handy for this. You can go old school and run it using "Execute Script" but my preferred method these days is to use the JavaScript Console from Share Extras.
Any advice on where to look or how to basically reset my Alfresco instance at a data level?The key is to always reset both your database and your data directory. I have a set of shell scripts I use to stay productive. They are:
05-18-2012 12:19 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.