Skip to content

Workflow Events

This page lists every event that workflow processing writes. The sources are:

  • the workflow worker that runs Workflow designer workflows (scopes start with KWorker), and the steps it runs;
  • Intuitive AI steps and Custom Event steps;
  • the legacy worker that runs Process Designer processes and all scheduled jobs (scopes start with processing).

Use it to build step timing, throughput, failure and AI usage reports on your Secondary Event Provider.

At a glance

  • Filter category Workflow (KWorker), Processing (processing), Custom (custom)
  • Default filter Every KWorker and custom event passes, except Intuitive AI engine errors (error, KWorker, ...). Legacy worker events pass when they are forwarded (see the last section)
  • Envelope on every work item event WorkItemId, WorkItemRootId, ProcessId, ProcessVersion, StepId, WorkType
  • Property values strings, unless an entry says long, double or bool

"Queue metadata" below means the string properties poprecipt, messageid, insertedon and dequeuecount, which the work queue adds when present.

Summary

Select an event to go to its group. Each event below opens to show its details.

Event Meaning Reaches the provider
KWorker, RunStep Step started or finished Yes
KWorker, AddHold, {status} Left the active queue: hold, completed, error, stopped Yes
KWorker, AddHold, AddNewWorkItemHold, New New work item waits to enter a workflow Yes
KWorker, UpdateHold, {status} Hold changed state Yes
KWorker, ReleaseHold Hold released Yes, except releases by a completed task
KWorker, RouteTaken Route chosen Yes
KWorker, AllRoutesErrored Route conditions threw Yes
KWorker, FailedStepRetry Step failed, will retry Yes
KWorker, PropertyPreprocessor Step setting preprocessing Yes
KWorker, ReturningToParentWorkflow Back to the parent workflow Yes
KWorker, RequestWorkPaused, RequestWorkStopped Pause or stop asked for Yes
KWorker, DeleteWorkItem Work item deletion Yes
KWorker, ClearExternalWorkState Outside state cleared Yes
KWorker, FailedToWork Too many pickups Yes
KWorker, UnsupportedWork No plugin for the step type Yes
KWorker, MissingStep Current step does not exist Yes
KWorker, QueueRefreshFailureSelfEndWorker Worker ended itself Yes
KWorker, ErrorRefreshingQueueLock One lock renewal failed Yes
KWorker, FailedNotification Notification logic threw Yes
KWorker, ColumnError Index queue column failed Yes
KWorker, CreateQueueItem Put on the work queue Yes
KWorker, LockQueueItem Picked up by a worker Yes
KWorker, UnlockQueueItem Back on the queue Yes
KWorker, RemoveQueueItem Removed from the queue Yes
KWorker, DeleteHold Hold record deleted Yes
KWorker, update, Upload To Destination Document released Yes
KWorker, update, ExtractText OCR finished Yes
KWorker, update, Index Your Documents Stopped for manual indexing Yes
KWorker, update, Convert-DocumentFilesToTiff Converted to working format Yes
KWorker, update, WorkingFormatRunnerProleWorker Working format, Run Working Format step Yes
KWorker, update, Convert To ... Output file produced Yes
KWorker, update, Enhance Your Documents Image enhanced Yes
KWorker, update, Enhance Pdf And Make Searchable PDF enhanced and made searchable Yes
KWorker, update, Extract Table Data Tables extracted from a page Yes
KWorker, update, Move Document moved Yes
processing, workitem, error Run Indexing Behaviors skipped documents Yes
KWorker, update, Classification Completed Document classified Yes
KWorker, update, Document Classification Immediate classification result Yes
KWorker, update, Document Pre-Classification Batched classification started Yes
KWorker, update, ...TemplateExtraction, CombinedExtractionResult Extraction finished Yes
KWorker, workitem, step, AIUsage One LLM call Yes
KWorker, workitem, step, AIBatchCreated Batched LLM job submitted Yes
KWorker, usermetric, intuitiveai, classification Classification accuracy Yes
KWorker, usermetric, intuitiveai, fieldextraction Field extraction accuracy Yes
error, KWorker, workitem, learn, step, {eventType} Intuitive AI engine error No (blocked)
custom, {your scopes} Custom Event step Yes, on the workflow worker
processing, job, start, ExecuteJob Job run started Yes
processing, job, stop, ExecuteJob Job run finished Yes
processing, job, error, ExecuteJob Job run threw Yes
processing, job, error, {job script name} Step inside a job threw Yes
processing, job, update, Export Export job status Yes
processing, job, error, Unlocked by Clean Up ... Job unlocked from a dead worker Yes
processing, job, error, Clean Up Locked Work Instance Clean-up job errors Yes
processing, job, error Restart Error Jobs clean-up failed Yes
processing, job, error, ErrorDeadChildrensWork Job held by a dead child worker Yes
processing, workitem, start, {step name} Step started Yes
processing, workitem, stop, {step name} Step finished Yes
processing, workitem, error, {step name} Step threw Yes
processing, workitem, error, ExecuteWorkflow, {step name} Process loop failed Yes
processing, workitem, error, ErrorDeadChildrensWork Work item of a dead child worker Yes
processing, workitem, error, Unlocked by Clean Up ... Work item unlocked and errored Yes
processing, workitem, update, {step} Legacy step output Yes
processing, workitem, update, move_document, {step} Document moved to a new work item Yes
processing, workitem, add, ... New child work item, email import No
custom, ..., AIUsage, AIBatchCreated (legacy) Not stored on the legacy worker No
processing, workitem, usermetric, intuitiveai, ... Legacy AI reporting metrics No
error, processing, workitem, learn, step, {eventType} Legacy engine error No

