MarkLogic 10 Product Documentation
alert:rule-set-options

alert:rule-set-options(
   $rule as element(alert:rule),
   $options as element(alert:options)
) as element(alert:rule)

Summary

This function returns the rule with the options of the rule updated.

Parameters
$rule The representation of a rule.
$options The options 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-options(
  $rule,
  <alert:options>
    <alert:email-address>me@somedomain.com</alert:email-address>
  </alert:options>)

  => Returns the XML representation of the rule with the options 
  updated to   <alert:options>
                   <alert:email-address>me@somedomain.com</alert:email-address>
               </alert:options>
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy