alert:invoke-matching-actions( $config-uri as xs:string, $doc as node(), $options as node() ) as empty-sequence()
Finds the rules that match the specified document and invokes their associated actions. The actions will be invoked as the user who owns each rule in a different transaction.
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; alert:invoke-matching-actions("http://myconfig/uri/", fn:doc("/mydocs/doc.xml"), <options/>)