Field meaning in workflow history list

Source: Internet
Author: User

If you are reading this post you probably know about hidden lists in SharePoint sites. well, one of the hidden lists by default is the "workflow history" list. the greatest SharePoint workflow history flaws (in my opinion) is that they do not audit. this issue has been well known ented. the workflow history is cleaned out after 60 days. at this point you loose all workflow history and the workflow task created. what you might not know is that the workflow history is actually stored in a list, where you can extract to excel and submit on the information extracted.

Even though it is hidden it does not mean you can't navigate to it. enter URL: http: // servername/sitename/lists/workflow history and you will go to the actual list.

The disadvantage of this list is that it is not user friendly. it has guids and ID's that are really not very useful. the point of this blog is not to tell you how to make it user friendly but to give clarify some of the information in this list that can give you some ideas on how to manuplate this data and get what you want out of it.

The following is a picture of the columns I will out line:

So, what are these columns exactly?

Workflow history parent instance-This is the ID tof the actual instance of the workflow. lets say you have a document and you start a workflow on it, well, it will assign an instance id to that workflow. if you start the same workflow on another document, in the same document library, it will use the same workflow but it needs a way to differentiate this instance of the workflow from the one already started. so you'll get a new instance id. notice you cannot apply the same workflow more than once if the workflow is not completed. once the workflow is complete you can start the same workflow again, but it will be assigned a new instance id. that is, the instance of the currently generated workflow.

Workflow Association ID-After a workflow is made availlable to a document library, it is called an association. you can name the workflow and make it availlable to each item in the document library. there is an ID assigned to this association. this means that if you have an approval workflow, and you make an association to a document library, it will have a different association ID if you make it availlable to another document library, although it might have the same template ID. the template generated after being appended to the list.

Workflow template ID-This is the guid that was assigned to the workflow. XML. if you created a custom workflow navigate to your feature folder and take a look at your workflow. XML to varify. that is, the workflow in the site

List ID-This is the list ID where the list item that has the workflow attached to it. In other words the workflow was innitiatiated on an item in this document library. The attached list

Primary item ID-If you notice, each list item has been assigned an index value. in the above picture, it just so happens that this was the first item or document I added to this doc library. item to be started

 

 

If you want to get to the information, for example, let's say you want the name of the association workflow, or you want to get to the task created for a workflow, use the spworkflowmanager object.

This is accessed through the site collection.

Spsite sitecollection = new spsite ("http: // localhost ");
Spworkflowmanager manager = sitecollection. workflowmanager;

 

You can now go ahead and access:

Manager. getitemactiveworkflows
Manager. getitemtasks
Manager. getitemworkflows
Manager. countworkflowassociations

 

The above methods take parameters but you have all the parameter information availlable to you through the guids and ID's explained above.

From http://www.imaginets.com/cs/blogs/juanl/archive/2008/08/21/workflow-history-decoding-guids-and-how-to-use-them.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.