Loading TOC...

MarkLogic 9 Product Documentation
flexrep.pullGetEnabled

flexrep.pullGetEnabled(
   pull as element(flexrep.pull)
) as Boolean

Summary

Get the enabled flag for a pull configuration.

Parameters
pull The pull configuration.

Example

const flexrep = require('/MarkLogic/flexrep'); 

    declareUpdate();
    const domain = xdmp.eval(
    'const dom = require("/MarkLogic/cpf/domains");' +
      'fn.data(dom.get("Default Master").xpath("//dom:domain-id"));',
       null,
         {
          'database' : xdmp.database('Triggers')
         });

  const cfg = flexrep.configurationCreate(domain);
  const domainId = flexrep.configurationGetId(cfg);
 
let pull = flexrep.pullGet(domainId);

flexrep.pullInsert(
  flexrep.pullSetEnabled(
    pull, fn.not(flexrep.pullGetEnabled(pull))));
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.