Skip to content

Content Services, RPA and Service Events

This page lists the events written by KnowledgeLake's back-end services:

  • Content Services (the document store behind the repository);
  • the Bot Service that runs RPA jobs;
  • the Tasks service, the Batch service and the management service.

Content Services and the Bot Service forward their events to a Secondary Event Provider. The other three do not. This page says so for each, so you do not build a report on an event that never arrives.

At a glance

  • Content Services 14 success audit events, category Content Services (contentServices). Passes the default filter. Failed or denied operations are not stored
  • Bot Service One RPA consumption event, category Bot Service (botServices). Passes
  • Tasks service Five task events. Not delivered to any secondary provider
  • Batch service and management service Nothing delivered. Their categories stay empty

Summary

Event Meaning Reaches the provider
contentServices, audit, Create Record created Yes
contentServices, audit, CreateFromExistingRecord Record copied Yes
contentServices, audit, Update Record changed Yes
contentServices, audit, Annotate Annotations replaced Yes
contentServices, audit, Delete Record deleted Yes
contentServices, audit, Move Record moved Yes
contentServices, audit, FetchBlob, FetchAnnotation, FetchFullText File, annotations or text read Yes
contentServices, audit, Search Repository search Yes (high volume)
contentServices, audit, GetRecordById Record read by id Yes (high volume)
contentServices, audit, Statistics Statistics read Yes
contentServices, audit, ReprojectRecord, ValidateRecord Projection rebuilt or record checked Yes
{operation}, error Failed or denied operation No (not stored)
botServices, consumption, finishBotAutomation RPA job finished Yes
interactions, interactions, add, ...EnqueueInteractionAsync Task created No
interactions, interactions, complete, UpsertInteractionResultAsync Task completed No
interactions, interactions, release, ReleasedHold Task released the work item hold No
interactions, interactions, remove, UpsertInteractionResultAsync Tasks purged No (not stored)
KWorker, ReleaseHold from InteractionsService Work item side of a task completion No
batch, workitem, {change} Legacy work item commit No (disabled)
processing, workitem, update, Archive Legacy work item archived No (dropped)

Content Services

Each event is a successful operation on a document record. Every event carries:

  • Common keys User (the caller's principal identifiers), ResourceName and ElapsedMillis.
  • Storage keys They depend on the storage back end, for example RecordId, BlobId, StorageLocation, CollectionName, DatabaseName, IndexName, QueryString, Count.

All events in this group pass the default filter.

contentServices, audit, Create
  • Meaning A document record (metadata and files) was created.
  • Storage keys Include RecordId or InternalDocumentId, BlobId_{stream} (one per stream, for example the document and its annotations), FullTextBlobId, StorageLocation.
  • Default filter passes.
contentServices, audit, CreateFromExistingRecord
  • Meaning A record was created as a copy of another.
  • Storage keys The same keys as Create.
  • Default filter passes.
contentServices, audit, Update
  • Meaning A record changed: its file, file details, metadata or content type, full text, or properties.
  • Default filter passes.
contentServices, audit, Annotate
  • Meaning A record's annotations were replaced.
  • Default filter passes.
contentServices, audit, Delete
  • Meaning A record was deleted with its files.
  • Storage keys Include BlobIds, RemovedFiles.
  • Default filter passes.
contentServices, audit, Move
  • Meaning A record moved between locations, for example to the recycle bin or back.
  • No event A move refused by the change check writes no event.
  • Default filter passes.
contentServices, audit, FetchBlob, FetchAnnotation, FetchFullText
  • Scopes contentServices, audit, FetchBlob, ..., FetchAnnotation, ..., FetchFullText
  • Meaning A record's file, annotations or full text was read.
  • Storage keys BlobId, StorageLocation.
  • Default filter passes.
contentServices, audit, Search
  • Meaning A repository search ran.
  • Storage keys QueryString, Count.
  • Volume high volume.
  • Default filter passes.
contentServices, audit, GetRecordById
  • Meaning One record was read by id.
  • Storage keys RecordId.
  • Volume high volume.
  • Default filter passes.
contentServices, audit, Statistics
  • Meaning Repository statistics were read.
  • Storage keys Operation (Get Content Types or Get All Record Metadata Keys).
  • Default filter passes.
contentServices, audit, ReprojectRecord and ValidateRecord
  • Scopes contentServices, audit, ReprojectRecord and contentServices, audit, ValidateRecord
  • Meaning A record's search projection was rebuilt, or its consistency checked.
  • Default filter passes.

Failed and denied operations are not stored

When a Content Services operation fails or is refused, its audit is rebuilt as {operation}, error without the audit scope, and no service stores it. You cannot audit denied document access from your event store.

Bot Service (RPA)

botServices, consumption, finishBotAutomation
  • Meaning An RPA job finished. This is the RPA consumption record.
  • Fires When a bot reports completion; when a user cancels a job that shows Running while its bot is offline or busy (finished as Error); and when the clean-up marks a job that has run for more than 24 hours as Error.
  • Properties RPATaskId (the job number, as text), Status (in practice Complete, Cancelled or Error).
  • Default filter Passes (category Bot Service).

To see an RPA failure's message, query the task with V1_RPAAPI/QueryForLatestRPATasks. See Jobs, RPA and Monitoring API.

Tasks service

Not delivered

The Tasks service keeps these events in KnowledgeLake's own store and forwards nothing to secondary providers, although the wizard offers a Tasks Service category.

interactions, interactions, add, ...EnqueueInteractionAsync
  • Scopes interactions, interactions, add, EnqueueInteractionAsync and interactions, interactions, add, QuickEnqueueInteractionAsync
  • Meaning A new task was created.
  • Properties taskId, name, assignedUser, layoutId, layoutName, dateCreated, responseConfig (JSON).
  • Default filter Not delivered.
interactions, interactions, complete, UpsertInteractionResultAsync
  • Meaning A task was completed.
  • Properties taskId, name, assignedUser, layoutId, layoutName, dateCompleted, responseConfig.
  • Default filter Not delivered.
interactions, interactions, release, ReleasedHold
  • Meaning Completing a task released the hold on its work item.
  • Properties The same keys plus batchId, finishedInteractionInfos (JSON).
  • Default filter Not delivered.
interactions, interactions, remove, UpsertInteractionResultAsync
  • Meaning All tasks of a deleted work item were purged.
  • Properties batchId, action.
  • Default filter Not delivered. Not stored anywhere.
KWorker, ReleaseHold from the Tasks service
  • Scopes KWorker, ReleaseHold with holdReleaser = InteractionsService
  • Meaning The work item side of a task completion.
  • Default filter Not delivered. Kept in the work item's history only.

To see task completions in your store today, watch the work item side: KWorker, RouteTaken and KWorker, RunStep after the task step, or put a Custom Event step after it.

Batch service and management service

batch, workitem, {change}
  • Meaning One event per change group when a legacy work item is committed.
  • Default filter Disabled by design; stored nowhere. The Batch Service category receives nothing.
processing, workitem, update, Archive
  • Meaning A legacy work item was archived.
  • Default filter Dropped by the management service; stored nowhere.

No event starts with management, so the Management Service category receives nothing.