Work item lifecycle

KWorker, RunStep
  • Meaning A workflow step started (IndexedEventType Start) or finished (Stop). The two share one EventId.
  • Fires For every step execution. Start after the step is resolved; stop always, after the step and its routing.
  • Properties Start has none. Stop has DurationMs in the envelope and, on failure, IndexedEventStatus Error and the string error (full exception text). WorkType names the step type.
  • Default filter passes. This pair is the basis for step timing and step failure dashboards.
KWorker, AddHold, {status}
  • Meaning The work item left the active queue.
  • Status values Hold (waiting for a task, a callback or a timer), Completed (the workflow finished; the item is archived), Error (the work item entered the error state) or Stopped (a stop request took effect).
  • Properties long HoldExpiry (Unix ms) when an expiry applies; queue metadata.
  • Default filter passes. This is the only "workflow completed" and "work item errored" signal.
  • Watch out IndexedEventStatus stays Event on AddHold, Error (capital E), so filter on the scopes.
KWorker, AddHold, AddNewWorkItemHold, New
  • Meaning A new work item was registered and waits to enter a workflow (from an upload, the API, Intuitive AI preprocessing, or a script that creates a work item).
  • Properties long HoldExpiry (by default the new item is deleted after 7 days if it never enters a workflow).
  • Default filter passes.
KWorker, UpdateHold, {status}
  • Meaning An existing hold changed state, in practice to Stopped (pause or stop) or Error (a hold expired with the Error behavior).
  • Properties long HoldExpiry when set.
  • Default filter passes.
KWorker, ReleaseHold
  • Meaning A hold was released and the work item went back to the queue.
  • Fires On a manual release (Monitor, API) or when a hold expires with the Continue or Route To Step behavior.
  • Properties holdReleaser, holdReleaseInfo (JSON), holdReleaseReason (HoldExpired or ManuallyReleased), queue metadata. AppsUserToken is the releaser on a manual release.
  • Default filter Passes when the workflow worker or the Apps host writes it.
  • Not delivered When a completed task releases the hold. The Tasks service writes that one and does not forward events.
KWorker, RouteTaken
  • Meaning A route out of the current step was chosen.
  • Properties routeName (DefaultRoute for the default route, Send To Workflow when the item goes to another workflow), routeId, nextStepId. For Send To Workflow also processName and long processVersion, and the envelope names the target workflow.
  • Default filter passes. A conditional route can produce two RouteTaken events for one decision.
KWorker, AllRoutesErrored
  • Meaning Evaluating the route conditions threw. The default route is used if there is one; otherwise the step errors.
  • Properties errorMessage, error. Status Warning.
  • Default filter passes.
KWorker, FailedStepRetry
  • Meaning A step failed and will be retried, because its error action has retries left.
  • Properties errorMessage, error, retryDelaySeconds; long delaySeconds. Status Warning.
  • Default filter passes.
KWorker, PropertyPreprocessor
  • Meaning Step setting preprocessing (Liquid, JavaScript, global variables) started (Start) and finished (Stop).
  • Failure A stop with the extra scope FailedPreprocessingParameters means preprocessing failed and the step errors.
  • Properties On failure errorMessage, error. Stop has DurationMs.
  • Default filter passes.
KWorker, ReturningToParentWorkflow
  • Scopes KWorker, ReturningToParentWorkflow and KWorker, ReturningToParentWorkflow, BecauseStepError
  • Meaning A sub-workflow ended, or errored with no local handling, and the work item returns to the parent workflow.
  • Properties nextActionId, nextStepId, processId, processName; long processVersion.
  • Default filter passes.
