cpf:document-set-processing-status

cpf:document-set-processing-status(
   $doc as xs:string,
   $processing-status as xs:string
) as empty-sequence()

Summary

Set the document's processing status to the given value.

Parameters
doc The URI of the document.
processing-status The new processing status, one of "created", "updated", "deleted", "active", or "done".

Usage Notes

In general, applications should not not need to set the processing status of a document. If the document is currently being actively processed by the content processing framework, changing its processing status may have unexpected results. Manually setting the document's processing status should therefore be done only on documents whose processing status is "done". Setting the document's processing status to "updated" can be a means of triggering reprocessing; setting it to "deleted" can be a means of providing a soft-delete capability.

Example

  xquery version "1.0-ml";
  import module namespace cpf = "http://marklogic.com/cpf" 
		  at "/MarkLogic/cpf/cpf.xqy";

  cpf:document-set-processing-status( "/myDocs/example.xml", 
 		                    "deleted" )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy