NiFi Ingest 25.3
NiFi Ingest

# doc_tracking

The `doc_tracking` function raises a document tracking event for a document.

## Syntax

    doc_tracking( document , eventName [, eventMetadata] [, reference] )

## Arguments

Argument | Description
--- | ---
`document` | (LuaDocument) The document to track.
`eventName` | (string) The event name. You can type a description of the event.
`eventMetadata` | (table) A table of key-value pairs that contain metadata for the document tracking event.
`reference` | (string) The document reference. You can set this parameter to override the document reference used.

## Returns

(Boolean). A Boolean that indicates whether the event was raised successfully.

## Example

    local ref=document:getReference()

    doc_tracking(document, "The document has been processed",
          {myfield="myvalue", anotherfield="anothervalue"}, ref )

Copyright 2018-2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery NiFi Ingest 25.3

Topic Title: doc_tracking