Nick Swan's SharePoint Blog

a day in the life of a Sharepoint and .NET guy!

My Links

News




Post Categories

Archives

Blog Stats

Blogroll

Books

VB-tech website

VB-tech work

Xbox

SharePoint 2007 and workflow

I attended the Microsoft Collaboration tour event on Thursday afternoon and was able to confirm with some of the UK SharePoint team that it is fine for Beta 1 testers to start blogging about SharePoint 2007. So I thought I’d get on with it and put up a very simple post about setting up an approval workflow with SharePoint 2007. Workflow was very badly missing in SharePoint 2003, and although it could be achieved with third party addins or writing your own custom code, it was something that many thought should have been included by default. As we’ve known for ages the SharePoint team have decided to include it in the v3 product by default. Best of all for us developers is that it is built on top of Windows Workflow Foundation so no doubt there will be the ability to hook into it and customize the out of box operations that can be done. I’m not going to go into too much detail here about how it all works, 1 as things can change between betas, and 2 I want to get this posted quickly as it’s late at night ;-), so it’s mainly going to be a lot of screen shots and a few descriptive comments. Click on each image to get the bigger picture. Lets get started…

Workflow1small
picture 1 above shows a standard document library that we are going to add a workflow to. To do this you need to go to the Document Library Settings. I’ve missed one picture out, but it’s just the lists of all the things you can do to Libraries with regards settings. The one we chose is workflow settings, and so we get the first workflow settings page…

Workflow2small
From the first option you can see that we can create our own workflow templates. More about those in another post. All peoples tasks are to do with a workflow can be added to a task list, and a workflow history can be created. Finally there are the options for when to start a workflow, in our case we are going to do it when a new document gets added to the library.

Workflow3small
The second workflow settings page needed to be split over two images….
Workflow4small
There are quite a few settings on those two images but to be honest I think they explain themselves, or the text to the left does a pretty good job, so I’ll leave them. Questions in the comments! Next step…

Workflow5small
Woot this screen just shows our workflow has been created and that there are no instances of the workflow in progress. To demo this I wanted the administrator to approve the document, so I have to create the document as a different user to who I am currently signed in as…

Workflow6small
Above is a very simple screen shot but functionality I love so much! Easily being able to sign in as a different user! A quick digression, but now back to the workflow…

Workflow7small
I’ve created my first document in Word 2007 and as it’s a new item the workflow has been started. You can see the status of the workflow in the column to the right. Lets log back in as administrator and check the task list…

Workflow8small
Cool so you can see in the task list I have something created to do. An email was also sent to me but I’ve not got a screen shot of that. Not to difficult to imagine what it says though! Now lets open the document as the administrator who’s got an action to do on the document…

Workflow9small
As you can see below the new Office 12 ribbon there is a notice to the user that there are outstanding workflow actions. Once you’ve read and checked the document you can click the ‘Edit this task’ button and see…

Workflow10small
the actions you can take on the workflow. Add a comment and approve or reject it, or if you are feeling lazy you can reassign the task to some one else. Nothing like a good bit of delegation! Once you’ve approved the document you can save and close Word and head back to your task list…

Workflow11small
You can now see that the task the administrator was assigned has been completed. Woot!

A final couple of screen shots to show you. From the fifth screen shot where the workflows are listed the is the option to remove a workflow. This is the screen you see when you click on that link…

Workflow12small
As you can see it’s quite nice to be able to completely remove the workflow, or just stop any new instances of it being started.

Finally there’s the workflow history…

Workflow13small
there’s a lot of information there so you can track the progress of a workflow.

Ok that’s it for now. A few simple screen shots as I said but hopefully something to wet the appetite for people who’ve not seen too much of SharePoint 2007 workflow so far. Remember that these are all beta 1 screen shots so many things could change between now and the release version.

If you have any questions, comments, or there’s something else in SharePoint 2007 you’d like to see a blog post about let me know.

Technorati Tags :

posted on Monday, May 01, 2006 12:34 PM

Get email alerts when this blog is updated!

Feedback

# re: SharePoint 2007 and workflow 5/11/2006 11:54 AM Nick

Hi. Love the blog :)

