MarkLogic 10 Product Documentation
alert.ruleGetUserId

alert.ruleGetUserId(
   rule as Object
) as (Number|String)

Summary

This function returns the user ID of a given rule.

Parameters
rule The representation of a rule.

Example

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

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

  => 7071164303237443533
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy