Skip to content

Reset Process Instances

When testing process flows, you may need to restart from scratch. The Lowgile runtime persists process instances, including running and completed workflows, which can affect subsequent tests.

  • You want to restart a workflow from the beginning,
  • Existing tasks are interfering with testing, or
  • You have updated the process model and need to retest from a clean state.

This guide shows how to remove these process instances before retesting.

Use the Lowgile console to run system commands in the current environment.

Open console button on the design editor header bar
Figure 1:

Open console button located in the top-right corner of the design editor header bar

  1. Open the application in the Lowgile design editor.
  2. In the top-right corner of the header bar, click the Open console button.

Run the following command in the console (when it opens):

Sys.Process.deleteAllProcessInstances()

This command deletes all process instances in the current environment:

  • Removes all running workflows,
  • Removes all completed workflows, and
  • Deletes associated task instances.

After running this command, you can start testing your workflow again from a clean state.

Attention

This command permanently deletes all process instances in the current environment. Only use this in development or test environments.