MarkLogic 9 Product Documentation
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
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy