MarkLogic 10 Product Documentation
alert.actionSetModuleRoot

alert.actionSetModuleRoot(
   action as Object,
   module-root as String
) as Object

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

  const alert = require("/MarkLogic/alert.xqy");

  alert.actionSetModuleRoot(
         alert.getActions("http://acme.com/alert/message-board",  ["sms"])[0],
         "/root")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy