Loading TOC...

alert.invokeMatchingActions

alert.invokeMatchingActions(
   $config-uri as String,
   $doc as Node,
   $options as Object
) as null

Summary

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.

Parameters
$config-uriThe alerting configuration from which to match rules.
$docThe document to match against.
$optionsThe options to pass to xdmp.invoke when invoking each action.

Example

  var alert = require("/MarkLogic/alert.xqy");
 
  alert.invokeMatchingActions("http://acme.com/alert/message-board",
                              fn.doc("/xml/foo.xml"), {})

  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy