How to rename workflow in sharepoint designer?

by Mark Deraeve 20. May 2008 19:13

Although the function: Rename is available by rightclicking the workflow name, it will not correctly rename the workflow. The problem is that it only changes the title but in the config file, still the old name exists. We will need to perform some manual tasks after you renamed all the files!

Open the OLDWFName.xoml.wfconfig.xml file.

Change the path name to the new name. I will give an example below.

OLD name was New SOP WF, new name is: SOP WF

Old config file was:

<WorkflowConfig>
    <Template        BaseID="{FD02CD7B-DE27-486F-BF2B-65E807ACD1E4}"
        DocLibID="{F1E7A575-B9D8-415B-9BF7-7BD5CC293DD0}"
        XomlHref="Workflows/New SOP WF/New SOP WF.xoml"
        XomlVersion="V75.0"
        RulesHref="Workflows/New SOP WF/New SOP WF.xoml.rules"
        RulesVersion="V75.0"    >
    </Template>
    <Association        ListID="{DB955486-0511-44DD-ACE4-B1649ACF4859}"
        TaskListID="{40FC9FF0-2B2F-4825-A184-49E772277C1F}"
        StartManually="true"        StartOnCreate="true"    >
    </Association>    <ContentTypes>        ... 
    </ContentType>    </ContentTypes>
    <Initiation URL="Workflows/New SOP WF/New SOP WF.aspx">
        <Fields/>
        <Parameters></Parameters>
    </Initiation></WorkflowConfig>

 

The new config file looks like this (I placed the part I changed in bold):

<WorkflowConfig>
    <Template        BaseID="{FD02CD7B-DE27-486F-BF2B-65E807ACD1E4}"
        DocLibID="{F1E7A575-B9D8-415B-9BF7-7BD5CC293DD0}"
        XomlHref="Workflows/SOP WF/New SOP WF.xoml"
        XomlVersion="V75.0"
        RulesHref="Workflows/SOP WF/New SOP WF.xoml.rules"
        RulesVersion="V75.0"    >
    </Template>
    <Association        ListID="{DB955486-0511-44DD-ACE4-B1649ACF4859}"
        TaskListID="{40FC9FF0-2B2F-4825-A184-49E772277C1F}"
        StartManually="true"
        StartOnCreate="true"    >
    </Association>
    <ContentTypes>        ... 
    </ContentType>
    </ContentTypes>
    <Initiation URL="Workflows/SOP WF/New SOP WF.aspx">
        <Fields/>
        <Parameters></Parameters>
    </Initiation></WorkflowConfig> 

Tags:

MOSS 2007 | WSS 3.0

Comments (7) -

Kam Choor
Kam Choor
8/31/2008 8:38:43 AM #

dude - love the posting!
thank you!

kam

Reply

Free Service Manual
Free Service Manual
2/1/2009 5:25:47 AM #

Thanks for the great reference post.

Reply

Julia Allshouse
Julia Allshouse
4/14/2009 11:54:13 PM #

I have tried this and it works with connecting renaming half way.  Once your completed with the steps above, and start a job in the workflow you renamed, if a user tries to 'Edit Item' on the workflow job, 'A Page Cannot be Found' error will occur because the URL path to reference the workflow item isn't updated with the new workflow name.  Can anyone help on how to get the URL address updated????

Reply

dgl
dgl
5/6/2009 9:33:26 AM #

I've been looking all over for a definition file for the *.xoml.wfconfig.xml file. I want to be able to add a workflow description to my workflow when it is deployed.  I was hoping it would be in this file.

any resources you could point me to would be great.

Reply

SJK
SJK
6/9/2009 6:37:35 AM #

I have the same problem that Julia has: Upon editing the task created from the workflow, An error occurs. Anyone has a solution to this?

Reply

Mark
Mark
6/9/2009 2:11:03 PM #

Julia, SJK, this would mean that you made a mistake in the workflowconfig.
Can you mail me or post your wokflow config here? Old and new one?
Or maybe you have to check the workflow itself, if any paths are hardcoded in there.
If I use a path in a workflow, I try to extract the part that reoccurs and make it an initiation variable.

Reply

See Goeser
See Goeser
1/4/2011 3:48:39 AM #

Most of the times i visit a blog I notice that most blogs are amateurish. On the contrary,I could honestly say that you writting is decent and your website solid.

Reply

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About Mark Deraeve

I started as a VB6 developer, programming all kinds of applications. I also got involved in the development of a e-market in ASP.

When .Net was introduced, I had the privilege to start in a team of professionals and develop a framework. I learned a lot and started to work as a c#.Net consultant from then on.

After 2 years I also got the chance to work for several months with Sharepoint. Sharepoint kept chasing me all the years after and when the product got more and more mature I started to love it. Now Sharepoint is a somewhat daily occupation for me. I implemented a large quality document management system at PMRL being to only developper/technical analyst. Working close togehter with the QA department we succeeded in making and improving a very good Quality document management system. Its used up until this day.

I worked for 6 years as a .Net consultant for 2 of the largest consultancy companies in Belgium. Mainly I worked as a Sharepoint engineer, but also .Net expert and several ASP.Net and Windows applications. One of my last projects with the consultancy was creating a custom LIMS system. This was a succes and the customer (Phillip Morris) asked me to stay and help to expand and maintain this LIMS. I had great years in this company. There was a focus on innovation and a lot of opportunities for improving and developping new IS systems. Apart from several small projects I furter developped the custom LIMS system, created a SOP library based on Sharepoint and a web based Skill matrix system to handle the skills of the employees in the company.

Last I was involved in transferring the LIMS to a new lab in Singapore. This was done in a short time frame. The deployment was again a success and it passed the GLP inspection tests. I learned a lot from the Quality engineers about validation of computerized systems.

This year, new challenges are ahaed, I changed jobs. but still working with .Net and MS Sharepoint. The new company I'm working now is Galvapower. I find a great challenge and a good diversity in this company. I will be working mainly with .NET but also some VBA and ABAB will be on my dish.

My linkedIn!

 

 

Locations of visitors to this page