01-12-2024 01:04 PM
Hello,
We are trying to separate all the business logic from our image. At this moment, we are creating the needed sites through bootstraping. We would like to make this external.
I've extracted our created site through this endpoint: http://localhost:8082/alfresco/s/api/sites/our-site/export
This exports a zip file which contains the our-site.xml with all the folders and rules created until now.
We would like to upload this xml file, through some rest api possibly, into a clean alfresco installation and make the site available with all the configuration provided.
Something like this with the content model: https://hub.alfresco.com/t5/alfresco-content-services-forum/register-custom-content-model-using-rest...
Would this be something achievable? If not, can you advise?
Thanks in advance,
Francisco Duarte
01-13-2024 06:30 AM
You can try out https://github.com/abhinavmishra14/alfresco-share-import-export/tree/sdk4.1.
Personally, I have not tried.
01-17-2024 11:13 AM
I will give it a try. thanks
01-25-2024 11:11 AM
Hello,
I tried this and it actually worked. All the folder and respective rules were created in the documentLibrary from the site I have created imeddiately before.
But now I have a different problem. I have one folder which has one rule triggered when a file enters that same folder. I know that rule is being triggered because a can see the logs from my custom code.
But in the end, I get a nodeRef not found error and the rule does nothing. Now, I'm sure the rule exists because what I said before and I can see the rule in Share, with that same UUID in the error which supposedly does not exists.
Here is the stacktrace: https://pastebin.com/SH3LpAFi
I do not understand what's happening. Could you help?
Best regards,
Francisco Duarte
01-25-2024 11:29 AM
I was doing something wrong. It is working now.
Explore our Alfresco products with the links below. Use labels to filter content by product module.