You can set the processing status and state which trigger to the created status (in this example). I suspect you can do something similar for updated status as well.
xquery version "1.0-ml"; import module namespace cpf="http://marklogic.com/cpf" at "/MarkLogic/cpf/cpf.xqy"; declare variable $URI as xs:string := "/a/b/c.xml"; cpf:document-set-processing-status($URI, "created"), cpf:document-set-state($URI, xs:anyURI("http://marklogic.com/states/initial")) [cid:[email protected]] Brad Rix Senior Developer +1 (303) 542-2172 | Office +1 (303) 915-2771 | Mobile [email protected] http://www.flatironssolutions.com IM: AIM: BradRix MSN: [email protected] From: [email protected] [mailto:[email protected]] On Behalf Of Tim Meagher Sent: Wednesday, September 08, 2010 9:12 AM To: 'General Mark Logic Developer Discussion' Subject: [MarkLogic Dev General] How to restart a pipeline after a document has already inserted Hi Folks, I have some content in a content processing domain directory URI that has already been processed by a pipeline. However, I made some changes to the pipeline code and want to reprocess the content without reinserting it. The pipeline is configured to reprocess the content if it is inserted or updated, so I'm thinking about just making a simple update to each document, perhaps just rewriting an attribute, but I'm wondering if there is even a simpler way to do kick off reprocessing? For now I'd like to avoid writing any code that spawns a task to reprocess each document through each phase of the pipeline. Thank you! Tim Meagher
<<inline: image001.gif>>
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
