What is a workflow policy?

Cleanup

A policy allows you to configure a workflow execution cleanup operation to execute on a perpetual schedule. You can configure a simple schedule, or create a custom schedule using a cron expression.

Choose Policies from the drop-down list at the top left of the page to open the Policies view.

When you create a policy you will specify the schedule, age of executions to clean up, and filters. You can filter based on tags and/or execution state. For example, you can configure one policy to delete failed workflow executions weekly, and another to delete successful workflow executions with the testing tag daily.

The default policy is pre-loaded with installation of NSP. By default, executions are retained for 30 days.

You can also manage cleanup policies using the Workflow Manager API; see the Network Automation tutorial on the Network Developer Portal.