Loading TOC...

MarkLogic Server 11.0 Product Documentation
trgr.triggerSetRecursive

trgr.triggerSetRecursive(
   trigger-name as String,
   recursive as Boolean
) as null

Summary

Sets the recursive setting of the identified trigger. When the recursive setting is true, the trigger will trigger itself for recursive changes to the same document.

Parameters
trigger-name The current trigger name.
recursive The new recursive value for the specified trigger.

Usage Notes

If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.

Example

declareUpdate();
const trgr = require('/MarkLogic/triggers');

trgr.triggerSetRecursive('myTrigger', true);

// Empty sequence. Sets the named trigger to be recursive.
   

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