[MarkLogic Dev General] Use Trigger to update conditionally adocument
Stephane Toussaint
stephane.toussaint at 4dconcept.fr
Tue Oct 5 05:06:32 PDT 2010
Le 5 oct. 2010 à 08:49, Geert Josten a écrit :
> I guess the easiest way out here is to have a separate upload directory. You will need to scope the trigger to that folder only. The trigger (you could use the Content Processing Framework too by the way, which in the end is based on triggers as well) will then compare the document in the upload folder with the document at its proper location and only move it if it really changed.
>
> It is possible though to apply the code mentioned by Kelly from Java through XDBC too, by the way. You will need the adHocQuery from XCC, with which you can execute any Xquery code you like. You can do the insert with the adhoc query, or determine whether to upload with it first.
>
> My first suggestion requires no knowledge in Java, like was you intention I think.
>
> Kind regards,
> Geert
Thank you for your answer. I will compare those two solutions.
Thanks,
Stéphane
Stéphane TOUSSAINT
XMS Technical Product Leader
Tel : 01.61.08.50.30
Std : 01.61.08.50.20
Fax : 01.61.38.24.41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20101005/80201ce9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4dlogo.jpg
Type: image/jpeg
Size: 831 bytes
Desc: not available
Url : http://developer.marklogic.com/pipermail/general/attachments/20101005/80201ce9/attachment.jpg
More information about the General
mailing list