Loading TOC...

alert.ruleActionQuery

alert.ruleActionQuery(
   $actions as String[]
) as cts.query

Summary

This function creates a query to find rules with any of the specified actions. Returns a query be passed to alert.getMyRules or alert.getAllRules.

Parameters
$actions A list of action names for the rules to be retrieved.

Example

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

  alert.getAllRules("http://acme.com/alert/message-board", alert.ruleActionQuery(["sms"]))

  =>Returns the rule with action "sms" 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.