
dom:create( $name as xs:string, $description as xs:string, $scope as element(dom:domain-scope), $context as element(dom:evaluation-context), $pipelines as xs:unsignedLong*, $permissions as item()* ) as xs:unsignedLong
Create a new content processing domain, along with the triggers that perform work in that domain.
xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains"
at "/MarkLogic/cpf/domains.xqy";
dom:create( "Incoming", "Handling incoming documents",
dom:domain-scope( "directory",
"/incoming/",
"infinity" ),
dom:evaluation-context( xdmp:database("Modules"),
"/" ),
(), () )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.