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

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to