Loading TOC...

alert:rule-set-action

alert:rule-set-action(
   $rule as element(alert:rule),
   $action as xs:string
) as element(alert:rule)*

Summary

This function returns the rule with the action updated.

Parameters
$rule The representation of a rule.
$actionThe action value to set for the given rule.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:rule-set-action($rule, "sms")
  => Returns the XML representation of the rule with the new action
     updated to "sms"
  

Comments

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