Loading TOC...

MarkLogic Server 11.0 Product Documentation
infodev:ticket-get-status

infodev:ticket-get-status(
   $ticket-id as xs:string
) as xs:string

Summary

[DEPRECATED] This function returns the status of the specified ticket.

Parameters
ticket-id The id of the ticket from which to get the status.

Example

  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";

  for $ticket in info:tickets()
    return if (infodev:ticket-get-status($ticket) = "completed")
           then info:ticket-delete($ticket)
           else ()

  (: Remove all tickets with the status of 'completed'. :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.