Hello,
I want to export all the stored processes in the database () as XML files. Is there anyone can help me.
Thanks
I'd suggest two approaches, neither of which fully do what you're asking, but there's nothing I can do about that.
1) Export processes individually from within the app.
This will allow you to import these processes freely if you perhaps have a new install or want to move processes from one install to another. However, it's slow and you won't be able to export processes that have been deleted.
2) Query the database for the JSON models you're interested in maintaining.
Within the database, models (processes, forms, apps, etc - contents of the Models DB table) are all stored as JSON; in general, from what it seems, Activiti does not store anything in its database as XML - so you won't be able to query for process models in XML format. On the plus side, you will be able to query for all of them at once and maintain that information however you'd like. The downside is that this information really isn't something that's super useful to the average user, since you won't be able to import the JSON structure back into Activiti.
EDIT: For future readers; Oops, forgot about the REST API endpoints for exporting. Use that.
-JEarles
bp3
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.