cpf.documentSetState( doc as String, state as String ) as null
Set the document's state to the given state.
Parameters | |
---|---|
doc | The URI of the document. |
state | The new state of the document. |
const cpf = require('/MarkLogic/cpf/cpf'); declareUpdate(); cpf.documentSetState('/myDocs/example.xml', xs.anyURI('http://marklogic.com/states/reprocess'));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.