How to deploy a workflow as part of a site definition?

Shiraz Bhaiji
  • How to deploy a workflow as part of a site definition? Shiraz Bhaiji

    We have a customer that will be creating many sites based on a site definition.

    The sites include a list. We would like to connect a workflow to that list such that the workflow starts whenever a new item is added to the list.

    We are using SharePoint Foundation 2010 and developing the workflow with Visual Studio 2010.

    What is the best way of doing this?

Related questions and answers
  • with site definition schemas (and list definition schemas). I understand that you can only add to a definition once a site has been created from it or the sites will break, but I saw the note on this page...There have been several questions asked on this site regarding the best way to provision sites and lists (definition schemas vs. templates vs. the object model vs. the web interface vs. provisioning providers). I have even responded to some of them. Custom site definition to define a custom site with a subsite Best way to build out and configure multiple lists When to use Custom Site

  • This is in the context of MOSS 2007. I have a custom site definition. Currently in ONET.xml we have the following Module: <View List="$Resources:core,lists_Folder;/$Resources:core... to the Pages library. This correctly provisions the page to the Pages library with an Announcements List View web part provisioned to the page. I have about 800 (or so) sites created from this site definition... to configure my site definition to create the correct web parts for existing sites and any new sites?

  • I have an initial workflow in Sharepoint Designer that triggers whenever an item is created and also whenever an item has changed in the 'Employee' list . Within second workflow I am updating the 'Employee' list and the workflow above is triggered. Is there any way I can check in the intial workflow if the item has been updated by a user or if it was updated by a workflow. In the case if the item was updated by a workflow I would not want to trgigger it. Many Thanks,

  • We have a wss 3.0 site that has a document library based on a custom list definition. We would like to block users that have contributor rights from deleting documents, what is the best way of doing this?

  • We are currently designing a system to handle help desk functionality. One of the things we want to do, is to allow a user to send an email, that will trigger the creation and start of a workflow. Is this possible using standard functionality in SharePoint 2010?

  • When I try to create a new sub site from a Publishing Site Collection, the only options I get are: Publishing Site Enterprise Wiki I want to create a "Document Centre" site definition within this Site Collection. Any ideas how to enabled this site definition as an option to pick? This all in the context of SharePoint 2010 Cheers, Anthony

  • I have a list on a Team Site-based (customised site definition) site collection. I want display its contents on the front page of the site in a web part with the list title and one field only in the detail display (in a boxed view) but remove the column header. There doesn't seem to be an option to do this in the edit web part dialogue. Is there some way to get rid of the column headers other than making a custom list?

  • " returns the webs or sites respectively. UPDATE 02/06/10: As I mentioned above an upgrade to SharePoint 2010 will fix the issue (at least make the STS_Site and STS_Web results appear again...This is an old issue I thought this was a bug in an specific environment after reading a couple of blogs it has made me think again... The issue is that SharePoint site collections and sites... in the index under the contentclass:STS_Site and the sites (SPWeb's) are contentclass:STS_Web. The following people seem to have come across this issue and assumed it was just a limitation. I think

  • When using SPMetal to generate entity classes, these classes are used in LINQ to SharePoint queries. We have a project with content type and list definitions and one project with business logic which use the generated entity classes. But in an automated build approch what is the best way to make sure that we always have updated entity classes after a change in a content type and list instance? I am thinking of making a "Post-build event" command in the Content Type and List definition project.

Data information