Overview:
What’s new in Umbraco Workflow 11.1 and 10.1?
Features and fixes added to Workflow 11 will be made available in Workflow 10, ensuring your LTS Umbraco install doesn’t miss out on any improvements. If you’ve installed Workflow 10 (released last month), this post is absolutely relevant, so read on!
Enough with the housekeeping, let’s have a look at what you get with Umbraco Workflow 11.1 and 10.1.
History cleanup
Workflow 11.1/10.1 introduces history cleanup functionality similar to that already found in the CMS and Forms, allowing developers and site administrators to set policies defining which history records are kept and for how long. History cleanup does require a license - learn more about the Workflow licensing model.
Cleaning out unused information
Every new workflow stores multiple records in the database - one for the workflow instance, and one for each task in the workflow. In a language-variant site, depending on how you use Workflow, there may also be records generated for each culture variation. These records are used to build the various workflow history views in the Umbraco backoffice.
Depending on your requirements, this history information may not be required, or may only be useful for a short period of time. Note too, the workflow history exists in addition to Umbraco's audit trail information, which will always show the identity of the user who completes the workflow (and therefore resulting in a node being published).
Cleanup is opt-in
As this is a destructive feature - we’re deleting data - it is shipped as disabled by default. To opt-in, update the `Umbraco:Workflow:HistoryCleanupPolicy:EnableCleanup` setting to `true`.
This change alone is enough to enable the default cleanup policy, which will delete all workflow history after 28 days, for workflows where the status is Approved, Errored, Cancelled or CancelledByThirdParty (or, all non-active workflow history).