How to store XML file versions in eXist

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to store XML file versions in eXist

safraz
Hi,

I have an application which edit XML files and stores in the eXist database. which means each file always has the latest.
I have a requirement to view older versions of a particular file. How can i achieve this using Orbeon/eXist?

Your support is highly appreciated.


Regards,
Safraz Hanas
Reply | Threaded
Open this post in threaded view
|

Re: How to store XML file versions in eXist

safraz
Hi,

eXist has a Trigger called HistoryTrigger which can be used for keep old versions of a file.
I gave a try to implement it with Obeon (Version Orbeon Forms dev-post-3.7.1.200906020154), However i'm getting nullpointer exception.

Following are my steps.
1. create .xhtml file view.xhtml
you may notice the file storage path is /exist/rest/db/rulesmanager/reader/beans.xml
2. As suggested in eXist, I have created collection.xconf collection.xconf under (http://localhost:8080/RulesManager/exist/webdav/db/system/config/db/rulesmanager/reader)
3. ran the application, edit & save
4. I got rulesManager.log which is the application log
5. And the Server log

The application runs without enabling the HistoryTrigger.

Can someone help me to identify the issue.

Thanks in advance.




Reply | Threaded
Open this post in threaded view
|

Re: How to store XML file versions in eXist

safraz

I use Orbeon Forms dev-post-3.7.1.200906020154
Reply | Threaded
Open this post in threaded view
|

Re: How to store XML file versions in eXist

Alessandro Vernet
Administrator
In reply to this post by safraz
safraz wrote
eXist has a Trigger called HistoryTrigger which can be used for keep old versions of a file.
I gave a try to implement it with Obeon (Version Orbeon Forms dev-post-3.7.1.200906020154), However i'm getting nullpointer exception.
I don't know anything about the eXist's HistoryTrigger, but that sounds like an interesting feature. Maybe we could even have this setup by default with the eXist persistence layer. Have you tried asking this in the eXist mailing list?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: How to store XML file versions in eXist

safraz
Alessandro Vernet wrote
 Have you tried asking this in the eXist mailing list?
I'm waiting for an answer from eXist mailing List.


By the way, Could anyone find the bug?

Reply | Threaded
Open this post in threaded view
|

Re: How to store XML file versions in eXist

Alessandro Vernet
Administrator
safraz wrote
I'm waiting for an answer from eXist mailing List.
OK, good. And for reference, here is the corresponding post on exist-open:

http://www.nabble.com/Nullpointer-Exception-in-HistoryTrigger-ts25167509.html

Alex