Hi All,

In the following code snippet, In log,xqy file ,i want to identify which
particular document in the collection has invoked the trigger.
kindly help in this regard.

import module namespace trgr="http://marklogic.com/xdmp/triggers"; at
"/MarkLogic/triggers.xqy";
trgr:create-trigger("myTrigger", "Simple trigger example",
  trgr:trigger-data-event(trgr:collection-scope("testcoll"),
      trgr:document-content("modify"),
      trgr:pre-commit()),
  trgr:trigger-module(xdmp:database("testdb"), "/test/", "log.xqy"),
  fn:true(), xdmp:default-permissions() )

Regards,
Mahitha
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to