KWorker, RequestWorkPaused and KWorker, RequestWorkStopped
  • Meaning A user or an API call asked to pause or to stop the work item.
  • Default filter passes.
KWorker, DeleteWorkItem
  • Meaning Deletion of a work item started (Start) and finished (Stop).
  • Properties Start reason; stop results (JSON, one entry per deletion source), bool failed, bool force, errorMessage on failure. AppsUserToken when a user asked for it.
  • Default filter passes.
KWorker, ClearExternalWorkState
  • Meaning Clearing a work item's outside state (Portal, Tasks, the Index queue, pending AI batch requests) started (Start) and finished (Stop), for example on stop, pause or send-to-process.
  • Properties Start reason; stop results (JSON), bool failed, bool force, errorMessage. Status Warning when a source failed.
  • Default filter passes.

Platform failures

These put the work item into Error. All pass the default filter.

KWorker, FailedToWork
  • Meaning The work item was picked up more than 3 times (crash-loop protection).
  • Properties error = Work Item has exceeded max pickup attempts.
  • Default filter passes.
KWorker, UnsupportedWork
  • Meaning No plugin for the step's type on this worker.
  • Default filter passes.
KWorker, MissingStep
  • Meaning The work item's current step does not exist.
  • Default filter passes.
KWorker, QueueRefreshFailureSelfEndWorker
  • Meaning The worker failed repeatedly to renew its queue lock during a long step and ended itself.
  • Properties error.
  • Default filter passes.
KWorker, ErrorRefreshingQueueLock
  • Meaning One lock renewal failed.
  • Properties queue (JSON), Exception.
  • Default filter passes.
KWorker, FailedNotification
  • Meaning The step-completed or step-failed notification logic threw.
  • Properties errorMessage, error; bool wasErrorNotification.
  • Default filter passes.
KWorker, ColumnError
  • Meaning An Index queue column could not be built for the work item.
  • Properties columnName, columnType, columnScript, error.
  • Default filter passes.

Queue housekeeping

These arrive in volume. Most reports filter them out. All pass the default filter.

KWorker, CreateQueueItem
  • Meaning The work item was put on the work queue (new work, Send To Workflow, real-time work).
  • Default filter passes.
KWorker, LockQueueItem
  • Meaning A worker picked the item up.
  • Properties Queue metadata.
  • Default filter passes.
KWorker, UnlockQueueItem
  • Meaning The item went back to the queue after a step routed it on.
  • Properties Queue metadata.
  • Default filter passes.
KWorker, RemoveQueueItem
  • Meaning The item was removed from the queue (to a hold, archive, error or stop).
  • Default filter passes.
KWorker, DeleteHold
  • Meaning A hold record was deleted, normally when a worker picks the item up again.
  • Default filter passes.

Step output

Each event below fires once per document (or per page, where noted) in the step named in the scopes. The legacy worker writes the same events as processing, workitem, update, {step}. All pass the default filter.

KWorker, update, Upload To Destination
  • Meaning One document was released to a destination.
  • Properties documentId, docFileName, originalFileName, connectorId, connectorDefinitionId, connectorName, gatewayId, contentTypeName, contentTypeId, documentUrl, and numPages or numFiles.
  • Default filter passes.
KWorker, update, ExtractText
  • Meaning OCR finished for the work item.
  • Properties ocrdPageCount, ocrEngine (Az for Azure OCR, Nu for Nuance).
  • Default filter passes.
KWorker, update, Index Your Documents
  • Meaning The Index step stopped the work item for manual indexing.
  • Properties StopInIndexReason (the reasons, one per line).
  • Default filter passes.
KWorker, update, Convert-DocumentFilesToTiff
  • Meaning One document's input file was converted to the working format (TIFF pages), in any step that needs it.
  • Properties numFilesBeforeProcessing, numFilesAfterProcessing (page count), oldFileExtension, newFileExtension, library, documentId.
  • Default filter passes.
KWorker, update, WorkingFormatRunnerProleWorker
  • Meaning The same as Convert-DocumentFilesToTiff, from the Run Working Format step.
  • Default filter passes.
KWorker, update, Convert To ... (four output formats)
  • Scopes KWorker, update, Convert To Searchable PDF, ..., Convert To Image-Only PDF, ..., Convert to Multi-Page TIFF, ..., Convert To Image
  • Meaning An output file was produced for one document.
  • Properties numFilesBeforeProcessing, numFilesAfterProcessing, oldFileExtension, newFileExtension, library, documentId.
  • Default filter passes.
KWorker, update, Enhance Your Documents
  • Meaning A document was image-enhanced.
  • Properties numFilesProcessed, documentId, library.
  • Default filter passes.
