Loading TOC...

alert:rule-name-query

alert:rule-name-query(
   $names as xs:string*
) as cts:query

Summary

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

Parameters
$names A list of names 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-all-rules("my-alert-config", 
	  alert:rule-name-query(("dna-alert", "rna-alert")))
  =>Returns the rules with names "dna-alert" or "rna-alert"
  

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