Loading TOC...

alert.ruleSetQuery

alert.ruleSetQuery(
   $rule as Object,
   $query as cts.query
) as Object

Summary

Set the cts:query corresponding to the rule's query expression.

Parameters
$rule The representation of a rule.
$queryThe cts.query for documents to match on.

Example

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

  alert.ruleSetQuery(
       alert.getAllRules("http://acme.com/alert/message-board", 
                         cts.wordQuery("dna"))[0],
       cts.wordQuery("new query for this rule"))

  

Comments

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