KWorker, update, Enhance Pdf And Make Searchable
  • Meaning A document's input PDF was enhanced and made searchable.
  • Properties documentId.
  • Skipped document Writes ..., Enhance Pdf And Make Searchable, Warning with skipReason.
  • Default filter passes.
KWorker, update, Extract Table Data
  • Meaning Tables were extracted from one page.
  • Properties documentId, pageId, numTablesFound, extractionTime(ms).
  • Default filter passes.
KWorker, update, Move
  • Meaning The Move step moved a document.
  • Properties MoveResult.
  • Default filter passes.
processing, workitem, error
  • Meaning Run Indexing Behaviors skipped one or more documents; the step continues.
  • Properties workItemId, activity (step name), errorString. Status Error.
  • Workers Written with the same scopes on both workers.
  • Default filter passes.

Intuitive AI

All events in this group pass the default filter, except the engine error event at the end.

KWorker, update, Classification Completed
  • Meaning A document was classified with a known class.
  • Properties batchId, inputDocumentId, outputDocumentId, classId, className, subclassId, subclassName, classificationConfidence, extractionConfidence, wasClassified, wasSeparated, inputDocumentPages, outputDocumentPages, extractionSeconds, and sometimes classificationSeconds.
  • Default filter passes.
KWorker, update, Document Classification
  • Meaning A document got an immediate classification result.
  • Properties message (whether it was classified, the top five classes, and an explanation), ocrdPageCount, docPageCount.
  • Default filter passes.
KWorker, update, Document Pre-Classification
  • Meaning A batched (asynchronous) classification request was started for a document.
  • Properties message, ocrdPageCount, docPageCount.
  • Default filter passes.
KWorker, update, ...TemplateExtraction and CombinedExtractionResult
  • Scopes KWorker, update, ClassTemplateExtraction, KWorker, update, SubclassTemplateExtraction, KWorker, update, CombinedExtractionResult
  • Meaning Extraction finished with the class template, the subclass template, or as the combined final result (subclass values override class values).
  • Properties The same keys as Classification Completed.
  • Default filter passes.
KWorker, workitem, step, AIUsage
  • Meaning One LLM call was made: the AI consumption record.
  • Properties All strings, may be empty. usage (ZeroShot or AutoExtractionPlugin), promptTokens, completionTokens, totalTokens, exceededTokenLimit, wasBatched, ocrEngine.
  • Zero-shot also model, matchedClass, confidence, zeroShotPromptOptions, zeroShotResult.
  • Auto Extraction also instance (the model), extractorMode, fsExampleClass, fsExampleSubclass, fsExampleDocIds, confOcrEngine.
  • Default filter passes.
KWorker, workitem, step, AIBatchCreated
  • Meaning A batched LLM job was submitted.
  • Properties usage, and model and UploadToken (zero-shot) or instance, extractorMode, ocrEngine and the few-shot keys (Auto Extraction).
  • Default filter passes.
KWorker, usermetric, intuitiveai, classification
  • Meaning per-document classification accuracy, written by the Intuitive AI: Write Reporting Data step.
  • Strings DocId, Project, Group, File, DocName, CorrectClassName, CorrectClassId, CorrectSubclassId, UserToken, and FoundClassId, FoundSubclassId when misclassified.
  • Bools WasClassified, Misclassified, TP, FP, Corrected.
  • Double and longs double Conf; longs ExtDate, QcDate.
  • Default filter passes.
KWorker, usermetric, intuitiveai, fieldextraction
  • Meaning per-field extraction accuracy from the same step.
  • Strings DocId, Project, Group, FieldName, CorrectClassId, and ExtValue, QCValue when the operator changed the value.
  • Bools Misclassified, FPTest.
  • Longs and doubles Longs ExtDate, QcDate; doubles Conf, HighConf, Correct, TP, FP.
  • Default filter passes.
error, KWorker, workitem, learn, step, {eventType}
  • Meaning The Intuitive AI engine reported an error during a step (for example ExceptionInIntuitiveAIStep, Extraction Exception, AIParseFailure).
  • Properties batchId, EventId, EventType, Message, Level, FinishedEvent, sometimes JsonDataBucket (which can hold a raw AI response). Status Error.
  • Default filter blocked. No category covers the first scope error.

Legacy Learn steps (Classify Your Documents) also write KWorker, update, Document Classification and KWorker, update, ExtractionResult. Learn is legacy; Intuitive AI replaced it.

Custom events

