alert.ruleGetId( rule as Object ) as (Number|String)
This function returns the ID of a given rule.
Parameters | |
---|---|
rule | The representation of a rule. |
const alert = require("/MarkLogic/alert.xqy"); alert.ruleGetId( alert.getAllRules("http://acme.com/alert/message-board", cts.wordQuery("dna"))[0]) => 4506868239885649353
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.