I've been experimenting with the workflow myself for the first time today, but I still got this problem. I've activated the option "start on change" in the workflow settings, but when i change something to the document it sais the workflow is "not started". But I can't start it manualy either :/ it just stands there, with no options what so ever...
Any idea what or how ?
Thanks.
(if possible, could you mail it to me to nick_sevens@hotmail.com ? thanks!)

# re: SharePoint 2007 and workflow 5/11/2006 1:03 PM nick

I must admit I've not tried to get it working with on change, only when a new document is created. I'll give it a go and see how I get on.

# re: SharePoint 2007 and workflow 5/18/2006 7:38 PM Charlie

You mentioned you created a doc in Word 2007 and then later showed the Office 12 ribbon with the workflow task displayed. You wouldn't happen to know if there would be any differences if you loaded a Word 2003 document? And, if (and if so how) any workflow notification would be provided if you didn't have Office 12?

Thanks a lot!

# re: SharePoint 2007 and workflow 6/27/2006 9:46 AM dave

Anyone know how this same type of approval workflow can be created with Sharepoint designer? Had a fiddle but cannot see how to create a Task item that has the approval type interface - ie, the approve, reject buttons.

# Where are the workflow's templates? 6/27/2006 8:40 PM Àlex

I have tried to associate a workflow to a document library, but when I try to enter into "Workflow Settings" I get an error page with the message:
"There are no workflows available on your site collection or workspace. Please contact your administrator."

What are happenning? I am using SPS2007. Should I need MOSS2007 or with SPS2007 is enough?

# There are no workflows available on your site collection or workspace. Please contact your administrator. 7/4/2006 7:31 AM Francois

Has anyone sorted out this problem, I am having the same and thought I did follow all the required install steps.
thanks.

# re: SharePoint 2007 and workflow 7/5/2006 9:32 AM Anil

I get "The form cannot be displayed because session state is not available."

# re: SharePoint 2007 and workflow 7/5/2006 8:54 PM Jonathan

It took the better part of the day, but I finally found the cause to the "no workflows available" problem. It's on page 129 of "7 Development Projects for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services Version 3.0" (link to PDF below). Basically, go to Site Actions, Site Settings, and under Site Collection Administration, select Site Collection Features. Activate Issue Tracking Workflow.

http://download.microsoft.com/download/0/2/f/02f0f661-88e1-43c2-b523-88d2e9e6802f/7%20Development%20Projects%20with%20the%202007%20Microsoft%20Office%20System%20and%20Windows%20SharePoint%20Services%202007.pdf

# thanks Jonathan 8/15/2006 12:21 PM Francois

why are the admin settings so hidden sometimes ?
anyway, yes now I have the Workflow settings page displayed, thanks to your search Jonathan.

One detail though : when activated it disappears from the Site Collection Features list, strange if I wanted to disable it again.

# re: SharePoint 2007 and workflow 9/4/2006 5:06 AM Sachin Dekate


I've installed all the required files and was preparing to associate the workflows to a document library.
In the "Workflow settings > Add a Workflow" page,
after selected the workflow template, configured some settings, and pressed Next button, it goes to Customize Workflow page and then redirected to Error Page giving "Unknown Error" having URL http://fmis_svr:9000/_layouts/CstWrkflIP.aspx?List={67825E44-A12E-4D08-8805-73529FA0F0E7}&_CookieSentinel=1.

# re: SharePoint 2007 and workflow 10/18/2006 6:22 AM David Sterling

Good note - one suggestion would be to crop the images; even on a very large monitor the screen shots are fuzzy...

# re: SharePoint 2007 and workflow 11/3/2006 1:20 PM pernilla_K

Hi!

I'm trying to add a workflow to a list. I choose "Approval", type a unique
name, select a task list (the predefined workflow tasks) and select a history
list (the predefined workflow history (new)). Then I choose when the workflow
should start. Then I get the error message: "There has been an error while
loading the form.". What could be the problem?

Please help!

# re: SharePoint 2007 and workflow 11/8/2006 12:51 PM kieran

Hi,

tried the above on beta 2 and it worked fine, great functionality definately something that customers will see the benefit of.