custom, {your scopes}
  • Meaning Written by a Custom Event step. The scopes are custom, then each item of the step's Scopes setting.
  • Properties Exactly the keys the script set with builder.SetEventProperty(key, value). Nothing is added to the property bag.
  • Default filter Passes (category Custom) when the step runs on the workflow worker.
  • History Not written to the work item's history or Monitor. See Custom Event step.

Legacy worker and scheduled jobs

The legacy worker runs Process Designer processes and every scheduled job. It forwards only some of its events to secondary providers:

  • work item start, stop, error and update events;
  • job start, stop, error, add, update and remove events.

Two property sets repeat below:

  • Work item properties serviceName, workItemStatus, batchId, batchName, workItemType, activityProcessID, activityProcessName, activityID, activityName, activityType, executionId.
  • Job properties serviceName, jobStatus, jobScriptId, jobDisplayName, jobInstanceID, jobName, isChild, executionId.

Scheduled jobs

All events in this group pass the default filter (category Processing).

processing, job, start, ExecuteJob
  • Meaning A scheduled job run started.
  • Properties Job properties.
  • Default filter passes.
processing, job, stop, ExecuteJob
  • Meaning The run finished (also after a failed run) and its next run time was saved.
  • Properties Job properties.
  • Default filter passes.
processing, job, error, ExecuteJob
  • Meaning The run threw and the job was set to Error.
  • Properties Job properties and exception.
  • Default filter passes.
processing, job, error, {job script name}
  • Meaning A step inside a job threw.
  • Properties Work item properties and exception.
  • Default filter passes.
processing, job, update, Export
  • Meaning An Export Search Results job changed status.
  • Properties exportName, location, targetConnectorId, status (Started, Complete, Error), exportIdentity, exception (JSON, on Error).
  • Default filter passes.
processing, job, error, Unlocked by Clean Up Locked Work Instance
  • Meaning A job held by a dead worker was unlocked.
  • Properties scheduledJobID, jobInstanceID, jobDisplayName, jobName, jobScriptName, jobStatus.
  • Default filter passes.
processing, job, error, Clean Up Locked Work Instance
  • Meaning The clean-up job itself hit errors.
  • Properties The same keys as the unlock event, plus isChild, errorString.
  • Default filter passes.
processing, job, error
  • Meaning Restart Error Jobs could not clean up an errored import job.
  • Properties jobInstanceID, jobDisplayName, jobName, jobScriptName, scheduledJobID, errorString.
  • Default filter passes.
processing, job, error, ErrorDeadChildrensWork
  • Meaning The dispatcher found a dead child worker and errored the job it held.
  • Properties batchId, activityId.
  • Default filter passes.

Process Designer work items

All events in this group pass the default filter (category Processing).

processing, workitem, start, {step name}
  • Meaning A step started.
  • Properties Work item properties, workerVersion, preworkMillis.
  • Default filter passes.
processing, workitem, stop, {step name}
  • Meaning The step finished.
  • Properties Work item properties, workDurationMillis.
  • Default filter passes.
processing, workitem, error, {step name}
  • Meaning The step threw.
  • Properties Work item properties, exception.
  • Default filter passes.
processing, workitem, error, ExecuteWorkflow, {step name}
  • Meaning The process loop failed and the work item was set to Error.
  • Properties Work item properties, exception.
  • Default filter passes.
processing, workitem, error, ErrorDeadChildrensWork
  • Meaning A dead child worker was found and its work item errored.
  • Properties batchId, activityId, activityDefinitionId, activityName.
  • Default filter passes.
processing, workitem, error, Unlocked by Clean Up Locked Work Instance
  • Meaning A work item held by a dead worker was unlocked and set to Error.
  • Properties activityId, batchName, batchId.
  • Default filter passes.
processing, workitem, update, {step}
  • Meaning The step output events listed under Step output above, in their legacy form.
  • Default filter passes.
processing, workitem, update, move_document, {step}
  • Meaning Split Your Batches or Route To Activity moved a document into a new work item.
  • Properties documentId, targetBatchId.
  • Default filter passes.

Not delivered from the legacy worker

These never reach a provider

  • New work items processing, workitem, add, Split Your Batches, ..., add, Route To Activity (a new child work item), processing, workitem, add, ImportEmail and ..., add, document, ImportEmail (email import). Kept in KnowledgeLake's own work item history only.
  • Not stored custom, ... from a Custom Event step, and KWorker, workitem, step, AIUsage and AIBatchCreated. Not stored at all on the legacy worker.
  • AI metrics Legacy Intuitive AI reporting metrics (processing, workitem, usermetric, intuitiveai, ...). Not forwarded.
  • Engine errors error, processing, workitem, learn, step, {eventType}. Not forwarded.