Job-workflow-autoclean: Stsadm property (Office SharePoint Server)
Applies To: Office SharePoint Server 2007
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Description
Specifies the time schedule for when a scan occurs to delete workflow instance data and workflow task items that have been in a completed state for longer than an amount of time specified on the workflow template.
This property does not set the expiration value of a completed workflow. The default value is daily. However, if no value is specified, the expiration value is 60 days.
For more information about workflow, see Workflow management: Stsadm properties (Office SharePoint Server).
Note
This property is available only from the command line.
Syntax
stsadm -o setproperty
-propertyname job-workflow-autoclean
-propertyvalue <valid date and time interval>
**\[-url** *\<https://server\_name\>***\]**
The syntax for the getproperty operation is:
stsadm -o getproperty
propertyname job-workflow-autoclean
**\[-url** *\<https://server\_name\>***\]**
Note
You can substitute -pn for -propertyname and -pv for -propertyvalue.
Property values
The following table shows possible values.
Value | Description |
---|---|
propertyname |
Gets or sets the name of the property. |
propertyvalue |
A valid Windows SharePoint Services Timer service (SPTimer) schedule in the form of any one of the following schedules:
|
url |
A path to the URL of the Web application, in the form http://server_name. |
Examples
To set the time schedule for when the scan will occur to delete workflow data for the Web application, https://test, use the following syntax:
stsadm -o setproperty -pn job-workflow-autoclean -pv "daily at 15:00:00" -url https://test
To view the current setting of the job-workflow-autoclean property, use the following syntax:
stsadm -o getproperty -pn job-workflow-autoclean -url https://test