Loading TOC...

alert.spawnMatchingActions

alert.spawnMatchingActions(
   $config-uri as String,
   $doc as Node,
   $options as Options
) as null

Summary

Finds the rules that match the specified document and spawns their associated actions. The spawned tasks will run as the user that owns the rule.

Parameters
$config-uriThe alerting configuration from which to match rules.
$docThe document to match against.
$optionsThe options to pass to alert.spawn when spawning each action.

Example

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

  

Comments

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