Loading TOC...

alert.ruleNameQuery

alert.ruleNameQuery(
   $names as 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.getMyRules or alert.getAllRules.

Parameters
$namesA list of names for the rules to be retrieved.

Example

  var alert = require("/MarkLogic/alert.xqy");

  alert.getAllRules(
        "http://acme.com/alert/message-board", 
        alert.ruleNameQuery(["dna-alert", "rna-alert"]))

  =>Returns the rules with names "dna-alert" or "rna-alert"
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy