Archiving Reporting Data

When you archive reporting data using the stored procedure, you usually provide a start and end date range. This process archives workflow instances that meet these criteria:

  • Workflow status: The instance must have a status of either "Completed" or "Deleted."
  • Finish date: The instance's "FinishDate" must fall within the specified date range.

Here's a breakdown of workflow statuses:

  • StatusID 0: Error
  • StatusID 1: Running
  • StatusID 2: Active
  • StatusID 3: Completed (eligible for archiving)
  • StatusID 4: Stopped
  • StatusID 5: Deleted (eligible for archiving)
  • StatusID 6: Terminated

Important note about "Deleted" status:

  • If you delete a workflow instance without removing its reporting data, its status becomes "Deleted" and its "FinishDate" is set to the deletion date.
  • This means "Deleted" instances are also eligible for archiving based on their "FinishDate."

Archiving process:

  • The archiving procedure moves eligible workflow instances ("Completed" and "Deleted") to the archive database.
  • This helps manage data volume and performance in the main database.

Comments

Popular posts from this blog

Blocking Error during K2 5.6 Server migration

Client Credentials flow with K2 Cloud with Odata, Workflow REST or SCIM

Blocking error RegisterServiceInstanceObjects when upgrading to K2 5.6/5.7