
alert:rule-action-query( $actions as xs:string* ) as cts:query
This function creates a query to find rules
with any of the specified actions. Returns a query
be passed to alert:get-my-rules
or
alert:get-all-rules
.
| Parameters | |
|---|---|
| actions | A list of action names for the rules to be retrieved. |
xquery version "1.0-ml";
import module namespace alert = "http://marklogic.com/xdmp/alert"
at "/MarkLogic/alert.xqy";
alert:get-all-rules("my-alert-config",
alert:rule-action-query(("email", "sms")))
=>Returns the rules with actions "email" and "sms"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.