
alert.ruleGetOptions( rule as Object ) as Object
This function returns the options of a given rule.
| Parameters | |
|---|---|
| rule | The representation of a rule. |
var alert = require("/MarkLogic/alert.xqy");
alert.ruleGetOptions(
alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))[0])
=> {"emailAddress": "me@somedomain.com"}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.