Issue
Users encounter a situation where deleted workflows still appear in the Workflow Management screen, even though they have been removed from Mendix Studio Pro.
Environment
Studio Pro v9.10.0 and newer
Cause
When a workflow is deleted from Mendix Studio Pro, its associated instances as well as the workflow definitions are kept in the corresponding tables: System.Workflow and System.WorkflowDefinition. As a result, the deleted workflows still appear in the Workflow Management screen, even though they are no longer in use.
This happens because the Workflow Management screen retrieves and displays data from the System.WorkflowDefinition table, which retains records of all created workflows (unless manually removed).
Solution/Workaround
To completely remove deleted workflows from the Workflow Management screen, follow these steps:
Verify that there are no active workflow instances related to the workflows to be deleted. This can be checked by querying the System.Workflow entity in the database.
If any workflow instances exist, delete them first to avoid conflicts. This can be done using a microflow or a direct database query.
The entries in the Workflow Management screen are retrieved from the System.WorkflowDefinition table. To fully remove the workflows, delete the corresponding records from this table.
Once the entries are removed from the database, refresh the Workflow Management screen to confirm that the deleted workflows no longer appear.
By following these steps, the workflows will be permanently removed from the system.
Internal information related
- 237754
Additional information
Mendix documentation:
0 Comments