Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've build my own approval workflow. My workflow is finished, but the state of the workflow (state in library) is "finished". When I finish the standard SharePoint approval workflow the state is "approved".

How can I set the state of the workflow to "approved"?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

By using the SharePoint object model, you can add your own workflow status that appears in the workflow association column. Each workflow status value corresponds to an integer that represents its place in a zero-based ordered list of column values. The first 15 values in the Microsoft.SharePoint.Workflow.SPWorkflowStatus enumeration are reserved by Windows SharePoint Services for internal use.

To add a custom status value, define a new StatusColumn element under ExtendedStatusColumnValues in Workflow.xml. The first status column value you specify is assigned the integer value of 15; the second status value, 16; and so on.

You can see more details here.

if you would like to extend the workflow statuses enumeration you can try to use this approach.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.