

The SPWeb object : _Context property databinding from the _context member of the workflow. The list item index: ListItem property databinding from the _item property of the workflow.Ĥ. The destination list Guid: ToListid property.ģ. In order to copy one ListItem to an other list, the CopyItemActivity needs some informations:ġ. Now, let’s take a look at the CopyItemActivity properties : This will initialize the informations the CopyItemActity needs (see later). Here is what we get if we click on the collection: The reason for using a WorkflowContext instead of directly a SPWorkflowActivationProperties object is not clear here.Īnother way to visualize these properties is to select the workflow object in the workflow designer and to display the associated property page :

_initParams: a this class provides many information like the SPWeb, the SPList, the SPListItem etc…
Microsoft sharepoint designer 2007 code#
This code must be compiled: indeed the x:class attribute provides the compiler with a class name for the workflow : The following code shows the real content code of Workflow1.xoml:ġ.We can notice that this not what Workflow Foundation afficionados called “xaml activated” code which is xaml code that can run on the fly without having to be compiled. rules file contains the test that will check if the title column contains the word “problem” this test is expressed in the CodeDom language.Ĭreate a new Sharepoint Workflow project that will host the generated files name it MySPWorkflow :Īdd the files les and Workflow1.xoml into the new project and delete Workflow1.cs :Ĭlick on Workflow1.xoml and the workflow will show up in the Workflow Designer : The following files will be generated at the selected location:

Select the option “ File System” (specify a file location) :Ĭlick on OK. In Sharepoint Designer, go to the Workflows folder, select Workflow1 and right click on “Publish Selected Files” : Ĥ.Importing the workflow in Visual Studio In the condition, click on the “ equals” hyperlink and select “ contains”.Ĭlick on the Finish button of the form Sharepoint Designer will generate the xoml code (which is not xaml activated code !!!), it will compile the code ( xaml activated code must not be compiled) and it will associate the workflow to the corresponding list.Īdd a new item in the task list: set the Title to “problem in Belgium”: since the Task’s Title column contains the word “problem”, it will be copied to the Issues list by the workflow. In the condition, click on the “ value” hyperlink and type “ problem” (without the quotes). In the condition, click on the “ field” hyperlink and select Title in the combobox.
Microsoft sharepoint designer 2007 how to#
The workflows generated by Sharepoint Designer cannot be debugged and reused in another site unless we import it in Visual tutorial will show you how to achieve this.

Microsoft Sharepoint Designer 2007 is a very interesting tool that allows developers and users to create workflows running in Sharepoint 2007 without writing code.
