infodev:ticket-create( $annotation as element(info:annotation)?, $database as xs:string?, $policy-name as xs:string?, $policy-deltas as element(info:options)? ) as xs:string
[DEPRECATED] This function generates a ticket and stores it in the specified database. It returns the id of the generated ticket.
xquery version "1.0-ml"; import module namespace info = "http://marklogic.com/appservices/infostudio" at "/MarkLogic/appservices/infostudio/info.xqy"; import module namespace infodev = "http://marklogic.com/appservices/infostudio/dev" at "/MarkLogic/appservices/infostudio/infodev.xqy"; let $policy := <options name="default" xmlns="http://marklogic.com/appservices/infostudio"> <collection>http://marklogic.com/appservices/infostudio</collection> <error-handling>continue-with-warning</error-handling> <fab-retention-duration>P30D</fab-retention-duration> <file-filter>^[^\.]</file-filter> <max-docs-per-transaction>100</max-docs-per-transaction> <overwrite>overwrite</overwrite> <ticket-retention-duration>P30D</ticket-retention-duration> <uri> <literal>http://docs/newdocs/</literal> <filename/> <literal>.</literal> <ext/> </uri> </options> let $annotation := <info:annotation>Adding new docs to newdocs</info:annotation> return infodev:ticket-create($annotation, "testDB", "default", $policy) (: Creates a new ticket. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.