One thing I'm a bit confused about is the tasks, they get assigned into the tasks I specified when I setup the workflow but only in there, is there a way to get them assigned to the approver actual tasks in outlook so they don't need to keep checking in SharePoint.

Any ideas?

# re: SharePoint 2007 and workflow 11/9/2006 12:00 PM kieran

worked out how to get the tasks into outlook, you need to have office 12 installed and then a 'connect to outlook' option appears in the action drop down of the list, article on it here:

http://blogs.msdn.com/melissamacbeth/archive/2006/03/21/557531.aspx

now I'm really excited!!!!

# re: SharePoint 2007 and workflow 1/25/2007 6:03 AM Swaroop R

Hey how is it possible to do cross linking of documents on a site ?
Suppose for Example, I upload a document on one site, it should appear as a reference link in another site witihin sharepoint.

# SharePoint 2007 and workflow 1/31/2007 4:22 AM Amarnath Reddy

Hi All,

I have created a approval workflow and i have added approvers name as administrator and i have assighned the work flow to the test document.after that i have loged in to the sharepoint server as another user.when i want to open the test document without approving the document logedin user able to open the document but it should display some type of message like "it is not yet approved by the administrator".

please anybody can give the flow of the work flow and approval steps and workflow conifiguration.

regards,
Amar...

# re: SharePoint 2007 and workflow 1/31/2007 4:23 AM Amarnath Reddy

Hi All,

I have created a approval workflow and i have added approvers name as administrator and i have assighned the work flow to the test document.after that i have loged in to the sharepoint server as another user.when i want to open the test document without approving the document logedin user able to open the document but it should display some type of message like "it is not yet approved by the administrator".

please anybody can give the flow of the work flow and approval steps and workflow conifiguration.

regards,
Amar...

# re: SharePoint 2007 and workflow 2/15/2007 5:14 PM Rene Hasprunar

Does anyone know of any information to create a aproval workflow in Designer?

# re: SharePoint 2007 and workflow 2/28/2007 2:08 PM Rod

I am trying to use the out of the box workflow of 2007 for the first time and kee getting errors. Under settings > workflow settings all i am trying to do is create an 'approval workflow', i select the relevant options from the drop down and click next, however the page seems to go blank and the text" the form has been closed" appears. This happens for the Approval and Collect Feedback templates, however i am successful when setting up 'Collect signatures' and 'Dispoal Approval'.

Please can anyone advise/help???

Thanks

# re: SharePoint 2007 and workflow 2/28/2007 2:16 PM Rod

and sometimes i get this error...
Error

"The server is currently being taken down for maintenance. Check with your system administrator to see when this server is scheduled to come back online.

Click Try Again to attempt to load the form again. If this error persists, contact the support team for the Web site.

Click Close to exit this message. "

# re: SharePoint 2007 and workflow 3/2/2007 4:15 PM Francisco Aquino

To create an approval workflow you have to collect user data and create a task using the wizard, then you "compare any field" and use the result as the first param, like if "Approved!" equals to "Tasks/Approval Field/Tasks:Approval Field = 'Approved!'"

# re: SharePoint 2007 and workflow 3/6/2007 4:53 PM Jigger

I have created an approval workflow, and another workflow on the each task assigned to pause for a couple of hours. I want to re-assign the task if it is not completed in couple of hours. Is there a way to re-assign or create a new task and disable the old task?

# re: SharePoint 2007 and workflow 3/21/2007 12:44 AM LW

In the "Workflow settings > Add a Workflow" page,
after selected the workflow template, configured some settings, and pressed Next button, it goes to Customize Workflow page and then redirected to Error Page giving "Unknown Error" having URL http://asefdb:8004/ce/_layouts/CstWrkflIP.aspx?List={A93AF7C3-8831-4EC6-9A38-A5ED8D4974C8}

Does anybody knows how to resolve this unknown error?
Thanks.

# re: SharePoint 2007 and workflow 3/22/2007 5:19 PM Al

I've setup a feedback workflow and assigned it to several people. They receive the email and click the Word doc link. It opens the doc in IE7. They make a couple changes but are unable to save or publish back. This also happens in the full Word 2003 app. Am I missing something?

Title  
Name  
Url
Comments - All Comments are moderated and will not be displayed until approved by this blog's author    
Enter the code you see: