MarkLogic 10 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.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy