MarkLogic Server 11.0 Product Documentation
alert:action-set-module-root

alert:action-set-module-root(
   $action as element(alert:action),
   $module-root as xs:string
) as element(alert:action)

Summary

This function sets the module root of a given action.

Parameters
$action The representation of an action.
module-root The new modules root for the action.

Example

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

  let $action := alert:get-actions("my-alert-config-uri", "my-action")
  return
  alert:action-set-module-root($action, "/newroot/")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy