Gladi8or

hi,

How to associate a custom workflow (created using Sharepoint Designer) to a Site Content type.

I tried creating multiple content types within a single document library and i want to associte diffrent custom workflows (created using Sharepoint Designer) to each of these content types.

And i'm using MOSS 2007.

Please help me out.....



Re: SharePoint - Workflow sharepoint workflow

Sahil

Add the workflows to the content types and then add the content types to the document libraries.

Regards,

Sahi






Re: SharePoint - Workflow sharepoint workflow

DaveM.

SharePoint Designer is only going to let you associate with a list or doclib, not a content type. To do that you need to create the workflow using Visual Studio.

Dave





Re: SharePoint - Workflow sharepoint workflow

Gladi8or

thanks Sahil,

the prob is that while creating workflow using designer i get a provision wherein i can associate a workflow with a document library or a list and not with a content type.....

i'm unsure as to how to make this association (Workflow with a Content type in a sharepoint designer).

can you help me out with this......





Re: SharePoint - Workflow sharepoint workflow

Gladi8or

thanks Dave,

we tried installing Visual studio extensions for VS 2005. we tried out both Beta 1.2 and 2.1 but the Visual studio designer didn't open up....it gave the following error message.

Method 'get_CheckTypes' in type 'Micreosoft.Workflow.VsShell.Helpers.VSWorkflowCompilerOptionsService'

from assembly 'Microsoft.Workflow.VSDesigner, Version=3.0.0.0, Culture=neutral,

PublicKeyTocken=31bf3856ad364e35' does not have an implementation.

Do you have any idea about this....





Re: SharePoint - Workflow sharepoint workflow

DaveM.

Don't know about the error - I've never had a problem with the extensions. I would advise uninstalling them and then trying the RTM version (available here: http://www.microsoft.com/downloads/details.aspx familyid=19f21e5e-b715-4f0c-b959-8c6dcbdc1057&displaylang=en). If that doesn't work, uninstall again, uninstall VS and then try it all again.

Dave





Re: SharePoint - Workflow sharepoint workflow

Gladi8or

Dave,

whenever a user is assigned a task, user has to finish off his task assign to him by clicking on the compelet task....

is there anyother way, wherein we can avoid this complete task activity when we create a WF using Sharepoint Designer.

Will there be any need for making use of this complete task activtiy when i create a WF using VS2005 .......

thanks in advance.....





Re: SharePoint - Workflow sharepoint workflow

DaveM.

I'm not entirely sure completely understand what you are asking, but I'll take a stab at what I think it is...

Regardless of the tool you use to build the wf (VS or SPD), there needs to be indicator to the system that the task is complete. By default, this is a user action - clicking a button on a task assignment form, typically. However, there is no reason of which I am aware that this can't be done some other way - including programmatically. With that said, I'm not sure of the use of such a set up. I can think of a few situations where it would be useful (such as where the completion of the task itself is a trappable event and it would be useful to have that be the signal that the task is completed as opposed to forcing the user to go back to the form and click a button). However, to my mind those are the exception situations and not the rule.

Without knowing more details on what you are looking for, I think that you'll need to do this in VS. If your needs are light, you might be able to cobble it together in SPD but I think it would be fragile.

Hope that helps.

Dave





Re: SharePoint - Workflow sharepoint workflow

Gladi8or

thanks dave, I want to know whether this Complete Task activity can be automated, Say as to when an item changes. Say in my senario, when the status of the document changes from "Draft" to "Review". There is a feeling that this being a user activity(i.e. Clicking on a button), becomes a bit of a burden on the approver.



Re: SharePoint - Workflow sharepoint workflow

DaveM.

You could do this in Visual Studio, but not SPD (at least not without some custom Conditions). In VS, you would need to use the OnWorkflowItemChanged Activity to trap the change and then update the Task Status programmatically.