Loading TOC...

alert.ruleIdQuery

alert.ruleIdQuery(
   $ids as String[]
) 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.getMyRules or alert.getAllRules.

Parameters
$idsA list of IDs for the rules to be retrieved.

Example

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

  alert.getMyRules("http://acme.com/alert/message-board", 
                   alert.ruleIdQuery(["3593096101520676986"]))

  => Returns the rule with the ID 3593096101520676986
  

Comments

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