Good Morning Guys,
I am having some issues with my workflow, lately my workflow is changing the status of my items from completed to empty or null, I don t know what happen because these items were processed and completed 1 month ago and now I am getting that status is empty. Please let me know your comments about the possible issue. Thank you.
Solved! Go to Solution.
I see it, I want to know the workflow history like who has approved, when and comments, task outcomes etc for 10 years for audit purpose.So what do you recommend?
You can always get to the workflow history from the Item context menu, View Workflow history. This is not removed.
If you want a direct link then, create a separate multiple line column called WorkflowStatus. Set this field in your workflow something like this:
<a href=Workflow Log URL>varWorkflStatus</a>
Workflow Log URL is added from Insert Reference > Common. Or you can choose Workflow Status URL is you want to see the graphical view. varWorkflStatus is maintained as the workflow progresses. You can set this variable to Completed at the end of the workflow.
WorkflowProgress is a multiple line column. Within workflow it is set like this:
varWorkflowStatus is set to "In Progress" at the beginning of the workflow. At the end of the workflow, update this variable to "Completed" and update the WorkflowProgress column again.
Thank you- Your solution is working perfectly. Just by curiosity is there any way to turn the cleaning Job off and then keep history without changing the status to empty?
Yes, You can disable the Workflow Auto Cleanup timer job if you wish to keep the workflow data like workflow instances and completed tasks. however, this is not really recommended due to the potential impact to performance of allowing these lists to grow indefinitely.
To disable automatic workflow cleanup follow below steps
From Central Administration, click the Monitoring tab
On the Monitoring page, click Review job definitions.
On the Timer Job Definitions page, click Workflow Auto Cleanup to edit the appropriate timer job for that web application.
On the Edit Timer Job page, click Disable and then click OK to disable the Workflow Auto Cleanup feature.
If you later decide that you want to enable automatic workflow cleanup, access this page again and click Enable to enable automatic workflow cleanup