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
KWorkerandcustomevent 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.
Work item lifecycle¶
KWorker, RunStep
- Meaning A workflow step started (
IndexedEventTypeStart) or finished (Stop). The two share oneEventId. - 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
DurationMsin the envelope and, on failure,IndexedEventStatusError and the stringerror(full exception text).WorkTypenames 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) orStopped(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
IndexedEventStatusstays Event onAddHold, 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) orError(a hold expired with the Error behavior). - Properties long
HoldExpirywhen 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(HoldExpiredorManuallyReleased), queue metadata.AppsUserTokenis 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(DefaultRoutefor the default route,Send To Workflowwhen the item goes to another workflow),routeId,nextStepId. For Send To Workflow alsoprocessNameand longprocessVersion, and the envelope names the target workflow. - Default filter passes. A conditional route can produce two
RouteTakenevents 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; longdelaySeconds. 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
FailedPreprocessingParametersmeans preprocessing failed and the step errors. - Properties On failure
errorMessage,error. Stop hasDurationMs. - Default filter passes.
KWorker, ReturningToParentWorkflow
- Scopes
KWorker, ReturningToParentWorkflowandKWorker, 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; longprocessVersion. - 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; stopresults(JSON, one entry per deletion source), boolfailed, boolforce,errorMessageon failure.AppsUserTokenwhen 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; stopresults(JSON), boolfailed, boolforce,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; boolwasErrorNotification. - 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, andnumPagesornumFiles. - Default filter passes.
KWorker, update, ExtractText
- Meaning OCR finished for the work item.
- Properties
ocrdPageCount,ocrEngine(Azfor Azure OCR,Nufor 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, WarningwithskipReason. - 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 sometimesclassificationSeconds. - 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(ZeroShotorAutoExtractionPlugin),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, andmodelandUploadToken(zero-shot) orinstance,extractorMode,ocrEngineand 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, andFoundClassId,FoundSubclassIdwhen misclassified. - Bools
WasClassified,Misclassified,TP,FP,Corrected. - Double and longs double
Conf; longsExtDate,QcDate. - Default filter passes.
KWorker, usermetric, intuitiveai, fieldextraction
- Meaning per-field extraction accuracy from the same step.
- Strings
DocId,Project,Group,FieldName,CorrectClassId, andExtValue,QCValuewhen the operator changed the value. - Bools
Misclassified,FPTest. - Longs and doubles Longs
ExtDate,QcDate; doublesConf,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, sometimesJsonDataBucket(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,errorandupdateevents; - job
start,stop,error,add,updateandremoveevents.
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, ImportEmailand..., add, document, ImportEmail(email import). Kept in KnowledgeLake's own work item history only. - Not stored
custom, ...from a Custom Event step, andKWorker, workitem, step, AIUsageandAIBatchCreated. 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.
Related¶
- Events Dictionary: the events customers ask about most, and the other sources.
- Events and the Secondary Event Provider: setup, filter, document shape and delivery.
- Custom Event step