This project is read-only.

Custom Conditions

Approval Status

Approving content is a regular use of SharePoint Designer workflows; simply add the "Set Content Approval" activity, and call it done. But it's not possible for reusable workflows to DETECT the approval status... until now.
Drop this condition into your workflow to check whether the item's approval status is Approved, Rejected, or Pending.

Once activated, Approval Status is value appears in the list of conditions
Custom Action in menu.png

When the condition is added to a workflow
Approval Status (default).png

The list of available statuses
Approval Status - options.png

An example step which will approve content if it is pending approval
Automatic Approval.png

Deploying the solution

Install the solution file
Download the SharePoint solution file (.wsp).
Use PowerShell or STSADM to install the solution into the farm.
Use PowerShell, STSADM, or Central Administration to deploy the solution.

Activate the feature
The custom conditions must be activated at the web application (due to required changes in the web.config).
If the feature is not activated, users will see the activity in SharePoint Designer, but will be unable to add them to the workflow (this behavior is unavoidable)

Building the solution

The solution is a Visual Studio 2010 solution with a single SharePoint project using C#.
You will need Visual Studio 2010 installed. To use SharePoint project templates, Visual Studio requires that SharePoint be installed locally. SharePoint 2010 can be installed on Windows 7 (though I personally don't recommend it), or on Windows Server 2003 or above.
Upon opening the solution, configure the URL for deployment by opening the Properties window (tab) for the Project, and adjusting the Site URL. This address is used any time you use the Deploy command.

Last edited Mar 30, 2012 at 4:03 PM by sbrickey, version 4


No comments yet.