Loading TOC...

alert:rule-id-query

alert:rule-id-query(
   $ids as xs:unsignedLong*
) as cts:query

Summary

This function creates a query to find rules with any of the specified IDs. Returns a query to be passed to alert:get-my-rules or alert:get-all-rules .

Parameters
ids A list of IDs for the rules to be retrieved.

Example

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

  alert:get-my-rules(alert:rule-id-query((987654321, 987654322)))
  =>Returns the rules with IDs 987654321 and 987654322
  

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