MarkLogic 10 Product Documentation
alert.ruleGetAction

alert.ruleGetAction(
   rule as Object
) as String

Summary

This function returns the action of a given rule.

Parameters
rule The representation of a rule.

Example

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

  alert.ruleGetAction(
        alert.getAllRules("http://acme.com/alert/message-board",
                          cts.wordQuery("dna"))[0])
  => sms
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy