Disabling History for a Workflow
You can use the Keep Instance and History dropdown list to specify if instance and history records are saved for workflows. Workflow history records show as execution and error log records. In the Keep Instance and History dropdown list, you can select to save workflow instances and history records Always, Never, or Only When Testing. You can access the Keep Instance and History dropdown list in the following places:
-
Editing a Locked Workflow popup window
By default, the Only When Testing option is selected when you create new workflows. Keep in mind that history records created before 2018.1 are saved for existing workflows. You can delete records for these workflows using the Instances and History Records popup window. For details, see Deleting Workflow Instances and History Records.
When you select the Never or Only When Testing options, you can view workflow instance and history records on the record's Active Workflows Subtab and Workflow History Subtab subtabs while the workflow runs. After the workflow finishes or is canceled, the history records related to the workflow instance’s execution are deleted from the database. When you select the Always option, history records related to the workflow instance’s execution are saved in the database. Be aware that history records are never deleted for workflows that transition to a state with the Do Not Exit Workflow box enabled. For details, see Exit States.
One benefit of not saving history records for workflows that process many records is better system performance. Workflows that process many records produce many history records that can slow system performance. Additionally, you can also free a large amount of database space when you delete workflow history records.
To disable history for a workflow:
-
Go to Customization > Workflow > Workflows.
-
On the Workflows page, click Edit next to a workflow for which you want to disable history.
-
In the context panel, on the Summary tab, click the Edit icon.
-
On the Workflow Definition window, in the Keep Instance and History dropdown list, click Never.
-
Click Save.
You can also disable history for locked workflows. See Editing a Locked Workflow.