alert:rule-user-id-query( $user-ids as xs:unsignedLong* ) as cts:query
This function creates a query to find rules
with any of the specified user IDs. Returns a query to
be passed to alert:get-my-rules
or
alert:get-all-rules
.
Parameters | |
---|---|
user-ids | A list of user IDs 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-user-id-query((192837465, 192837466))) =>Returns the rules with user IDs 192837465 or 192837466