Hi,

I can't find how to automatically delete a document once it's been through a 
pipeline, and was wondering if there's some kind of pre-configured state or 
something for this?

My pipeline wants to do this:

insert doc -> forward doc via HTTP -> delete doc

My first thought was to add a pipeline stage which just does an 
xdmp:document-delete($cpf:document-uri) but then you get 
XDMP-CONFLICTINGUPDATES as CPF tries to also update the cpf:state property of 
the deleted document in the same transaction, and the pipeline end up in error, 
and the delete is rolled back.

I could xdmp:spawn() to do the job, but I'd have thought that this was a common 
use-case, so am I missing something?

Ellis.

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

Reply via email to