Loading TOC...

alert.ruleSetAction

alert.ruleSetAction(
   $rule as Object,
   $action as String
) as Object

Summary

This function returns the rule with the action updated.

Parameters
$rule The representation of a rule.
$actionThe action value to set for the given rule.

Example

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

  alert.ruleSetAction(
    alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))[0],
    "sms")

  => Returns the JSON representation of the rule with the new action
     updated to "sms"
  

Comments

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