I have been trying to get triggers working in eXist. As promised, I
documented my findings in the xquery wiki. There is moderate success,
the wiki entry shows working code.
But, as Dan already said, eXist xquery triggers cannot be relied on. I
found, that triggers may cause the thread they run in to hang, with
further changes to the affected resource going through without
triggering the script anymore. That makes them not suitable for critical
operations in a database.
Also, the xquery syntax useable in triggers seems to me reduced to the
prolog, a severe limitation. As I am only a newbee, maybe I missed
something. From the looks of it, the script must not return (anything).
The Trigger Promise:
I would like eXist to act like a filesystem: windows explorer, mac
finder, fuse-dav or any other webdav client being the frontend. That
rules out Dan's suggestion of passing uploads through an xquery. For the
use case of mine, where there is lots of mostly binary documents and
only little structure (one xml that glues stuff together), I consider
drag and drop superior to filling forms.
In a way, I would like the eXist framework to act as the controller.
Offering many great advantages over, say Samba: eg. schema validation,
lucene search or processing pipelines to name some. Am I unreasonable?
Thank you, as always!
Get latest updates about Open Source Projects, Conferences and News.