MarkLogic 12 EA 1 Product Documentation
admin:group-scheduled-task-get-enabled

admin:group-scheduled-task-get-enabled(
   $config as element(configuration),
   $group-id as xs:unsignedLong,
   $task-id as xs:unsignedLong
) as xs:boolean

Summary

This function returns true or false to indicate whether a scheduled task for a group is enabled.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-id The ID of the group to which the App Server belongs. Typically, this is the result of an admin:group-get-id call.
task-id The ID of the task, the result of an admin:group-get-scheduled-task call.

Example



xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

let $config := admin:get-configuration()
let $group-id := admin:get-group-id($config, "myGrouop")
let $task-id := admin:group-get-scheduled-task($config,
      admin:group-get-id($config,"Default"), ())
return
admin:group-scheduled-task-get-enabled($config, $grup-id, $task-id)

    (: returns the backup enabled setting for the group's scheduled task - true or false :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy