Hello all,
Stephen here again with a simple but useful workflow tip.
If you have used the out-of-box workflows included with MOSS, you have probably noticed that you can select which task list a workflow uses.
Unfortunately, the Workflow Designer in SPD does not provide this option this release. However, there is a relatively easy way to associate a specific task list with a specific SPD workflow.
The first time that you compile an SPD workflow, it is associated with a task list in the current site. This configuration information is stored in the wfconfig.xml file.
Changing this configuration information is not recommended or supported. However, you can determine which task list SPD will pick when you compile your workflow for the first time.
If there is more than one task list in a site, SPD picks the first task list that is returned in the list of lists from the server — and this list of lists is sorted alphabetically by list name.
View your site in the browser, and then click View All Site Content. On the All Site Content page, you can see that any SPD workflows created in this site will be associated with the AAA Tasks list, instead of the default Tasks list. Why? Because it is the first task list to appear alphabetically in the list of lists.
So to associate an SPD workflow with a specific task list, simply do the following:
As long as at least one other task list appears alphabetically above your new task list, subsequent workflows created in SPD will not be associated with the new task list. In effect, you have associated a specific SPD workflow with a specific task list, and then reserved that task list so that other SPD workflows will not use it.
Why is this useful? Here are a couple of scenarios:
There are many more reasons why you might want to associate a workflow with its own task list. So enjoy.
Cheers, Stephen
PingBack from http://www.virtual-generations.com/2008/04/06/sharepoint-2007-link-love-03-06-2008/
Thanks, helped me alot man....
Nice blog !
Good job, Thanks for the information
An interesting byproduct of selecting the first tasks list is that if you want the workflow to run automatically task list items, you must create a different task list with a name that comes alphabetically before the name of the task list on which you wish to create the workflow. Otherwise, SharePoint Designer will not allow the workflow to start automatically on the task list items. I have a more detailed explanation of the behavior here:
http://thingsthatshouldbeeasy.blogspot.com/2007/10/sharepoint-designer-2007-workflow-on.html
great idea and an even better solution ... thanks
I know that this is surely not Microsofts recommendation, but what other arguments speak against directly modifying the wfconfig.xml file and change the GUID of the associated task list (TaskListID=...). You can find the ID by going to the settings of the workflowlist, copy it from the URL (listedit.aspx?List=GUID URL encoded) and replace the URL encoded characters with their cleartext ( curly brakets at the beginning and end, dashes in between).
hi
i need to make a workflow with about 7step,i create a list when the list is created a task assigned to a managment that i collect data from this user it means if managment fill approve form next task assigned to the secend managmnet and this process continuously happen in this case i have a problem
the all of the task assigned to this peoble show in one TASK LIST but i like everybody see task in her/his task list
could you please help me ?